Compare commits

...

872 Commits

Author SHA1 Message Date
semantic-release-bot 9d2a4b3a72 🔖 chore(release): v1.148.0 [skip ci]
## [Version 1.148.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.147.0...v1.148.0)
<sup>Released on **2026-01-05**</sup>

#### ♻ Code Refactoring

- **redis**: Disable automatic deserialization in upstash provider.
- **utils**: Remove unused geo server utilities.
- **misc**: Refactor and fix model runtime initialize, refactor to remove access code, remove client db and refactor test.

####  Features

- **misc**: Add new provider Xiaomi MiMo, add work path for local system, update the sandbox export files & save files way.

#### 🐛 Bug Fixes

- **electron**: Correct next config codemod pattern matching.
- **gtd**: Fix frozen object mutation in updateTodos.
- **model-runtime**: Handle array content in anthropic assistant messages, handle incremental tool call chunks in Qwen stream, handle Qwen tool_calls without initial arguments.
- **misc**: Add lost like button in discover detail page, Auto jump to group, filter empty assistant messages for Anthropic API, fix data inconsistency in ai provider config, fix editor modal when Markdown rendering off, fix file upload issue, fix tool call message content missing, restore window position safely, restore window resizable before hard reload in desktop onboarding, slove the old agents open profiles error problem, support thoughtSignature for openrouter, update CI bun version to v1.2.4, use configured embedding provider instead of hardcoded OpenAI, when the document filetype is agent/plan, not show the saveinto docs button.

#### 💄 Styles

- **misc**: Update i18n, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **redis**: Disable automatic deserialization in upstash provider, closes [#11210](https://github.com/jaworldwideorg/OneJA-Bot/issues/11210) ([eb5c76c](https://github.com/jaworldwideorg/OneJA-Bot/commit/eb5c76c))
* **utils**: Remove unused geo server utilities, closes [#11243](https://github.com/jaworldwideorg/OneJA-Bot/issues/11243) ([ee474cc](https://github.com/jaworldwideorg/OneJA-Bot/commit/ee474cc))
* **misc**: Refactor and fix model runtime initialize, closes [#11134](https://github.com/jaworldwideorg/OneJA-Bot/issues/11134) ([8078cb9](https://github.com/jaworldwideorg/OneJA-Bot/commit/8078cb9))
* **misc**: Refactor to remove access code, closes [#11120](https://github.com/jaworldwideorg/OneJA-Bot/issues/11120) ([0e9f98c](https://github.com/jaworldwideorg/OneJA-Bot/commit/0e9f98c))
* **misc**: Remove client db and refactor test, closes [#11123](https://github.com/jaworldwideorg/OneJA-Bot/issues/11123) ([bb2799d](https://github.com/jaworldwideorg/OneJA-Bot/commit/bb2799d))

#### What's improved

* **misc**: Add new provider Xiaomi MiMo, closes [#10834](https://github.com/jaworldwideorg/OneJA-Bot/issues/10834) ([62f7858](https://github.com/jaworldwideorg/OneJA-Bot/commit/62f7858))
* **misc**: Add work path for local system, closes [#11128](https://github.com/jaworldwideorg/OneJA-Bot/issues/11128) ([d8deadd](https://github.com/jaworldwideorg/OneJA-Bot/commit/d8deadd))
* **misc**: Update the sandbox export files & save files way, closes [#11249](https://github.com/jaworldwideorg/OneJA-Bot/issues/11249) ([039b0a1](https://github.com/jaworldwideorg/OneJA-Bot/commit/039b0a1))

#### What's fixed

* **electron**: Correct next config codemod pattern matching, closes [#11228](https://github.com/jaworldwideorg/OneJA-Bot/issues/11228) ([06cb019](https://github.com/jaworldwideorg/OneJA-Bot/commit/06cb019))
* **gtd**: Fix frozen object mutation in updateTodos, closes [#11184](https://github.com/jaworldwideorg/OneJA-Bot/issues/11184) ([4970794](https://github.com/jaworldwideorg/OneJA-Bot/commit/4970794))
* **model-runtime**: Handle array content in anthropic assistant messages, closes [#11206](https://github.com/jaworldwideorg/OneJA-Bot/issues/11206) ([b03845d](https://github.com/jaworldwideorg/OneJA-Bot/commit/b03845d))
* **model-runtime**: Handle incremental tool call chunks in Qwen stream, closes [#11219](https://github.com/jaworldwideorg/OneJA-Bot/issues/11219) ([03b9407](https://github.com/jaworldwideorg/OneJA-Bot/commit/03b9407))
* **model-runtime**: Handle Qwen tool_calls without initial arguments, closes [#11211](https://github.com/jaworldwideorg/OneJA-Bot/issues/11211) ([5321d91](https://github.com/jaworldwideorg/OneJA-Bot/commit/5321d91))
* **misc**: Add lost like button in discover detail page, closes [#11182](https://github.com/jaworldwideorg/OneJA-Bot/issues/11182) ([41215d4](https://github.com/jaworldwideorg/OneJA-Bot/commit/41215d4))
* **misc**: Auto jump to group, closes [#11187](https://github.com/jaworldwideorg/OneJA-Bot/issues/11187) ([e43578a](https://github.com/jaworldwideorg/OneJA-Bot/commit/e43578a))
* **misc**: Filter empty assistant messages for Anthropic API, closes [#11129](https://github.com/jaworldwideorg/OneJA-Bot/issues/11129) ([7af750b](https://github.com/jaworldwideorg/OneJA-Bot/commit/7af750b))
* **misc**: Fix data inconsistency in ai provider config, closes [#11198](https://github.com/jaworldwideorg/OneJA-Bot/issues/11198) ([f8346f2](https://github.com/jaworldwideorg/OneJA-Bot/commit/f8346f2))
* **misc**: Fix editor modal when Markdown rendering off, closes [#11251](https://github.com/jaworldwideorg/OneJA-Bot/issues/11251) ([eb86d3b](https://github.com/jaworldwideorg/OneJA-Bot/commit/eb86d3b))
* **misc**: Fix file upload issue, closes [#11122](https://github.com/jaworldwideorg/OneJA-Bot/issues/11122) ([1ae327a](https://github.com/jaworldwideorg/OneJA-Bot/commit/1ae327a))
* **misc**: Fix tool call message content missing, closes [#11116](https://github.com/jaworldwideorg/OneJA-Bot/issues/11116) ([885964e](https://github.com/jaworldwideorg/OneJA-Bot/commit/885964e))
* **misc**: Restore window position safely ([e0b555e](https://github.com/jaworldwideorg/OneJA-Bot/commit/e0b555e))
* **misc**: Restore window resizable before hard reload in desktop onboarding, closes [#11144](https://github.com/jaworldwideorg/OneJA-Bot/issues/11144) ([2516874](https://github.com/jaworldwideorg/OneJA-Bot/commit/2516874))
* **misc**: Slove the old agents open profiles error problem, closes [#11204](https://github.com/jaworldwideorg/OneJA-Bot/issues/11204) ([7d650b6](https://github.com/jaworldwideorg/OneJA-Bot/commit/7d650b6))
* **misc**: Support thoughtSignature for openrouter, closes [#11117](https://github.com/jaworldwideorg/OneJA-Bot/issues/11117) ([bf5d41e](https://github.com/jaworldwideorg/OneJA-Bot/commit/bf5d41e))
* **misc**: Update CI bun version to v1.2.4, closes [#11232](https://github.com/jaworldwideorg/OneJA-Bot/issues/11232) ([dd022d5](https://github.com/jaworldwideorg/OneJA-Bot/commit/dd022d5))
* **misc**: Use configured embedding provider instead of hardcoded OpenAI, closes [#11133](https://github.com/jaworldwideorg/OneJA-Bot/issues/11133) ([503c3eb](https://github.com/jaworldwideorg/OneJA-Bot/commit/503c3eb))
* **misc**: When the document filetype is agent/plan, not show the saveinto docs button, closes [#11227](https://github.com/jaworldwideorg/OneJA-Bot/issues/11227) ([3a22f32](https://github.com/jaworldwideorg/OneJA-Bot/commit/3a22f32))

#### Styles

* **misc**: Update i18n, closes [#11213](https://github.com/jaworldwideorg/OneJA-Bot/issues/11213) ([00e0980](https://github.com/jaworldwideorg/OneJA-Bot/commit/00e0980))
* **misc**: Update i18n, closes [#11145](https://github.com/jaworldwideorg/OneJA-Bot/issues/11145) ([fdadef2](https://github.com/jaworldwideorg/OneJA-Bot/commit/fdadef2))
* **misc**: Update i18n, closes [#11115](https://github.com/jaworldwideorg/OneJA-Bot/issues/11115) ([072e0dd](https://github.com/jaworldwideorg/OneJA-Bot/commit/072e0dd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 10:28:13 +00:00
Jamie Stivala 289331ed8b Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	packages/database/src/core/migrations.json
2026-01-05 11:07:05 +01:00
CanisMinor eb86d3b11e 🐛 fix: fix editor modal when Markdown rendering off (#11251)
fix: fix editor modal
2026-01-05 18:04:50 +08:00
Shinji-Li 039b0a1064 feat: update the sandbox export files & save files way (#11249)
feat: update the sandbox export files & save files way
2026-01-05 18:03:25 +08:00
lobehubbot 995e8cf89a 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-05 09:10:51 +00:00
semantic-release-bot 61683707e2 🔖 chore(release): v2.0.0-next.217 [skip ci]
## [Version&nbsp;2.0.0-next.217](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.216...v2.0.0-next.217)
<sup>Released on **2026-01-05**</sup>

#### ♻ Code Refactoring

- **utils**: Remove unused geo server utilities.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **utils**: Remove unused geo server utilities, closes [#11243](https://github.com/lobehub/lobe-chat/issues/11243) ([ee474cc](https://github.com/lobehub/lobe-chat/commit/ee474cc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 09:09:10 +00:00
Innei ee474cce32 ♻️ refactor(utils): remove unused geo server utilities (#11243)
Clean up deprecated geo-related server code that is no longer used.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-01-05 16:25:44 +08:00
René Wang e08c8109bb feat: Improve CMDK (#11229)
* fix: Cannot use ai image in CMDK

* feat: Trigger agent builder in CMDK

* feat: Use group buidler in CMDK

* fix: CMDK not closed
2026-01-05 16:21:26 +08:00
lobehubbot 823bfc18cb 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-05 08:10:56 +00:00
semantic-release-bot 859806eeb5 🔖 chore(release): v2.0.0-next.216 [skip ci]
## [Version&nbsp;2.0.0-next.216](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.215...v2.0.0-next.216)
<sup>Released on **2026-01-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Restore window position safely.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Restore window position safely ([e0b555e](https://github.com/lobehub/lobe-chat/commit/e0b555e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 08:09:15 +00:00
Innei e0b555e92a 🐛 fix: restore window position safely
🐛 fix: restore window position safely
2026-01-05 15:49:13 +08:00
lobehubbot 583258b1f7 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-05 07:23:25 +00:00
semantic-release-bot df59c5a94b 🔖 chore(release): v2.0.0-next.215 [skip ci]
## [Version&nbsp;2.0.0-next.215](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.214...v2.0.0-next.215)
<sup>Released on **2026-01-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Update CI bun version to v1.2.4, when the document filetype is agent/plan, not show the saveinto docs button.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Update CI bun version to v1.2.4, closes [#11232](https://github.com/lobehub/lobe-chat/issues/11232) ([dd022d5](https://github.com/lobehub/lobe-chat/commit/dd022d5))
* **misc**: When the document filetype is agent/plan, not show the saveinto docs button, closes [#11227](https://github.com/lobehub/lobe-chat/issues/11227) ([3a22f32](https://github.com/lobehub/lobe-chat/commit/3a22f32))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 07:21:43 +00:00
Shinji-Li 3a22f32c87 🐛 fix: when the document filetype is agent/plan, not show the saveinto docs button (#11227)
fix: when the document filetype is agent/plan, not show the saveinto docs button
2026-01-05 15:01:50 +08:00
Innei dd022d54d8 🐳 fix: update CI bun version to v1.2.4 (#11232)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-01-05 15:00:42 +08:00
lobehubbot 357b0585e4 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-05 06:53:13 +00:00
semantic-release-bot a154def5b0 🔖 chore(release): v2.0.0-next.214 [skip ci]
## [Version&nbsp;2.0.0-next.214](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.213...v2.0.0-next.214)
<sup>Released on **2026-01-05**</sup>

#### 🐛 Bug Fixes

- **electron**: Correct next config codemod pattern matching.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **electron**: Correct next config codemod pattern matching, closes [#11228](https://github.com/lobehub/lobe-chat/issues/11228) ([06cb019](https://github.com/lobehub/lobe-chat/commit/06cb019))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 06:51:51 +00:00
Innei 06cb019b8e 🐛 fix(electron): correct next config codemod pattern matching (#11228)
- Use findAll with kind: 'pair' instead of find with pattern for redirects
- Add webVitalsAttribution removal logic
- Improve pattern matching to handle spacing variations
- Add invariant checks for better error handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-05 14:29:52 +08:00
Innei 3a30d9aed1 refactor: migrate theme management to next-themes (#11112)
* refactor: migrate theme management to `next-themes` and remove theme from route variants and global store.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: Unify theme mode to 'system' instead of 'auto' and streamline Electron theme synchronization.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: Remove LOBE_THEME_APPEARANCE constant and simplify desktop theme source assignment.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: Update antd-style dependency from npm alias to specific alpha version.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: update pnpm lockfile

Signed-off-by: Innei <tukon479@gmail.com>

* feat: Default theme to system and update Next.js RSC payload path example.

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add `dev:static` script for static renderer development

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: replace useThemeMode with custom useIsDark hook for theme detection and add ClientOnly component

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: Remove `extractStaticStyle` import and cache prop from `StyleRegistry`.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: Remove debug console log for current appearance.

Signed-off-by: Innei <tukon479@gmail.com>

* fix: Migrate legacy 'auto' theme mode to 'system' and refine theme background CSS selectors.

Signed-off-by: Innei <tukon479@gmail.com>

* feat: Add window dragging to desktop onboarding layout and update antd-style dependency.

* refactor: Refine global background styling to target body elements, remove token-based background, and clean up debugging script.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-01-05 13:23:43 +08:00
lobehubbot 4196d9783e 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-05 05:06:07 +00:00
semantic-release-bot 7015c194d7 🔖 chore(release): v2.0.0-next.213 [skip ci]
## [Version&nbsp;2.0.0-next.213](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.212...v2.0.0-next.213)
<sup>Released on **2026-01-05**</sup>

#### 🐛 Bug Fixes

- **model-runtime**: Handle incremental tool call chunks in Qwen stream.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **model-runtime**: Handle incremental tool call chunks in Qwen stream, closes [#11219](https://github.com/lobehub/lobe-chat/issues/11219) ([03b9407](https://github.com/lobehub/lobe-chat/commit/03b9407))

#### Styles

* **misc**: Update i18n, closes [#11213](https://github.com/lobehub/lobe-chat/issues/11213) ([00e0980](https://github.com/lobehub/lobe-chat/commit/00e0980))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 05:04:35 +00:00
renovate[bot] 9ad9874426 Update actions/cache action to v5 (#11164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-05 12:47:06 +08:00
renovate[bot] fbea741b04 Update actions/checkout action to v6 (#11165)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-05 12:46:56 +08:00
LobeHub Bot 85e6866e1e 🌐 chore: translate non-English comments to English in model-runtime and comfyui (#11220)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-05 12:31:27 +08:00
LobeHub Bot 00e0980c1f 🤖 style: update i18n (#11213)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2026-01-05 12:28:32 +08:00
Arvin Xu 03b9407e23 🐛 fix(model-runtime): handle incremental tool call chunks in Qwen stream (#11219)
* 🐛 fix(model-runtime): handle incremental tool call chunks in Qwen stream

When streaming tool calls, subsequent chunks may not have an id (only
incremental arguments). The previous code generated a new id for each
chunk, causing the parser to treat them as different tool calls instead
of merging the arguments.

Changes:
- Store first tool call's info in streamContext.tool for subsequent chunks
- Use stored tool id from streamContext for incremental chunks without id
- Add test case for mixed text + incremental tool calls (DeepSeek style)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* update WorkingDirectory

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 12:26:14 +08:00
lobehubbot 9d8f1aa764 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-05 03:51:53 +00:00
semantic-release-bot 3215cf88a7 🔖 chore(release): v2.0.0-next.212 [skip ci]
## [Version&nbsp;2.0.0-next.212](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.211...v2.0.0-next.212)
<sup>Released on **2026-01-05**</sup>

#### ♻ Code Refactoring

- **redis**: Disable automatic deserialization in upstash provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **redis**: Disable automatic deserialization in upstash provider, closes [#11210](https://github.com/lobehub/lobe-chat/issues/11210) ([eb5c76c](https://github.com/lobehub/lobe-chat/commit/eb5c76c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 03:50:31 +00:00
YuTengjing eb5c76ca4b ♻️ refactor(redis): disable automatic deserialization in upstash provider (#11210) 2026-01-05 11:32:41 +08:00
René Wang 41b710950c fix: Improve resource manager (#11189)
* fix: Auto scroll

* fix: Move multiple items

* feat: Move file to root directory

* lint: Clean up props

* lint: Fix CI error
2026-01-05 11:02:10 +08:00
lobehubbot 9f38462b76 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-05 02:56:58 +00:00
semantic-release-bot 33258f7edc 🔖 chore(release): v2.0.0-next.211 [skip ci]
## [Version&nbsp;2.0.0-next.211](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.210...v2.0.0-next.211)
<sup>Released on **2026-01-05**</sup>

#### 🐛 Bug Fixes

- **misc**: Add lost like button in discover detail page.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Add lost like button in discover detail page, closes [#11182](https://github.com/lobehub/lobe-chat/issues/11182) ([41215d4](https://github.com/lobehub/lobe-chat/commit/41215d4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-05 02:55:33 +00:00
Shinji-Li 41215d412e 🐛 fix: add lost like button in discover detail page (#11182)
fix: add lost like button
2026-01-05 10:35:18 +08:00
lobehubbot 82980a7543 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 18:07:36 +00:00
semantic-release-bot 6644057778 🔖 chore(release): v2.0.0-next.210 [skip ci]
## [Version&nbsp;2.0.0-next.210](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.209...v2.0.0-next.210)
<sup>Released on **2026-01-04**</sup>

#### 🐛 Bug Fixes

- **model-runtime**: Handle Qwen tool_calls without initial arguments.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **model-runtime**: Handle Qwen tool_calls without initial arguments, closes [#11211](https://github.com/lobehub/lobe-chat/issues/11211) ([5321d91](https://github.com/lobehub/lobe-chat/commit/5321d91))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 18:06:12 +00:00
Arvin Xu 5321d9112d 🐛 fix(model-runtime): handle Qwen tool_calls without initial arguments (#11211)
* 🐛 fix(model-runtime): handle Qwen tool_calls without initial arguments

Qwen models (e.g., qwen3-vl-235b-a22b-thinking) send tool_calls in
two separate chunks:
1. First chunk: {id, name} without arguments
2. Second chunk: {id, arguments} without name

Previously, the code directly passed `value.function`, which caused
undefined values for arguments/name in respective chunks.

Changes:
- Add default values for function.arguments (empty string) and
  function.name (null) in Qwen stream transformer
- Align behavior with OpenAI/vLLM stream handling
- Add test cases for split tool_call chunks scenario

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 🐛 fix: fix openai parallel tools calling in chat competition

* 💄 style: improve style

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 01:48:07 +08:00
Innei 0205cf73bd refactor: Extract renderer URL and protocol management into dedicated manager (#11208)
* feat: Add static export modifier for Electron, refactor route variant constants, and simplify renderer file path resolution.

* refactor: Extract renderer URL and protocol management into a dedicated `RendererUrlManager` and update `App` to utilize it.

Signed-off-by: Innei <tukon479@gmail.com>

* feat: Implement Electron app locale management and i18n initialization based on stored settings.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-01-05 00:59:35 +08:00
lobehubbot 5f6be91a88 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 13:31:25 +00:00
semantic-release-bot ecf35164a6 🔖 chore(release): v2.0.0-next.209 [skip ci]
## [Version&nbsp;2.0.0-next.209](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.208...v2.0.0-next.209)
<sup>Released on **2026-01-04**</sup>

#### 🐛 Bug Fixes

- **model-runtime**: Handle array content in anthropic assistant messages.
- **misc**: Use configured embedding provider instead of hardcoded OpenAI.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **model-runtime**: Handle array content in anthropic assistant messages, closes [#11206](https://github.com/lobehub/lobe-chat/issues/11206) ([b03845d](https://github.com/lobehub/lobe-chat/commit/b03845d))
* **misc**: Use configured embedding provider instead of hardcoded OpenAI, closes [#11133](https://github.com/lobehub/lobe-chat/issues/11133) ([503c3eb](https://github.com/lobehub/lobe-chat/commit/503c3eb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 13:29:52 +00:00
Arvin Xu b03845d006 🐛 fix(model-runtime): handle array content in anthropic assistant messages (#11206)
When assistant messages have array content (e.g., containing thinking
blocks) but no tool_calls, the code incorrectly tried to call .trim()
on the array, causing "TypeError: content?.trim is not a function".

Changes:
- Add check for array content type before processing
- Use buildArrayContent() to properly handle array content
- Return undefined for empty array content (consistent with empty string)
- Add 2 test cases for array content scenarios

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 21:12:02 +08:00
XYenon 503c3eba4e 🐛 fix: use configured embedding provider instead of hardcoded OpenAI (#11133) 2026-01-04 20:55:41 +08:00
LobeHub Bot fe87fa8fbb test: add comprehensive unit tests for parserPlaceholder (#11188)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-04 20:53:48 +08:00
lobehubbot de4a6cabe5 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 12:01:20 +00:00
semantic-release-bot 16d004871f 🔖 chore(release): v2.0.0-next.208 [skip ci]
## [Version&nbsp;2.0.0-next.208](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.207...v2.0.0-next.208)
<sup>Released on **2026-01-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Auto jump to group.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Auto jump to group, closes [#11187](https://github.com/lobehub/lobe-chat/issues/11187) ([e43578a](https://github.com/lobehub/lobe-chat/commit/e43578a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 11:59:57 +00:00
LobeHub Bot 483d9b6527 🌐 chore: translate non-English comments to English in model-runtime/utils (#11183)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-04 19:41:28 +08:00
René Wang e43578a51e 🐛 fix: Auto jump to group (#11187)
fix: Auto jump to group
2026-01-04 19:36:07 +08:00
lobehubbot 733cf9a539 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 10:29:26 +00:00
semantic-release-bot 9a67e63131 🔖 chore(release): v2.0.0-next.207 [skip ci]
## [Version&nbsp;2.0.0-next.207](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.206...v2.0.0-next.207)
<sup>Released on **2026-01-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Slove the old agents open profiles error problem.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Slove the old agents open profiles error problem, closes [#11204](https://github.com/lobehub/lobe-chat/issues/11204) ([7d650b6](https://github.com/lobehub/lobe-chat/commit/7d650b6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 10:27:56 +00:00
Shinji-Li 7d650b6d2e 🐛 fix: slove the old agents open profiles error problem (#11204)
fix: slove the old agents open profiles error problem
2026-01-04 18:09:15 +08:00
YuTengjing 5c9b4b3c40 style: Increase ModelSwitchPanel default width for better model name display (#11203) 2026-01-04 18:05:44 +08:00
lobehubbot b5589ca408 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 09:34:21 +00:00
semantic-release-bot 77f1188150 🔖 chore(release): v2.0.0-next.206 [skip ci]
## [Version&nbsp;2.0.0-next.206](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.205...v2.0.0-next.206)
<sup>Released on **2026-01-04**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix data inconsistency in ai provider config.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix data inconsistency in ai provider config, closes [#11198](https://github.com/lobehub/lobe-chat/issues/11198) ([f8346f2](https://github.com/lobehub/lobe-chat/commit/f8346f2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 09:32:55 +00:00
René Wang 6568aa8af6 feat: New model switch mode (#11118)
* feat: New switch mode

* feat: Add the settings icon back

* feat: Add the settings icon back

* lint: Supress error

* style: Adjust panel style

* style: Adjust panel style

* style: Adjust panel style

* style: Adjust padding

* feat: Add missing translation
2026-01-04 17:14:50 +08:00
Arvin Xu f8346f2440 🐛 fix: fix data inconsistency in ai provider config (#11198)
🐛 fix: fix ai provider api error
2026-01-04 17:09:22 +08:00
lobehubbot 13f3725929 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 08:29:04 +00:00
semantic-release-bot afeb519683 🔖 chore(release): v2.0.0-next.205 [skip ci]
## [Version&nbsp;2.0.0-next.205](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.204...v2.0.0-next.205)
<sup>Released on **2026-01-04**</sup>

#### 🐛 Bug Fixes

- **gtd**: Fix frozen object mutation in updateTodos.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **gtd**: Fix frozen object mutation in updateTodos, closes [#11184](https://github.com/lobehub/lobe-chat/issues/11184) ([4970794](https://github.com/lobehub/lobe-chat/commit/4970794))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 08:27:40 +00:00
Hardy 4970794d1a 🐛 fix(gtd): fix frozen object mutation in updateTodos (#11184)
* 🐛 fix(gtd): add console.log for updateTodos debugging

* 🐛 fix(gtd): fix frozen object mutation in updateTodos

* 🐛 fix(gtd): remove debug console.log
2026-01-04 16:09:43 +08:00
lobehubbot e61d9156b6 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 07:09:54 +00:00
semantic-release-bot 2a9ba0e623 🔖 chore(release): v2.0.0-next.204 [skip ci]
## [Version&nbsp;2.0.0-next.204](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.203...v2.0.0-next.204)
<sup>Released on **2026-01-04**</sup>

####  Features

- **misc**: Add new provider Xiaomi MiMo.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add new provider Xiaomi MiMo, closes [#10834](https://github.com/lobehub/lobe-chat/issues/10834) ([62f7858](https://github.com/lobehub/lobe-chat/commit/62f7858))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 07:08:25 +00:00
sxjeru 62f78586f7 feat: Add new provider Xiaomi MiMo (#10834)
*  feat: 添加 Xiaomi MiMo 模型及其配置,更新相关接口和环境变量

*  feat: 添加 Xiaomi MiMo AI 模型及其导出到 package.json 和 index.ts

*  feat: 更新 Xiaomi MiMo 模型的配置,添加单元测试以验证功能

*  feat: 移除 Xiaomi MiMo 模型的 enabled 属性,优化设置配置

* Update index.ts

* Update llm.ts

* Update llm.ts

*  feat(model): add Xiaomi MiMo provider

* Update index.ts

* update Xiaomi MiMo descriptions to English
2026-01-04 14:49:30 +08:00
Innei f8be760115 fix(desktop): sidebar background based on systemTheme (#11143)
Signed-off-by: Innei <tukon479@gmail.com>
2026-01-04 12:38:42 +08:00
lobehubbot fa97bff84f 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-04 04:11:47 +00:00
semantic-release-bot 66ded24bfc 🔖 chore(release): v2.0.0-next.203 [skip ci]
## [Version&nbsp;2.0.0-next.203](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.202...v2.0.0-next.203)
<sup>Released on **2026-01-04**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update i18n, closes [#11145](https://github.com/lobehub/lobe-chat/issues/11145) ([fdadef2](https://github.com/lobehub/lobe-chat/commit/fdadef2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-04 04:10:29 +00:00
LobeHub Bot fdadef2f98 🤖 style: update i18n (#11145)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2026-01-04 10:22:24 +08:00
lobehubbot 234c6a10b7 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 16:35:52 +00:00
semantic-release-bot d498d06031 🔖 chore(release): v2.0.0-next.202 [skip ci]
## [Version&nbsp;2.0.0-next.202](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.201...v2.0.0-next.202)
<sup>Released on **2026-01-03**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor and fix model runtime initialize.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor and fix model runtime initialize, closes [#11134](https://github.com/lobehub/lobe-chat/issues/11134) ([8078cb9](https://github.com/lobehub/lobe-chat/commit/8078cb9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 16:34:26 +00:00
Arvin Xu 8078cb9778 ♻️ refactor: refactor and fix model runtime initialize (#11134)
* ♻️ refactor: refactor and fix model runtime initialize

* fix test for model runtime

* improve loading style

* fix tests

* fix error mode

* fix error display issue

* improve style

* try to fix issue

* improve style

* improve task Inspector style

* update i18n

* fix task error state

* update i18n

* fix error result

* fix error
2026-01-04 00:16:43 +08:00
lobehubbot cc96d5a47a 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 15:42:12 +00:00
semantic-release-bot 2bcee32064 🔖 chore(release): v2.0.0-next.201 [skip ci]
## [Version&nbsp;2.0.0-next.201](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.200...v2.0.0-next.201)
<sup>Released on **2026-01-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Restore window resizable before hard reload in desktop onboarding.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Restore window resizable before hard reload in desktop onboarding, closes [#11144](https://github.com/lobehub/lobe-chat/issues/11144) ([2516874](https://github.com/lobehub/lobe-chat/commit/2516874))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 15:40:42 +00:00
Innei 25168745c9 🐛 fix: restore window resizable before hard reload in desktop onboarding (#11144)
在桌面 onboarding 完成后的硬重载之前,先恢复窗口的可调整大小状态,
确保应用重新启动时窗口可以正常调整大小。

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-01-03 23:18:59 +08:00
sxjeru 9c43353dcd 🔨 chore: Update build:vercel script to include postbuild (#11140)
Update build:vercel script to include postbuild
2026-01-03 22:07:31 +08:00
lobehubbot 8e3eb15a38 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 08:49:05 +00:00
semantic-release-bot 44065cdb54 🔖 chore(release): v2.0.0-next.200 [skip ci]
## [Version&nbsp;2.0.0-next.200](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.199...v2.0.0-next.200)
<sup>Released on **2026-01-03**</sup>

####  Features

- **misc**: Add work path for local system.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add work path for local system, closes [#11128](https://github.com/lobehub/lobe-chat/issues/11128) ([d8deadd](https://github.com/lobehub/lobe-chat/commit/d8deadd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 08:47:38 +00:00
LobeHub Bot dd6dd8cac4 test: add unit tests for genOG utilities (#11005)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-03 16:29:26 +08:00
Arvin Xu d8deaddedd feat: add work path for local system (#11128)
*  feat: support to show working dir

* fix style

* update docs

* update topic

* refactor to use chat config

* inject working Directory

* update i18n

* fix tests
2026-01-03 16:22:22 +08:00
lobehubbot 7f3226d625 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 08:18:46 +00:00
semantic-release-bot 66fa060fb3 🔖 chore(release): v2.0.0-next.199 [skip ci]
## [Version&nbsp;2.0.0-next.199](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.198...v2.0.0-next.199)
<sup>Released on **2026-01-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Filter empty assistant messages for Anthropic API.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Filter empty assistant messages for Anthropic API, closes [#11129](https://github.com/lobehub/lobe-chat/issues/11129) ([7af750b](https://github.com/lobehub/lobe-chat/commit/7af750b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 08:17:14 +00:00
Arvin Xu 7af750beeb 🐛 fix: filter empty assistant messages for Anthropic API (#11129)
fix anthropic empty error
2026-01-03 15:59:05 +08:00
lobehubbot 371e6449e1 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 07:14:01 +00:00
semantic-release-bot bbe51763b7 🔖 chore(release): v2.0.0-next.198 [skip ci]
## [Version&nbsp;2.0.0-next.198](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.197...v2.0.0-next.198)
<sup>Released on **2026-01-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Support thoughtSignature for openrouter.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Support thoughtSignature for openrouter, closes [#11117](https://github.com/lobehub/lobe-chat/issues/11117) ([bf5d41e](https://github.com/lobehub/lobe-chat/commit/bf5d41e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 07:12:31 +00:00
wangxiaolei bf5d41e1a7 🐛 fix: support thoughtSignature for openrouter (#11117)
feat: support thoughtSignature for openrouter
2026-01-03 14:53:50 +08:00
lobehubbot 8e0e5020db 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 06:21:36 +00:00
semantic-release-bot c0c834e22a 🔖 chore(release): v2.0.0-next.197 [skip ci]
## [Version&nbsp;2.0.0-next.197](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.196...v2.0.0-next.197)
<sup>Released on **2026-01-03**</sup>

#### ♻ Code Refactoring

- **misc**: Remove client db and refactor test.

#### 🐛 Bug Fixes

- **misc**: Fix file upload issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Remove client db and refactor test, closes [#11123](https://github.com/lobehub/lobe-chat/issues/11123) ([bb2799d](https://github.com/lobehub/lobe-chat/commit/bb2799d))

#### What's fixed

* **misc**: Fix file upload issue, closes [#11122](https://github.com/lobehub/lobe-chat/issues/11122) ([1ae327a](https://github.com/lobehub/lobe-chat/commit/1ae327a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 06:20:01 +00:00
Arvin Xu bb2799dc75 ♻️ refactor: remove client db and refactor test (#11123)
* ♻️ refactor: refactor to remove client db

* remove tableViewer

*  tests: remove tests
2026-01-03 13:59:45 +08:00
bbbugg bc44cba10a 🐛fix: add support for built-in model search in TokenTag component (#11114)
* fix: add support for built-in model search in TokenTag component

* fix: improve layout handling in List component for better overflow management
2026-01-03 13:56:17 +08:00
Arvin Xu 1ae327ab53 🐛 fix: fix file upload issue (#11122)
* fix upload

*  tests: fix upload
2026-01-03 13:55:19 +08:00
lobehubbot f737afacc7 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 04:45:55 +00:00
semantic-release-bot c8710d7585 🔖 chore(release): v2.0.0-next.196 [skip ci]
## [Version&nbsp;2.0.0-next.196](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.195...v2.0.0-next.196)
<sup>Released on **2026-01-03**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to remove access code.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor to remove access code, closes [#11120](https://github.com/lobehub/lobe-chat/issues/11120) ([0e9f98c](https://github.com/lobehub/lobe-chat/commit/0e9f98c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 04:44:30 +00:00
Arvin Xu 0e9f98cacb ♻️ refactor: refactor to remove access code (#11120) 2026-01-03 12:26:02 +08:00
lobehubbot d5cde9fbbf 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 04:13:53 +00:00
semantic-release-bot ff0c3c4364 🔖 chore(release): v2.0.0-next.195 [skip ci]
## [Version&nbsp;2.0.0-next.195](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.194...v2.0.0-next.195)
<sup>Released on **2026-01-03**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix tool call message content missing.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix tool call message content missing, closes [#11116](https://github.com/lobehub/lobe-chat/issues/11116) ([885964e](https://github.com/lobehub/lobe-chat/commit/885964e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 04:12:25 +00:00
Arvin Xu 885964e1bc 🐛 fix: fix tool call message content missing (#11116)
* implement telemetry middleware

* refactor mcp http call tool telemetry

* refactor cloud call tool telemetry

* 🐛 fix: fix call tool telemetry

* 🐛 fix: fix call tool issue

*  tests: add tests

*  tests: add tests

*  tests: improve tests

* 🔥 chore: remove files

* fix tests

* fix tests
2026-01-03 11:54:29 +08:00
LobeHub Bot 553a369673 🌐 chore: translate non-English comments to English in zhipu provider (#11119)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-03 10:56:19 +08:00
lobehubbot 821a14c712 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-03 02:18:05 +00:00
semantic-release-bot c552327d70 🔖 chore(release): v2.0.0-next.194 [skip ci]
## [Version&nbsp;2.0.0-next.194](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.193...v2.0.0-next.194)
<sup>Released on **2026-01-03**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update i18n, closes [#11115](https://github.com/lobehub/lobe-chat/issues/11115) ([072e0dd](https://github.com/lobehub/lobe-chat/commit/072e0dd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-03 02:16:45 +00:00
LobeHub Bot 072e0ddd88 🤖 style: update i18n (#11115)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2026-01-03 09:57:40 +08:00
lobehubbot b9fc690815 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-02 17:18:20 +00:00
lobehubbot c1dd7304f5 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-02 17:00:47 +00:00
semantic-release-bot dbabbea456 🔖 chore(release): v1.147.0 [skip ci]
## [Version&nbsp;1.147.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.146.0...v1.147.0)
<sup>Released on **2026-01-02**</sup>

#### ♻ Code Refactoring

- **userMemories**: Added `benchmark_locomo` as source unify use the of source type.
- **misc**: Add builtin tools, clean code, clean desktop relative code, clean page editor, flatten i18n keys and extract hardcoded strings in desktop, i18n formatting optimization, improve modal handling with createRawModal, migrate to new DropdownMenuV2 and showContextMenu API, move code-interpreter to single packages, refactor builtin-tool implement, refactor hooks, refactor implement, refactor implement for desktop, refactor local-system, refactor oidc env to auth env, refactor service, refactor static style, refactor to remove meta in message, refactor to use better underline style, refactor to use better underline style, refactor tool prompt injection, refactor ui and layout, refactor with editor runtime, refactor with electron, refactor with es-toolkit, remove desktop-specific upload logic, rename browser identifier from 'chat' to 'app', tools ui, use /f/:fid as file mode, use supervisor role for agent group supervisor.

####  Features

- **auth**: Add confirm password field and integrate business signup logic, add useBusinessSignup hook for business signup functionality, enhance BetterAuthSignUpForm with businessElement and update useSignUp hook for improved signup process, integrate business sign-in features and update social sign-in logic, update useBusinessSignin to include getAdditionalData function for enhanced sign-in process.
- **desktop**: MacOS About menu should navigate to Settings About tab.
- **layout**: Integrate BusinessGlobalProvider for conditional rendering based on business features.
- **memory-user-memory**: Added LoCoMo dataset loader & converter & exporter, support to extract memories from LoCoMo dataset, support to load in memory, and extract from in-memory memory sources.
- **model**: Improve model list UI and add disabled models management.
- **referral**: Add backfill referral code i18n keys.
- **userMemories**: Apply userMemories.enable from settings for injecting, use capturedAt for time of memory entries, use honorific title for identity memory.
- **misc**: Add a white waitlist in edge config env, add always show tools render in createPlan & createDoc tools, add batch tasks ui, add Bundle Analyzer workflow for detailed bundle size analysis, add business features support with new components and hooks, add business settings features with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add db and schema feature, add home page create group builder button, Add i18n UI locales and improve tool types, add like action in community detail, add memory implement, add subscription settings group with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add the market auth auto generate way, Add turbopack configuration support to CustomNextConfig, add user memory, agent builder, agent builder, agent builder and group builder, app ui page, brand new 2.0 ui for next, brand new 2.0 ui for next, buildin some tools should save into docs, code-interpreter tool, code-interpreter tool, code-interpreter tool, desktop feature, enhance desktop onboarding with sign out and localization, enhance macOS desktop permissions and onboarding, enhance onboarding process by removing mode selection step and adding export functionality in advanced settings, file search feature, gtd create plan support streaming render, implement agent builder, implement builtin agents packages, implement memories package, implement Redis caching for presigned URLs in file proxy service, implement server data feature, include Subscription settings group in the Accordion component, Integrate bcryptjs for password verification in BetterAuth, integrate BrandingProviderCard and update Provider components for branding support, onboarding ui, page and knowledge base, rebranding total UI of app, refactor authentication handler to support dynamic loading of better-auth and next-auth, refactor desktop implement with brand new 2.0, rename codeinterpreter into lobe sandbox, server implement, support CMD K, support exec async sub agent task, support export and import topic JSON, support files upload in chat input, support notebook tool, support swr local cache, topic message swr cache, translate AI model descriptions to English, update agent builder ui, update create group chat use builder, update gtd tools( use editor & update metadata ), update user memory embedding model selection based on business features, user memory, user memory, user onboarding, when use usesend to create agent/group, the model should override by lobeAi, wrap ConversationArea and ModelSwitchPanel in TooltipGroup for enhanced UI.

#### 🐛 Bug Fixes

- **ci**: Skip backend routes in bundle analyzer build.
- **database**: Add userId authorization check in removeFilesFromKnowledgeBase.
- **desktop**:  prevent window resize when onboarding, add safe top edge for message container.
- **i18n**: Translate plugin.ts locale to English.
- **image-generation**: Update chargeBeforeGenerate to return ChargeResult and include configForDatabase in parameters.
- **memory-user-memory**: Should pre-process date & time.
- **observability-otel**: Typo in package name.
- **prebuild**: Correct syntax in partialBuildPages array.
- **store**: Clear new key data when switchTopic to new state.
- **translation**: Add fallback for all English locale variants.
- **userMemories**: 404/405 issue due to incorrectly used workflow name and mounted catch-all route, missing base memory as part of context, must assign workflow id, should use `context.invoke` for workflow instead of `context.run`, skip to handle WorkflowAbort, use date & time for building context, workflow id build issue.
- **misc**: Agent profiles update, agent tools config set, editor placeholder, bump charts 3.0.4 to fix import es path, fix anthropic thinking budget, fix async task and improve tool style, fix default waitlist bug, fix delete agent group bug, Fix desktop test cases and refactor translations, Fix desktop test cases and refactor translations, fix gemini 3 model thinking issue, fix gemini 3 pro parallel tool use, fix gemini 3 thinking params, fix identity memory not working, fix model edit icon missing, fix supervisor flag, fix thread not working issue, fix when use branch topic,the branch index error problem, fixed the welcome card the create button not work, handle session invalidation on 401 error by logging out signed-in users, improve test infrastructure and mock configurations, locale resolve bug with ESM module loading, page agent editor, prevent redundant login redirect when already on auth pages, redis read json object, remove openapi pkg patch file, slove input editor on pause emit, slove swr mutate not work in Cache Provider, slove the group add member checkbox not work, slove the model select null problem, slove the mutate not work problem, slove when click agentbuilder should clean topic, slove when first call thread, not show ai chat message, support retry error message and fix continueGenerationMessage, update contextMenu in group tools message, update OFFICIAL_URL to app.lobehub.com, update PlanTag link paths for subscription settings, update test snapshots for model description changes, when use agentbuilder the topic id should use new & clear topic….

#### 💄 Styles

- **misc**: Add Gemini 3 Flash & Doubao Seed 1.8 models, improve ExecTask and task message UI, improve gtd tool inspector and todo list, improve loading and local-system render, improve page document tool inspector UI, improve RunCommand Inspector, improve tools UI and fix Google schema compatibility, rebranding chat ui, refactor UI in features, rerun i18n, setting style, support streaming and display ui for group mode, support tool streaming and title custom render, update i18n, update i18n, update i18n, Update i18n microcopy, update ui.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **userMemories**: Added `benchmark_locomo` as source unify use the of source type, closes [#10922](https://github.com/jaworldwideorg/OneJA-Bot/issues/10922) ([03342a7](https://github.com/jaworldwideorg/OneJA-Bot/commit/03342a7))
* **misc**: Add builtin tools ([26e73cc](https://github.com/jaworldwideorg/OneJA-Bot/commit/26e73cc))
* **misc**: Clean code ([4ddb491](https://github.com/jaworldwideorg/OneJA-Bot/commit/4ddb491))
* **misc**: Clean desktop relative code ([ffd7d23](https://github.com/jaworldwideorg/OneJA-Bot/commit/ffd7d23))
* **misc**: Clean page editor, closes [#10966](https://github.com/jaworldwideorg/OneJA-Bot/issues/10966) ([15410d1](https://github.com/jaworldwideorg/OneJA-Bot/commit/15410d1))
* **misc**: Flatten i18n keys and extract hardcoded strings in desktop, closes [#10939](https://github.com/jaworldwideorg/OneJA-Bot/issues/10939) ([e5f3a58](https://github.com/jaworldwideorg/OneJA-Bot/commit/e5f3a58))
* **misc**: I18n formatting optimization, closes [#10929](https://github.com/jaworldwideorg/OneJA-Bot/issues/10929) [#10933](https://github.com/jaworldwideorg/OneJA-Bot/issues/10933) ([d692a37](https://github.com/jaworldwideorg/OneJA-Bot/commit/d692a37))
* **misc**: Improve modal handling with createRawModal, closes [#11071](https://github.com/jaworldwideorg/OneJA-Bot/issues/11071) ([f5314c5](https://github.com/jaworldwideorg/OneJA-Bot/commit/f5314c5))
* **misc**: Migrate to new DropdownMenuV2 and showContextMenu API, closes [#11079](https://github.com/jaworldwideorg/OneJA-Bot/issues/11079) ([04cfc0e](https://github.com/jaworldwideorg/OneJA-Bot/commit/04cfc0e))
* **misc**: Move code-interpreter to single packages ([1fa4357](https://github.com/jaworldwideorg/OneJA-Bot/commit/1fa4357))
* **misc**: Refactor builtin-tool implement ([9ede8e7](https://github.com/jaworldwideorg/OneJA-Bot/commit/9ede8e7))
* **misc**: Refactor hooks ([e3fa62e](https://github.com/jaworldwideorg/OneJA-Bot/commit/e3fa62e))
* **misc**: Refactor implement ([34d059f](https://github.com/jaworldwideorg/OneJA-Bot/commit/34d059f))
* **misc**: Refactor implement for desktop ([27f101f](https://github.com/jaworldwideorg/OneJA-Bot/commit/27f101f))
* **misc**: Refactor local-system ([a69221f](https://github.com/jaworldwideorg/OneJA-Bot/commit/a69221f))
* **misc**: Refactor oidc env to auth env, closes [#11095](https://github.com/jaworldwideorg/OneJA-Bot/issues/11095) ([6e8d4ff](https://github.com/jaworldwideorg/OneJA-Bot/commit/6e8d4ff))
* **misc**: Refactor service ([91bbbf5](https://github.com/jaworldwideorg/OneJA-Bot/commit/91bbbf5))
* **misc**: Refactor static style, closes [#11010](https://github.com/jaworldwideorg/OneJA-Bot/issues/11010) ([d865e27](https://github.com/jaworldwideorg/OneJA-Bot/commit/d865e27))
* **misc**: Refactor to remove meta in message, closes [#11103](https://github.com/jaworldwideorg/OneJA-Bot/issues/11103) ([527c1cd](https://github.com/jaworldwideorg/OneJA-Bot/commit/527c1cd))
* **misc**: Refactor to use better underline style ([784bb58](https://github.com/jaworldwideorg/OneJA-Bot/commit/784bb58))
* **misc**: Refactor to use better underline style ([5e10ac8](https://github.com/jaworldwideorg/OneJA-Bot/commit/5e10ac8))
* **misc**: Refactor tool prompt injection ([6099ac3](https://github.com/jaworldwideorg/OneJA-Bot/commit/6099ac3))
* **misc**: Refactor ui and layout ([436d9e5](https://github.com/jaworldwideorg/OneJA-Bot/commit/436d9e5))
* **misc**: Refactor with editor runtime ([be2b41c](https://github.com/jaworldwideorg/OneJA-Bot/commit/be2b41c))
* **misc**: Refactor with electron ([849ee3d](https://github.com/jaworldwideorg/OneJA-Bot/commit/849ee3d))
* **misc**: Refactor with es-toolkit ([1848d27](https://github.com/jaworldwideorg/OneJA-Bot/commit/1848d27))
* **misc**: Remove desktop-specific upload logic, closes [#11070](https://github.com/jaworldwideorg/OneJA-Bot/issues/11070) ([475065e](https://github.com/jaworldwideorg/OneJA-Bot/commit/475065e))
* **misc**: Rename browser identifier from 'chat' to 'app', closes [#10940](https://github.com/jaworldwideorg/OneJA-Bot/issues/10940) ([dc870c7](https://github.com/jaworldwideorg/OneJA-Bot/commit/dc870c7))
* **misc**: Tools ui ([6bf4546](https://github.com/jaworldwideorg/OneJA-Bot/commit/6bf4546))
* **misc**: Use /f/:fid as file mode ([3b01174](https://github.com/jaworldwideorg/OneJA-Bot/commit/3b01174))
* **misc**: Use supervisor role for agent group supervisor ([0ca823f](https://github.com/jaworldwideorg/OneJA-Bot/commit/0ca823f))

#### What's improved

* **auth**: Add confirm password field and integrate business signup logic ([2ccd5c7](https://github.com/jaworldwideorg/OneJA-Bot/commit/2ccd5c7))
* **auth**: Add useBusinessSignup hook for business signup functionality ([3efb6cc](https://github.com/jaworldwideorg/OneJA-Bot/commit/3efb6cc))
* **auth**: Enhance BetterAuthSignUpForm with businessElement and update useSignUp hook for improved signup process ([991d8c1](https://github.com/jaworldwideorg/OneJA-Bot/commit/991d8c1))
* **auth**: Integrate business sign-in features and update social sign-in logic ([6dc7916](https://github.com/jaworldwideorg/OneJA-Bot/commit/6dc7916))
* **auth**: Update useBusinessSignin to include getAdditionalData function for enhanced sign-in process ([c8e3bc9](https://github.com/jaworldwideorg/OneJA-Bot/commit/c8e3bc9))
* **desktop**: MacOS About menu should navigate to Settings About tab, closes [#10942](https://github.com/jaworldwideorg/OneJA-Bot/issues/10942) ([1a4f456](https://github.com/jaworldwideorg/OneJA-Bot/commit/1a4f456))
* **layout**: Integrate BusinessGlobalProvider for conditional rendering based on business features ([52c7a49](https://github.com/jaworldwideorg/OneJA-Bot/commit/52c7a49))
* **memory-user-memory**: Added LoCoMo dataset loader & converter & exporter, closes [#10923](https://github.com/jaworldwideorg/OneJA-Bot/issues/10923) ([a5dd785](https://github.com/jaworldwideorg/OneJA-Bot/commit/a5dd785))
* **memory-user-memory**: Support to extract memories from LoCoMo dataset, closes [#10925](https://github.com/jaworldwideorg/OneJA-Bot/issues/10925) ([c7c7d6f](https://github.com/jaworldwideorg/OneJA-Bot/commit/c7c7d6f))
* **memory-user-memory**: Support to load in memory, and extract from in-memory memory sources, closes [#10924](https://github.com/jaworldwideorg/OneJA-Bot/issues/10924) ([9ac3ce7](https://github.com/jaworldwideorg/OneJA-Bot/commit/9ac3ce7))
* **model**: Improve model list UI and add disabled models management, closes [#11036](https://github.com/jaworldwideorg/OneJA-Bot/issues/11036) ([4faa65c](https://github.com/jaworldwideorg/OneJA-Bot/commit/4faa65c))
* **referral**: Add backfill referral code i18n keys ([bbf62ce](https://github.com/jaworldwideorg/OneJA-Bot/commit/bbf62ce))
* **userMemories**: Apply userMemories.enable from settings for injecting, closes [#11038](https://github.com/jaworldwideorg/OneJA-Bot/issues/11038) ([1cc0e8c](https://github.com/jaworldwideorg/OneJA-Bot/commit/1cc0e8c))
* **userMemories**: Use capturedAt for time of memory entries, closes [#11037](https://github.com/jaworldwideorg/OneJA-Bot/issues/11037) ([5615d20](https://github.com/jaworldwideorg/OneJA-Bot/commit/5615d20))
* **userMemories**: Use honorific title for identity memory, closes [#11039](https://github.com/jaworldwideorg/OneJA-Bot/issues/11039) ([ab61c69](https://github.com/jaworldwideorg/OneJA-Bot/commit/ab61c69))
* **misc**: Add a white waitlist in edge config env, closes [#11009](https://github.com/jaworldwideorg/OneJA-Bot/issues/11009) ([88f22f4](https://github.com/jaworldwideorg/OneJA-Bot/commit/88f22f4))
* **misc**: Add always show tools render in createPlan & createDoc tools, closes [#10937](https://github.com/jaworldwideorg/OneJA-Bot/issues/10937) ([c224951](https://github.com/jaworldwideorg/OneJA-Bot/commit/c224951))
* **misc**: Add batch tasks ui ([80587ae](https://github.com/jaworldwideorg/OneJA-Bot/commit/80587ae))
* **misc**: Add Bundle Analyzer workflow for detailed bundle size analysis ([596e489](https://github.com/jaworldwideorg/OneJA-Bot/commit/596e489))
* **misc**: Add business features support with new components and hooks ([1dccc04](https://github.com/jaworldwideorg/OneJA-Bot/commit/1dccc04))
* **misc**: Add business settings features with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs ([35c6ad9](https://github.com/jaworldwideorg/OneJA-Bot/commit/35c6ad9))
* **misc**: Add db and schema feature ([9e47c33](https://github.com/jaworldwideorg/OneJA-Bot/commit/9e47c33))
* **misc**: Add home page create group builder button, closes [#10904](https://github.com/jaworldwideorg/OneJA-Bot/issues/10904) ([3183189](https://github.com/jaworldwideorg/OneJA-Bot/commit/3183189))
* **misc**: Add i18n UI locales and improve tool types, closes [#10964](https://github.com/jaworldwideorg/OneJA-Bot/issues/10964) ([0e89ce5](https://github.com/jaworldwideorg/OneJA-Bot/commit/0e89ce5))
* **misc**: Add like action in community detail, closes [#10971](https://github.com/jaworldwideorg/OneJA-Bot/issues/10971) ([c11d802](https://github.com/jaworldwideorg/OneJA-Bot/commit/c11d802))
* **misc**: Add memory implement ([fdae83c](https://github.com/jaworldwideorg/OneJA-Bot/commit/fdae83c))
* **misc**: Add subscription settings group with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs ([2ddc876](https://github.com/jaworldwideorg/OneJA-Bot/commit/2ddc876))
* **misc**: Add the market auth auto generate way, closes [#10993](https://github.com/jaworldwideorg/OneJA-Bot/issues/10993) ([849ac73](https://github.com/jaworldwideorg/OneJA-Bot/commit/849ac73))
* **misc**: Add turbopack configuration support to CustomNextConfig ([2e7076a](https://github.com/jaworldwideorg/OneJA-Bot/commit/2e7076a))
* **misc**: Add user memory ([c305889](https://github.com/jaworldwideorg/OneJA-Bot/commit/c305889))
* **misc**: Agent builder ([ede0ed6](https://github.com/jaworldwideorg/OneJA-Bot/commit/ede0ed6))
* **misc**: Agent builder ([e3c9454](https://github.com/jaworldwideorg/OneJA-Bot/commit/e3c9454))
* **misc**: Agent builder and group builder ([d735e2c](https://github.com/jaworldwideorg/OneJA-Bot/commit/d735e2c))
* **misc**: App ui page ([78d07c0](https://github.com/jaworldwideorg/OneJA-Bot/commit/78d07c0))
* **misc**: Brand new 2.0 ui for next ([e5d6d3d](https://github.com/jaworldwideorg/OneJA-Bot/commit/e5d6d3d))
* **misc**: Brand new 2.0 ui for next ([f7d724f](https://github.com/jaworldwideorg/OneJA-Bot/commit/f7d724f))
* **misc**: Buildin some tools should save into docs, closes [#10935](https://github.com/jaworldwideorg/OneJA-Bot/issues/10935) ([be4c17d](https://github.com/jaworldwideorg/OneJA-Bot/commit/be4c17d))
* **misc**: Code-interpreter tool ([1940914](https://github.com/jaworldwideorg/OneJA-Bot/commit/1940914))
* **misc**: Code-interpreter tool ([c931909](https://github.com/jaworldwideorg/OneJA-Bot/commit/c931909))
* **misc**: Code-interpreter tool ([baa29c8](https://github.com/jaworldwideorg/OneJA-Bot/commit/baa29c8))
* **misc**: Desktop feature ([ac93637](https://github.com/jaworldwideorg/OneJA-Bot/commit/ac93637))
* **misc**: Enhance desktop onboarding with sign out and localization, closes [#11033](https://github.com/jaworldwideorg/OneJA-Bot/issues/11033) ([34a6312](https://github.com/jaworldwideorg/OneJA-Bot/commit/34a6312))
* **misc**: Enhance macOS desktop permissions and onboarding, closes [#11016](https://github.com/jaworldwideorg/OneJA-Bot/issues/11016) ([9db8da8](https://github.com/jaworldwideorg/OneJA-Bot/commit/9db8da8))
* **misc**: Enhance onboarding process by removing mode selection step and adding export functionality in advanced settings ([8b6c30e](https://github.com/jaworldwideorg/OneJA-Bot/commit/8b6c30e))
* **misc**: File search feature ([9786d64](https://github.com/jaworldwideorg/OneJA-Bot/commit/9786d64))
* **misc**: Gtd create plan support streaming render, closes [#11034](https://github.com/jaworldwideorg/OneJA-Bot/issues/11034) ([74d3555](https://github.com/jaworldwideorg/OneJA-Bot/commit/74d3555))
* **misc**: Implement agent builder ([f638b97](https://github.com/jaworldwideorg/OneJA-Bot/commit/f638b97))
* **misc**: Implement builtin agents packages ([2255a7c](https://github.com/jaworldwideorg/OneJA-Bot/commit/2255a7c))
* **misc**: Implement memories package ([7f94ef1](https://github.com/jaworldwideorg/OneJA-Bot/commit/7f94ef1))
* **misc**: Implement Redis caching for presigned URLs in file proxy service ([15722f1](https://github.com/jaworldwideorg/OneJA-Bot/commit/15722f1))
* **misc**: Implement server data feature ([9c46c6e](https://github.com/jaworldwideorg/OneJA-Bot/commit/9c46c6e))
* **misc**: Include Subscription settings group in the Accordion component ([8f2d57d](https://github.com/jaworldwideorg/OneJA-Bot/commit/8f2d57d))
* **misc**: Integrate bcryptjs for password verification in BetterAuth ([180ebfd](https://github.com/jaworldwideorg/OneJA-Bot/commit/180ebfd))
* **misc**: Integrate BrandingProviderCard and update Provider components for branding support ([6b5ce79](https://github.com/jaworldwideorg/OneJA-Bot/commit/6b5ce79))
* **misc**: Onboarding ui ([81d33a6](https://github.com/jaworldwideorg/OneJA-Bot/commit/81d33a6))
* **misc**: Page and knowledge base ([492d3cc](https://github.com/jaworldwideorg/OneJA-Bot/commit/492d3cc))
* **misc**: Rebranding total UI of app ([13ca81b](https://github.com/jaworldwideorg/OneJA-Bot/commit/13ca81b))
* **misc**: Refactor authentication handler to support dynamic loading of better-auth and next-auth ([d6419e4](https://github.com/jaworldwideorg/OneJA-Bot/commit/d6419e4))
* **misc**: Refactor desktop implement with brand new 2.0 ([10e048c](https://github.com/jaworldwideorg/OneJA-Bot/commit/10e048c))
* **misc**: Rename codeinterpreter into lobe sandbox, closes [#11076](https://github.com/jaworldwideorg/OneJA-Bot/issues/11076) ([2a631b4](https://github.com/jaworldwideorg/OneJA-Bot/commit/2a631b4))
* **misc**: Server implement ([685a6cd](https://github.com/jaworldwideorg/OneJA-Bot/commit/685a6cd))
* **misc**: Support CMD K ([d2bd8a6](https://github.com/jaworldwideorg/OneJA-Bot/commit/d2bd8a6))
* **misc**: Support exec async sub agent task ([dba1acf](https://github.com/jaworldwideorg/OneJA-Bot/commit/dba1acf))
* **misc**: Support export and import topic JSON, closes [#10885](https://github.com/jaworldwideorg/OneJA-Bot/issues/10885) ([0c5a41f](https://github.com/jaworldwideorg/OneJA-Bot/commit/0c5a41f))
* **misc**: Support files upload in chat input, closes [#10967](https://github.com/jaworldwideorg/OneJA-Bot/issues/10967) ([60eba45](https://github.com/jaworldwideorg/OneJA-Bot/commit/60eba45))
* **misc**: Support notebook tool, closes [#10902](https://github.com/jaworldwideorg/OneJA-Bot/issues/10902) ([e05375f](https://github.com/jaworldwideorg/OneJA-Bot/commit/e05375f))
* **misc**: Support swr local cache, closes [#10884](https://github.com/jaworldwideorg/OneJA-Bot/issues/10884) ([bc3f3e2](https://github.com/jaworldwideorg/OneJA-Bot/commit/bc3f3e2))
* **misc**: Topic message swr cache, closes [#10886](https://github.com/jaworldwideorg/OneJA-Bot/issues/10886) ([613a404](https://github.com/jaworldwideorg/OneJA-Bot/commit/613a404))
* **misc**: Translate AI model descriptions to English, closes [#10989](https://github.com/jaworldwideorg/OneJA-Bot/issues/10989) ([36ea258](https://github.com/jaworldwideorg/OneJA-Bot/commit/36ea258))
* **misc**: Update agent builder ui, closes [#10996](https://github.com/jaworldwideorg/OneJA-Bot/issues/10996) ([704ef7f](https://github.com/jaworldwideorg/OneJA-Bot/commit/704ef7f))
* **misc**: Update create group chat use builder, closes [#11030](https://github.com/jaworldwideorg/OneJA-Bot/issues/11030) ([7ae24c2](https://github.com/jaworldwideorg/OneJA-Bot/commit/7ae24c2))
* **misc**: Update gtd tools( use editor & update metadata ), closes [#11029](https://github.com/jaworldwideorg/OneJA-Bot/issues/11029) ([4a47ea0](https://github.com/jaworldwideorg/OneJA-Bot/commit/4a47ea0))
* **misc**: Update user memory embedding model selection based on business features ([c026117](https://github.com/jaworldwideorg/OneJA-Bot/commit/c026117))
* **misc**: User memory ([d5ce144](https://github.com/jaworldwideorg/OneJA-Bot/commit/d5ce144))
* **misc**: User memory ([49ffcb5](https://github.com/jaworldwideorg/OneJA-Bot/commit/49ffcb5))
* **misc**: User onboarding ([5e59388](https://github.com/jaworldwideorg/OneJA-Bot/commit/5e59388))
* **misc**: When use usesend to create agent/group, the model should override by lobeAi, closes [#11048](https://github.com/jaworldwideorg/OneJA-Bot/issues/11048) ([754ffe1](https://github.com/jaworldwideorg/OneJA-Bot/commit/754ffe1))
* **misc**: Wrap ConversationArea and ModelSwitchPanel in TooltipGroup for enhanced UI ([672bcf7](https://github.com/jaworldwideorg/OneJA-Bot/commit/672bcf7))

#### What's fixed

* **ci**: Skip backend routes in bundle analyzer build, closes [#10944](https://github.com/jaworldwideorg/OneJA-Bot/issues/10944) ([2fc3b42](https://github.com/jaworldwideorg/OneJA-Bot/commit/2fc3b42))
* **database**: Add userId authorization check in removeFilesFromKnowledgeBase, closes [#11108](https://github.com/jaworldwideorg/OneJA-Bot/issues/11108) ([2c1762b](https://github.com/jaworldwideorg/OneJA-Bot/commit/2c1762b))
* **desktop**:  prevent window resize when onboarding, closes [#10887](https://github.com/jaworldwideorg/OneJA-Bot/issues/10887) ([c29c02b](https://github.com/jaworldwideorg/OneJA-Bot/commit/c29c02b))
* **desktop**: Add safe top edge for message container, closes [#10908](https://github.com/jaworldwideorg/OneJA-Bot/issues/10908) ([2558b47](https://github.com/jaworldwideorg/OneJA-Bot/commit/2558b47))
* **i18n**: Translate plugin.ts locale to English, closes [#10972](https://github.com/jaworldwideorg/OneJA-Bot/issues/10972) ([89f89c7](https://github.com/jaworldwideorg/OneJA-Bot/commit/89f89c7))
* **image-generation**: Update chargeBeforeGenerate to return ChargeResult and include configForDatabase in parameters ([4f2a683](https://github.com/jaworldwideorg/OneJA-Bot/commit/4f2a683))
* **memory-user-memory**: Should pre-process date & time, closes [#10979](https://github.com/jaworldwideorg/OneJA-Bot/issues/10979) ([c2bcf73](https://github.com/jaworldwideorg/OneJA-Bot/commit/c2bcf73))
* **observability-otel**: Typo in package name, closes [#11025](https://github.com/jaworldwideorg/OneJA-Bot/issues/11025) ([63224dd](https://github.com/jaworldwideorg/OneJA-Bot/commit/63224dd))
* **prebuild**: Correct syntax in partialBuildPages array ([9580672](https://github.com/jaworldwideorg/OneJA-Bot/commit/9580672))
* **store**: Clear new key data when switchTopic to new state, closes [#11078](https://github.com/jaworldwideorg/OneJA-Bot/issues/11078) ([180ea14](https://github.com/jaworldwideorg/OneJA-Bot/commit/180ea14))
* **translation**: Add fallback for all English locale variants, closes [#10984](https://github.com/jaworldwideorg/OneJA-Bot/issues/10984) ([ce46996](https://github.com/jaworldwideorg/OneJA-Bot/commit/ce46996))
* **userMemories**: 404/405 issue due to incorrectly used workflow name and mounted catch-all route, closes [#10995](https://github.com/jaworldwideorg/OneJA-Bot/issues/10995) ([45996c6](https://github.com/jaworldwideorg/OneJA-Bot/commit/45996c6))
* **userMemories**: Missing base memory as part of context, closes [#11040](https://github.com/jaworldwideorg/OneJA-Bot/issues/11040) ([3c9bafe](https://github.com/jaworldwideorg/OneJA-Bot/commit/3c9bafe))
* **userMemories**: Must assign workflow id, closes [#11021](https://github.com/jaworldwideorg/OneJA-Bot/issues/11021) ([78b0c7b](https://github.com/jaworldwideorg/OneJA-Bot/commit/78b0c7b))
* **userMemories**: Should use `context.invoke` for workflow instead of `context.run`, closes [#10994](https://github.com/jaworldwideorg/OneJA-Bot/issues/10994) ([6592d10](https://github.com/jaworldwideorg/OneJA-Bot/commit/6592d10))
* **userMemories**: Skip to handle WorkflowAbort, closes [#11031](https://github.com/jaworldwideorg/OneJA-Bot/issues/11031) ([17124a8](https://github.com/jaworldwideorg/OneJA-Bot/commit/17124a8))
* **userMemories**: Use date & time for building context, closes [#10978](https://github.com/jaworldwideorg/OneJA-Bot/issues/10978) ([15bc6bc](https://github.com/jaworldwideorg/OneJA-Bot/commit/15bc6bc))
* **userMemories**: Workflow id build issue, closes [#10998](https://github.com/jaworldwideorg/OneJA-Bot/issues/10998) ([0b110b6](https://github.com/jaworldwideorg/OneJA-Bot/commit/0b110b6))
* **misc**: Agent profiles update, agent tools config set, editor placeholder, closes [#11074](https://github.com/jaworldwideorg/OneJA-Bot/issues/11074) ([f7cbfe4](https://github.com/jaworldwideorg/OneJA-Bot/commit/f7cbfe4))
* **misc**: Bump charts 3.0.4 to fix import es path, closes [#10898](https://github.com/jaworldwideorg/OneJA-Bot/issues/10898) ([6d7dce7](https://github.com/jaworldwideorg/OneJA-Bot/commit/6d7dce7))
* **misc**: Fix anthropic thinking budget ([6e19bd3](https://github.com/jaworldwideorg/OneJA-Bot/commit/6e19bd3))
* **misc**: Fix async task and improve tool style ([1aa1c04](https://github.com/jaworldwideorg/OneJA-Bot/commit/1aa1c04))
* **misc**: Fix default waitlist bug ([de62035](https://github.com/jaworldwideorg/OneJA-Bot/commit/de62035))
* **misc**: Fix delete agent group bug ([0fe0d6f](https://github.com/jaworldwideorg/OneJA-Bot/commit/0fe0d6f))
* **misc**: Fix desktop test cases and refactor translations, closes [#10956](https://github.com/jaworldwideorg/OneJA-Bot/issues/10956) ([568235c](https://github.com/jaworldwideorg/OneJA-Bot/commit/568235c))
* **misc**: Fix desktop test cases and refactor translations, closes [#10955](https://github.com/jaworldwideorg/OneJA-Bot/issues/10955) ([b3520a2](https://github.com/jaworldwideorg/OneJA-Bot/commit/b3520a2))
* **misc**: Fix gemini 3 model thinking issue ([69f4cf3](https://github.com/jaworldwideorg/OneJA-Bot/commit/69f4cf3))
* **misc**: Fix gemini 3 pro parallel tool use ([a0cc9c3](https://github.com/jaworldwideorg/OneJA-Bot/commit/a0cc9c3))
* **misc**: Fix gemini 3 thinking params ([89363b2](https://github.com/jaworldwideorg/OneJA-Bot/commit/89363b2))
* **misc**: Fix identity memory not working, closes [#10916](https://github.com/jaworldwideorg/OneJA-Bot/issues/10916) ([fbd0b66](https://github.com/jaworldwideorg/OneJA-Bot/commit/fbd0b66))
* **misc**: Fix model edit icon missing, closes [#11105](https://github.com/jaworldwideorg/OneJA-Bot/issues/11105) ([0f88995](https://github.com/jaworldwideorg/OneJA-Bot/commit/0f88995))
* **misc**: Fix supervisor flag ([fc20dbc](https://github.com/jaworldwideorg/OneJA-Bot/commit/fc20dbc))
* **misc**: Fix thread not working issue ([7dd30eb](https://github.com/jaworldwideorg/OneJA-Bot/commit/7dd30eb))
* **misc**: Fix when use branch topic,the branch index error problem, closes [#11049](https://github.com/jaworldwideorg/OneJA-Bot/issues/11049) ([34b5a32](https://github.com/jaworldwideorg/OneJA-Bot/commit/34b5a32))
* **misc**: Fixed the welcome card the create button not work, closes [#11055](https://github.com/jaworldwideorg/OneJA-Bot/issues/11055) ([00e81f1](https://github.com/jaworldwideorg/OneJA-Bot/commit/00e81f1))
* **misc**: Handle session invalidation on 401 error by logging out signed-in users ([499bd4a](https://github.com/jaworldwideorg/OneJA-Bot/commit/499bd4a))
* **misc**: Improve test infrastructure and mock configurations, closes [#11028](https://github.com/jaworldwideorg/OneJA-Bot/issues/11028) ([da4eb9c](https://github.com/jaworldwideorg/OneJA-Bot/commit/da4eb9c))
* **misc**: Locale resolve bug with ESM module loading, closes [#11018](https://github.com/jaworldwideorg/OneJA-Bot/issues/11018) ([770c872](https://github.com/jaworldwideorg/OneJA-Bot/commit/770c872))
* **misc**: Page agent editor, closes [#10953](https://github.com/jaworldwideorg/OneJA-Bot/issues/10953) ([61b3031](https://github.com/jaworldwideorg/OneJA-Bot/commit/61b3031))
* **misc**: Prevent redundant login redirect when already on auth pages ([1a5049c](https://github.com/jaworldwideorg/OneJA-Bot/commit/1a5049c))
* **misc**: Redis read json object ([1718fa3](https://github.com/jaworldwideorg/OneJA-Bot/commit/1718fa3))
* **misc**: Remove openapi pkg patch file, closes [#10910](https://github.com/jaworldwideorg/OneJA-Bot/issues/10910) ([a34c111](https://github.com/jaworldwideorg/OneJA-Bot/commit/a34c111))
* **misc**: Slove input editor on pause emit, closes [#11051](https://github.com/jaworldwideorg/OneJA-Bot/issues/11051) ([d102d47](https://github.com/jaworldwideorg/OneJA-Bot/commit/d102d47))
* **misc**: Slove swr mutate not work in Cache Provider, closes [#10895](https://github.com/jaworldwideorg/OneJA-Bot/issues/10895) ([b3fbffe](https://github.com/jaworldwideorg/OneJA-Bot/commit/b3fbffe))
* **misc**: Slove the group add member checkbox not work, closes [#11045](https://github.com/jaworldwideorg/OneJA-Bot/issues/11045) [#11042](https://github.com/jaworldwideorg/OneJA-Bot/issues/11042) ([91d3f74](https://github.com/jaworldwideorg/OneJA-Bot/commit/91d3f74))
* **misc**: Slove the model select null problem, closes [#10988](https://github.com/jaworldwideorg/OneJA-Bot/issues/10988) ([50aa304](https://github.com/jaworldwideorg/OneJA-Bot/commit/50aa304))
* **misc**: Slove the mutate not work problem, closes [#10947](https://github.com/jaworldwideorg/OneJA-Bot/issues/10947) ([78ca5eb](https://github.com/jaworldwideorg/OneJA-Bot/commit/78ca5eb))
* **misc**: Slove when click agentbuilder should clean topic, closes [#11068](https://github.com/jaworldwideorg/OneJA-Bot/issues/11068) ([048bd66](https://github.com/jaworldwideorg/OneJA-Bot/commit/048bd66))
* **misc**: Slove when first call thread, not show ai chat message, closes [#10878](https://github.com/jaworldwideorg/OneJA-Bot/issues/10878) ([5a79cb9](https://github.com/jaworldwideorg/OneJA-Bot/commit/5a79cb9))
* **misc**: Support retry error message and fix continueGenerationMessage ([8bf85fb](https://github.com/jaworldwideorg/OneJA-Bot/commit/8bf85fb))
* **misc**: Update contextMenu in group tools message, closes [#11056](https://github.com/jaworldwideorg/OneJA-Bot/issues/11056) ([8b49414](https://github.com/jaworldwideorg/OneJA-Bot/commit/8b49414))
* **misc**: Update OFFICIAL_URL to app.lobehub.com, closes [#11015](https://github.com/jaworldwideorg/OneJA-Bot/issues/11015) ([f9e11d0](https://github.com/jaworldwideorg/OneJA-Bot/commit/f9e11d0))
* **misc**: Update PlanTag link paths for subscription settings ([ada71d3](https://github.com/jaworldwideorg/OneJA-Bot/commit/ada71d3))
* **misc**: Update test snapshots for model description changes, closes [#11008](https://github.com/jaworldwideorg/OneJA-Bot/issues/11008) ([626e808](https://github.com/jaworldwideorg/OneJA-Bot/commit/626e808))
* **misc**: When use agentbuilder the topic id should use new & clear topic…, closes [#10983](https://github.com/jaworldwideorg/OneJA-Bot/issues/10983) ([0b2b096](https://github.com/jaworldwideorg/OneJA-Bot/commit/0b2b096))

#### Styles

* **misc**: Add Gemini 3 Flash & Doubao Seed 1.8 models, closes [#10832](https://github.com/jaworldwideorg/OneJA-Bot/issues/10832) ([cb35935](https://github.com/jaworldwideorg/OneJA-Bot/commit/cb35935))
* **misc**: Improve ExecTask and task message UI ([977a700](https://github.com/jaworldwideorg/OneJA-Bot/commit/977a700))
* **misc**: Improve gtd tool inspector and todo list ([0664563](https://github.com/jaworldwideorg/OneJA-Bot/commit/0664563))
* **misc**: Improve loading and local-system render, closes [#11087](https://github.com/jaworldwideorg/OneJA-Bot/issues/11087) ([44630bc](https://github.com/jaworldwideorg/OneJA-Bot/commit/44630bc))
* **misc**: Improve page document tool inspector UI, closes [#10977](https://github.com/jaworldwideorg/OneJA-Bot/issues/10977) ([7f69cb1](https://github.com/jaworldwideorg/OneJA-Bot/commit/7f69cb1))
* **misc**: Improve RunCommand Inspector ([0751fa4](https://github.com/jaworldwideorg/OneJA-Bot/commit/0751fa4))
* **misc**: Improve tools UI and fix Google schema compatibility, closes [#11096](https://github.com/jaworldwideorg/OneJA-Bot/issues/11096) ([70a9cff](https://github.com/jaworldwideorg/OneJA-Bot/commit/70a9cff))
* **misc**: Rebranding chat ui ([ad14222](https://github.com/jaworldwideorg/OneJA-Bot/commit/ad14222))
* **misc**: Refactor UI in features ([83e689f](https://github.com/jaworldwideorg/OneJA-Bot/commit/83e689f))
* **misc**: Rerun i18n ([80f511c](https://github.com/jaworldwideorg/OneJA-Bot/commit/80f511c))
* **misc**: Setting style ([e8c755f](https://github.com/jaworldwideorg/OneJA-Bot/commit/e8c755f))
* **misc**: Support streaming and display ui for group mode ([f708cdb](https://github.com/jaworldwideorg/OneJA-Bot/commit/f708cdb))
* **misc**: Support tool streaming and title custom render, closes [#10976](https://github.com/jaworldwideorg/OneJA-Bot/issues/10976) ([576ccd6](https://github.com/jaworldwideorg/OneJA-Bot/commit/576ccd6))
* **misc**: Update i18n, closes [#11100](https://github.com/jaworldwideorg/OneJA-Bot/issues/11100) ([bb4571b](https://github.com/jaworldwideorg/OneJA-Bot/commit/bb4571b))
* **misc**: Update i18n, closes [#11085](https://github.com/jaworldwideorg/OneJA-Bot/issues/11085) ([0941a52](https://github.com/jaworldwideorg/OneJA-Bot/commit/0941a52))
* **misc**: Update i18n ([2e6fd07](https://github.com/jaworldwideorg/OneJA-Bot/commit/2e6fd07))
* **misc**: Update i18n microcopy, closes [#10905](https://github.com/jaworldwideorg/OneJA-Bot/issues/10905) ([024aeb2](https://github.com/jaworldwideorg/OneJA-Bot/commit/024aeb2))
* **misc**: Update ui ([1693fc5](https://github.com/jaworldwideorg/OneJA-Bot/commit/1693fc5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-02 16:57:23 +00:00
Jamie Stivala 54147bb11b 🔧 test: Update metadata and manifest tests to include ORG_NAME and isCustomORG logic adjustments 2026-01-02 17:18:00 +01:00
Jamie Stivala cf9b232c50 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	package.json
#	packages/business/const/src/branding.ts
2026-01-02 16:35:10 +01:00
Jamie Stivala a09049a437 🔧 chore: Adjust pre-commit hook to handle lint-staged failures gracefully 2026-01-02 16:33:55 +01:00
lobehubbot e2ad5a683c 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-02 13:22:29 +00:00
semantic-release-bot eeda4f90af 🔖 chore(release): v2.0.0-next.193 [skip ci]
## [Version&nbsp;2.0.0-next.193](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.192...v2.0.0-next.193)
<sup>Released on **2026-01-02**</sup>

#### 🐛 Bug Fixes

- **database**: Add userId authorization check in removeFilesFromKnowledgeBase.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **database**: Add userId authorization check in removeFilesFromKnowledgeBase, closes [#11108](https://github.com/lobehub/lobe-chat/issues/11108) ([2c1762b](https://github.com/lobehub/lobe-chat/commit/2c1762b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-02 13:21:07 +00:00
Arvin Xu 2c1762b85a 🐛 fix(database): add userId authorization check in removeFilesFromKnowledgeBase (#11108)
* fix kb issue

* 🔒 fix(file): validate file size from S3 instead of trusting client input

Security fix for GHSA-wrrr-8jcv-wjf5: The file upload feature did not
validate the integrity of upload requests, allowing users to manipulate
the size parameter to bypass quota limits.

Changes:
- Add getFileMetadata method to S3 module using HeadObjectCommand
- Add getFileMetadata to FileServiceImpl interface and implementations
- Update createFile router to fetch actual file size from S3
- Add comprehensive tests for the new functionality
- Fix duplicate import in knowledgeBase.test.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 🐛 fix(ci): use allowed_tools instead of claude_args for claude-translator

Fix shell parsing issue where special characters in claude_args were
incorrectly split. The parentheses and asterisks in tool patterns like
`Bash(gh issue view *)` were being parsed by shell, causing:
- "Bash(gh issue view *)" to become ["Bash", "gh", "issue", "view", "*"]

Changes:
- Replace `claude_args: "--allowed-tools ..."` with `allowed_tools: '...'`
- Use colon separator format consistent with other workflows
- Simplify tool patterns while maintaining security restrictions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-02 21:03:05 +08:00
lobehubbot a2947c91c7 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-02 12:42:29 +00:00
semantic-release-bot 0abe565347 🔖 chore(release): v2.0.0-next.192 [skip ci]
## [Version&nbsp;2.0.0-next.192](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.191...v2.0.0-next.192)
<sup>Released on **2026-01-02**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix model edit icon missing.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix model edit icon missing, closes [#11105](https://github.com/lobehub/lobe-chat/issues/11105) ([0f88995](https://github.com/lobehub/lobe-chat/commit/0f88995))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-02 12:41:06 +00:00
Arvin Xu 0f889952dd 🐛 fix: fix model edit icon missing (#11105)
* 🐛 fix: fix model edit icon missing

* fix stats welcome

* refactor pglite db case

* fix e2e tests

* update docs
2026-01-02 20:12:19 +08:00
lobehubbot 3db9947b14 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-02 12:03:43 +00:00
semantic-release-bot 521908008e 🔖 chore(release): v2.0.0-next.191 [skip ci]
## [Version&nbsp;2.0.0-next.191](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.190...v2.0.0-next.191)
<sup>Released on **2026-01-02**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to remove meta in message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor to remove meta in message, closes [#11103](https://github.com/lobehub/lobe-chat/issues/11103) ([527c1cd](https://github.com/lobehub/lobe-chat/commit/527c1cd))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-02 12:02:07 +00:00
LobeHub Bot 5b214b6642 🌐 chore: translate non-English comments to English in agent executors (#11023)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-02 19:21:36 +08:00
LobeHub Bot 472b664a13 test: add unit tests for packages/const/src/utils/merge (#10987)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-02 19:18:51 +08:00
Arvin Xu 527c1cd670 ♻️ refactor: refactor to remove meta in message (#11103)
* ♻️ refactor: refactor to remove meta in message

*  test: update test fixtures to remove deprecated meta field

- Update 8 snapshots in prompts package for groupChat tests
- Remove meta field from 36 JSON fixtures in conversation-flow package
  - Updated both inputs and outputs fixtures
  - Covers: linear-conversation, tasks, branch, compare, agentCouncil,
    agentGroup, assistantGroup scenarios

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-02 19:15:38 +08:00
LobeHub Bot 88552540fb test: add unit tests for modelParamsResolver (#11104)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-02 14:08:16 +08:00
LobeHub Bot 0cf6275ed4 🌐 chore: translate non-English comments to English in src/server/services (#11102)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-02 14:07:54 +08:00
lobehubbot e3727e1a6f 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-02 02:39:22 +00:00
semantic-release-bot c786c028c6 🔖 chore(release): v2.0.0-next.190 [skip ci]
## [Version&nbsp;2.0.0-next.190](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.189...v2.0.0-next.190)
<sup>Released on **2026-01-02**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update i18n, closes [#11100](https://github.com/lobehub/lobe-chat/issues/11100) ([bb4571b](https://github.com/lobehub/lobe-chat/commit/bb4571b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-02 02:38:02 +00:00
LobeHub Bot bb4571b0d5 🤖 style: update i18n (#11100)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2026-01-02 10:20:04 +08:00
lobehubbot b43404c892 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-01 17:34:23 +00:00
semantic-release-bot 73c042352b 🔖 chore(release): v2.0.0-next.189 [skip ci]
## [Version&nbsp;2.0.0-next.189](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.188...v2.0.0-next.189)
<sup>Released on **2026-01-01**</sup>

#### ♻ Code Refactoring

- **misc**: Migrate to new DropdownMenuV2 and showContextMenu API.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Migrate to new DropdownMenuV2 and showContextMenu API, closes [#11079](https://github.com/lobehub/lobe-chat/issues/11079) ([04cfc0e](https://github.com/lobehub/lobe-chat/commit/04cfc0e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-01 17:32:56 +00:00
Innei 04cfc0e9e0 ♻️ refactor: migrate to new DropdownMenuV2 and showContextMenu API (#11079)
* ♻️ refactor: migrate to new DropdownMenuV2 and showContextMenu API

- Replace Dropdown with DropdownMenuV2 for action menus
- Use showContextMenu for context menu handling instead of Dropdown wrapper
- Update @lobehub/ui to preview version with new context menu API
- Add styles for popup-open state in NavItem component

* ♻️ refactor: migrate to new DropdownMenuV2 and showContextMenu API

* chore: Update @lobehub/ui dependency to version ^4.6.3.

Signed-off-by: Innei <tukon479@gmail.com>

* ♻️ refactor: migrate to new DropdownMenuV2 and showContextMenu API

- Remove deprecated ContextMenu component
- Migrate all context menu usages to DropdownMenuV2 and showContextMenu API
- Update multiple Action components across Conversation features
- Update ResourceManager toolbar components
- Clean up related styles

🤖 Generated with [Claude Code](https://claude.com/claude-code)

* feat: Update `@lobehub/ui` dependency, simplify `ActionIconGroup` menu prop, and ensure action group visibility when popups are open.

Signed-off-by: Innei <tukon479@gmail.com>

* fix: Add null check for context menu items, include debug log, and update `@lobehub/ui` dependency.

Signed-off-by: Innei <tukon479@gmail.com>

* ♻️ refactor: migrate TopicSelector to new DropdownMenuV2 API

Migrate from antd/Dropdown to @lobehub/ui DropdownMenu component
with checkbox items pattern.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-01-02 01:14:30 +08:00
Arvin Xu e3f0f46436 test: add more user journey (#11072)
*  test(e2e): add Agent conversation E2E test with LLM mock

- Add LLM mock framework to intercept /webapi/chat/openai requests
- Create Agent conversation journey test (AGENT-CHAT-001)
- Add data-testid="chat-input" to Desktop ChatInput for E2E testing
- Mock returns SSE streaming responses matching LobeChat's actual format

Test scenario: Enter Lobe AI → Send "hello" → Verify AI response

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 📝 docs(e2e): add experience-driven E2E testing strategy

Add comprehensive testing strategy from LOBE-2417:
- Core philosophy: user experience baseline for refactoring safety
- Product architecture coverage with priority levels
- Tag system (@journey, @P0/@P1/@P2, module tags)
- Execution strategies for CI, Nightly, and Release
- Updated directory structure with full journey coverage plan

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

📝 docs(e2e): add E2E testing guide for Claude

Document key learnings from implementing Agent conversation test:
- LLM Mock SSE format and usage
- Desktop/Mobile dual component handling with boundingBox
- contenteditable input handling
- Debugging tips and common issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 📝 docs(e2e): add experience-driven E2E testing strategy

Add comprehensive testing strategy from LOBE-2417:
- Core philosophy: user experience baseline for refactoring safety
- Product architecture coverage with priority levels
- Tag system (@journey, @P0/@P1/@P2, module tags)
- Execution strategies for CI, Nightly, and Release
- Updated directory structure with full journey coverage plan

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

📝 docs(e2e): add E2E testing guide for Claude

Document key learnings from implementing Agent conversation test:
- LLM Mock SSE format and usage
- Desktop/Mobile dual component handling with boundingBox
- contenteditable input handling
- Debugging tips and common issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* update sop

* update sop

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 23:53:25 +08:00
lobehubbot 2bc3b16671 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-01 15:44:04 +00:00
semantic-release-bot ae759f29aa 🔖 chore(release): v2.0.0-next.188 [skip ci]
## [Version&nbsp;2.0.0-next.188](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.187...v2.0.0-next.188)
<sup>Released on **2026-01-01**</sup>

#### 💄 Styles

- **misc**: Improve tools UI and fix Google schema compatibility.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve tools UI and fix Google schema compatibility, closes [#11096](https://github.com/lobehub/lobe-chat/issues/11096) ([70a9cff](https://github.com/lobehub/lobe-chat/commit/70a9cff))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-01 15:42:42 +00:00
Arvin Xu 70a9cffc52 💄 style: improve tools UI and fix Google schema compatibility (#11096)
* ♻️ refactor: refactor tool implement

* 🐛 fix: fix google tool schema issue

* ♻️ refactor: refactor tool implement

*  feat: improve kb inspector

* 💄 style: improve local system inspector

* 💄 style: improve local system inspector

* 💄 style: improve web and kb inspector
2026-01-01 23:23:31 +08:00
lobehubbot b937a815ca 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-01 15:08:36 +00:00
semantic-release-bot 4d01659ded 🔖 chore(release): v2.0.0-next.187 [skip ci]
## [Version&nbsp;2.0.0-next.187](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.186...v2.0.0-next.187)
<sup>Released on **2026-01-01**</sup>

#### 💄 Styles

- **misc**: Add Gemini 3 Flash & Doubao Seed 1.8 models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Gemini 3 Flash & Doubao Seed 1.8 models, closes [#10832](https://github.com/lobehub/lobe-chat/issues/10832) ([cb35935](https://github.com/lobehub/lobe-chat/commit/cb35935))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-01 15:07:05 +00:00
LobeHub Bot d502924665 test: add unit tests for fetch-sse request module (#11014)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-01 22:47:18 +08:00
sxjeru cb3593585b 💄 style: Add Gemini 3 Flash & Doubao Seed 1.8 models (#10832)
*  feat: 添加 Gemini 3 Flash 模型及其参数配置

*  feat: 添加 Doubao Seed 1.8 和 DeepSeek V3.2 模型,更新模型参数配置;修改处理负载以支持 reasoning_effort

*  feat: 启用 DeepSeek V3.2 模型

*  feat: 移除 doubaoChatModels 中的 enableReasoning 参数

*  feat: 添加混元图生文模型,更新智谱模型配置,优化模型解析逻辑

*  feat: 添加 MiniMax M2.1 和 MiniMax M2.1 Lightning 模型,更新模型参数配置;调整 OllamaCloud 模型的上下文窗口大小

*  feat: 添加 MiniMax M2.1 和 GLM-4.7 模型,更新模型描述和参数配置

*  feat: 添加 GLM-4.7 模型,更新模型描述和定价策略;优化 Zhipu 模型的工具处理逻辑

*  feat: add thinkingLevel2 parameter and update related components

* Update volcengine.ts

*  feat: 添加 gpt5_2ReasoningEffort 和 gpt5_2ProReasoningEffort 参数,并更新相关组件

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2026-01-01 22:42:25 +08:00
lobehubbot 2e260a8146 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-01 14:07:08 +00:00
semantic-release-bot ffbb4fd6a0 🔖 chore(release): v2.0.0-next.186 [skip ci]
## [Version&nbsp;2.0.0-next.186](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.185...v2.0.0-next.186)
<sup>Released on **2026-01-01**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor oidc env to auth env.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor oidc env to auth env, closes [#11095](https://github.com/lobehub/lobe-chat/issues/11095) ([6e8d4ff](https://github.com/lobehub/lobe-chat/commit/6e8d4ff))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-01 14:05:35 +00:00
Arvin Xu 6e8d4ffbc7 ♻️ refactor: refactor oidc env to auth env (#11095)
♻️ refactor: refactor oidc to auth
2026-01-01 21:45:42 +08:00
LobeHub Bot a71d9c70d2 🌐 chore: translate non-English comments to English in packages/types (#11086)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-01 20:54:29 +08:00
sxjeru 479556b39a 🔨 chore: fix Vercel build process (#11092)
* Update package.json

* Update next.config.ts

* improve webpack handling

* 调整构建命令以增加内存限制并更新 Vercel 构建命令
2026-01-01 19:18:38 +08:00
lobehubbot 789c302e2e 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-01 09:57:09 +00:00
semantic-release-bot b883d833d4 🔖 chore(release): v2.0.0-next.185 [skip ci]
## [Version&nbsp;2.0.0-next.185](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.184...v2.0.0-next.185)
<sup>Released on **2026-01-01**</sup>

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update i18n, closes [#11085](https://github.com/lobehub/lobe-chat/issues/11085) ([0941a52](https://github.com/lobehub/lobe-chat/commit/0941a52))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-01 09:55:46 +00:00
LobeHub Bot bfd07ca266 test: add unit tests for size utils (#11090) 2026-01-01 17:37:28 +08:00
LobeHub Bot 0941a52b9e 🤖 style: update i18n (#11085)
💄 style: update i18n

Co-authored-by: canisminor1990 <17870709+canisminor1990@users.noreply.github.com>
2026-01-01 14:02:50 +08:00
lobehubbot 21bb985bec 📝 docs(bot): Auto sync agents & plugin to readme 2026-01-01 05:44:34 +00:00
semantic-release-bot 3b870e41da 🔖 chore(release): v2.0.0-next.184 [skip ci]
## [Version&nbsp;2.0.0-next.184](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.183...v2.0.0-next.184)
<sup>Released on **2026-01-01**</sup>

#### 💄 Styles

- **misc**: Improve loading and local-system render.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve loading and local-system render, closes [#11087](https://github.com/lobehub/lobe-chat/issues/11087) ([44630bc](https://github.com/lobehub/lobe-chat/commit/44630bc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2026-01-01 05:43:09 +00:00
Arvin Xu 44630bcfe4 💄 style: improve loading and local-system render (#11087)
* 💄 style: improve loading

* ♻️ refactor: move local-system to builtin-tool-local-system package

* update

* remove focusThrottleInterval
2026-01-01 13:24:17 +08:00
lobehubbot ee48742f7b 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-31 18:19:27 +00:00
semantic-release-bot 4306ec5cb1 🔖 chore(release): v2.0.0-next.183 [skip ci]
## [Version&nbsp;2.0.0-next.183](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.182...v2.0.0-next.183)
<sup>Released on **2025-12-31**</sup>

#### 🐛 Bug Fixes

- **store**: Clear new key data when switchTopic to new state.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **store**: Clear new key data when switchTopic to new state, closes [#11078](https://github.com/lobehub/lobe-chat/issues/11078) ([180ea14](https://github.com/lobehub/lobe-chat/commit/180ea14))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-31 18:18:08 +00:00
Arvin Xu 180ea14b18 🐛 fix(store): clear new key data when switchTopic to new state (#11078)
When switching to a new topic state (topicId = null), the previous
messages in the `_new` key might remain as stale data. This causes
old messages to appear when users click "New Topic".

Changes:
- Add `SwitchTopicOptions` interface with `scope` and `skipRefreshMessage`
- Modify `switchTopic` to support both boolean and options object (backward compatible)
- Clear the corresponding scope's `_new` key when switching to new state
- Add 6 new test cases for the new functionality

Closes: LOBE-2456

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 02:00:33 +08:00
lobehubbot 5b98b08353 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-31 15:06:57 +00:00
semantic-release-bot bdde01d9cf 🔖 chore(release): v2.0.0-next.182 [skip ci]
## [Version&nbsp;2.0.0-next.182](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.181...v2.0.0-next.182)
<sup>Released on **2025-12-31**</sup>

####  Features

- **misc**: Brand new 2.0 ui for next.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Brand new 2.0 ui for next ([e5d6d3d](https://github.com/lobehub/lobe-chat/commit/e5d6d3d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-31 15:05:36 +00:00
arvinxx e5d6d3d0d3 feat: brand new 2.0 ui for next 2025-12-31 22:44:43 +08:00
lobehubbot b7488b85e6 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-31 14:36:24 +00:00
semantic-release-bot 8934282c2c 🔖 chore(release): v2.0.0-next.181 [skip ci]
## [Version&nbsp;2.0.0-next.181](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.180...v2.0.0-next.181)
<sup>Released on **2025-12-31**</sup>

#### ♻ Code Refactoring

- **userMemories**: Added `benchmark_locomo` as source unify use the of source type.
- **misc**: Add builtin tools, clean code, clean desktop relative code, clean page editor, flatten i18n keys and extract hardcoded strings in desktop, i18n formatting optimization, improve modal handling with createRawModal, move code-interpreter to single packages, refactor builtin-tool implement, refactor hooks, refactor implement, refactor implement for desktop, refactor local-system, refactor service, refactor static style, refactor to use better underline style, refactor to use better underline style, refactor tool prompt injection, refactor ui and layout, refactor with editor runtime, refactor with electron, refactor with es-toolkit, remove desktop-specific upload logic, rename browser identifier from 'chat' to 'app', tools ui, use /f/:fid as file mode, use supervisor role for agent group supervisor.

####  Features

- **auth**: Add confirm password field and integrate business signup logic, add useBusinessSignup hook for business signup functionality, enhance BetterAuthSignUpForm with businessElement and update useSignUp hook for improved signup process, integrate business sign-in features and update social sign-in logic, update useBusinessSignin to include getAdditionalData function for enhanced sign-in process.
- **desktop**: MacOS About menu should navigate to Settings About tab.
- **layout**: Integrate BusinessGlobalProvider for conditional rendering based on business features.
- **memory-user-memory**: Added LoCoMo dataset loader & converter & exporter, support to extract memories from LoCoMo dataset, support to load in memory, and extract from in-memory memory sources.
- **model**: Improve model list UI and add disabled models management.
- **referral**: Add backfill referral code i18n keys.
- **userMemories**: Apply userMemories.enable from settings for injecting, use capturedAt for time of memory entries, use honorific title for identity memory.
- **misc**: Add a white waitlist in edge config env, add always show tools render in createPlan & createDoc tools, add batch tasks ui, add Bundle Analyzer workflow for detailed bundle size analysis, add business features support with new components and hooks, add business settings features with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add db and schema feature, add home page create group builder button, Add i18n UI locales and improve tool types, add like action in community detail, add memory implement, add subscription settings group with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add the market auth auto generate way, Add turbopack configuration support to CustomNextConfig, add user memory, agent builder, agent builder, agent builder and group builder, app ui page, brand new 2.0 ui for next, buildin some tools should save into docs, code-interpreter tool, code-interpreter tool, code-interpreter tool, desktop feature, enhance desktop onboarding with sign out and localization, enhance macOS desktop permissions and onboarding, enhance onboarding process by removing mode selection step and adding export functionality in advanced settings, file search feature, gtd create plan support streaming render, implement agent builder, implement builtin agents packages, implement memories package, implement Redis caching for presigned URLs in file proxy service, implement server data feature, include Subscription settings group in the Accordion component, Integrate bcryptjs for password verification in BetterAuth, integrate BrandingProviderCard and update Provider components for branding support, onboarding ui, page and knowledge base, rebranding total UI of app, refactor authentication handler to support dynamic loading of better-auth and next-auth, refactor desktop implement with brand new 2.0, rename codeinterpreter into lobe sandbox, server implement, support CMD K, support exec async sub agent task, support export and import topic JSON, support files upload in chat input, support notebook tool, support swr local cache, topic message swr cache, translate AI model descriptions to English, update agent builder ui, update create group chat use builder, update gtd tools( use editor & update metadata ), update user memory embedding model selection based on business features, user memory, user memory, user onboarding, when use usesend to create agent/group, the model should override by lobeAi, wrap ConversationArea and ModelSwitchPanel in TooltipGroup for enhanced UI.

#### 🐛 Bug Fixes

- **ci**: Skip backend routes in bundle analyzer build.
- **desktop**:  prevent window resize when onboarding, add safe top edge for message container.
- **i18n**: Translate plugin.ts locale to English.
- **image-generation**: Update chargeBeforeGenerate to return ChargeResult and include configForDatabase in parameters.
- **memory-user-memory**: Should pre-process date & time.
- **observability-otel**: Typo in package name.
- **prebuild**: Correct syntax in partialBuildPages array.
- **translation**: Add fallback for all English locale variants.
- **userMemories**: 404/405 issue due to incorrectly used workflow name and mounted catch-all route, missing base memory as part of context, must assign workflow id, should use `context.invoke` for workflow instead of `context.run`, skip to handle WorkflowAbort, use date & time for building context, workflow id build issue.
- **misc**: Agent profiles update, agent tools config set, editor placeholder, bump charts 3.0.4 to fix import es path, fix anthropic thinking budget, fix async task and improve tool style, fix default waitlist bug, fix delete agent group bug, Fix desktop test cases and refactor translations, Fix desktop test cases and refactor translations, fix gemini 3 model thinking issue, fix gemini 3 pro parallel tool use, fix gemini 3 thinking params, fix identity memory not working, fix supervisor flag, fix thread not working issue, fix when use branch topic,the branch index error problem, fixed the welcome card the create button not work, handle session invalidation on 401 error by logging out signed-in users, improve test infrastructure and mock configurations, locale resolve bug with ESM module loading, page agent editor, prevent redundant login redirect when already on auth pages, redis read json object, remove openapi pkg patch file, slove input editor on pause emit, slove swr mutate not work in Cache Provider, slove the group add member checkbox not work, slove the model select null problem, slove the mutate not work problem, slove when click agentbuilder should clean topic, slove when first call thread, not show ai chat message, support retry error message and fix continueGenerationMessage, update contextMenu in group tools message, update OFFICIAL_URL to app.lobehub.com, update PlanTag link paths for subscription settings, update test snapshots for model description changes, when use agentbuilder the topic id should use new & clear topic….

#### 💄 Styles

- **misc**: Improve ExecTask and task message UI, improve gtd tool inspector and todo list, improve page document tool inspector UI, improve RunCommand Inspector, rebranding chat ui, refactor UI in features, rerun i18n, setting style, support streaming and display ui for group mode, support tool streaming and title custom render, update i18n, Update i18n microcopy, update ui.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **userMemories**: Added `benchmark_locomo` as source unify use the of source type, closes [#10922](https://github.com/lobehub/lobe-chat/issues/10922) ([03342a7](https://github.com/lobehub/lobe-chat/commit/03342a7))
* **misc**: Add builtin tools ([26e73cc](https://github.com/lobehub/lobe-chat/commit/26e73cc))
* **misc**: Clean code ([4ddb491](https://github.com/lobehub/lobe-chat/commit/4ddb491))
* **misc**: Clean desktop relative code ([ffd7d23](https://github.com/lobehub/lobe-chat/commit/ffd7d23))
* **misc**: Clean page editor, closes [#10966](https://github.com/lobehub/lobe-chat/issues/10966) ([15410d1](https://github.com/lobehub/lobe-chat/commit/15410d1))
* **misc**: Flatten i18n keys and extract hardcoded strings in desktop, closes [#10939](https://github.com/lobehub/lobe-chat/issues/10939) ([e5f3a58](https://github.com/lobehub/lobe-chat/commit/e5f3a58))
* **misc**: I18n formatting optimization, closes [#10929](https://github.com/lobehub/lobe-chat/issues/10929) [#10933](https://github.com/lobehub/lobe-chat/issues/10933) ([d692a37](https://github.com/lobehub/lobe-chat/commit/d692a37))
* **misc**: Improve modal handling with createRawModal, closes [#11071](https://github.com/lobehub/lobe-chat/issues/11071) ([f5314c5](https://github.com/lobehub/lobe-chat/commit/f5314c5))
* **misc**: Move code-interpreter to single packages ([1fa4357](https://github.com/lobehub/lobe-chat/commit/1fa4357))
* **misc**: Refactor builtin-tool implement ([9ede8e7](https://github.com/lobehub/lobe-chat/commit/9ede8e7))
* **misc**: Refactor hooks ([e3fa62e](https://github.com/lobehub/lobe-chat/commit/e3fa62e))
* **misc**: Refactor implement ([34d059f](https://github.com/lobehub/lobe-chat/commit/34d059f))
* **misc**: Refactor implement for desktop ([27f101f](https://github.com/lobehub/lobe-chat/commit/27f101f))
* **misc**: Refactor local-system ([a69221f](https://github.com/lobehub/lobe-chat/commit/a69221f))
* **misc**: Refactor service ([91bbbf5](https://github.com/lobehub/lobe-chat/commit/91bbbf5))
* **misc**: Refactor static style, closes [#11010](https://github.com/lobehub/lobe-chat/issues/11010) ([d865e27](https://github.com/lobehub/lobe-chat/commit/d865e27))
* **misc**: Refactor to use better underline style ([784bb58](https://github.com/lobehub/lobe-chat/commit/784bb58))
* **misc**: Refactor to use better underline style ([5e10ac8](https://github.com/lobehub/lobe-chat/commit/5e10ac8))
* **misc**: Refactor tool prompt injection ([6099ac3](https://github.com/lobehub/lobe-chat/commit/6099ac3))
* **misc**: Refactor ui and layout ([436d9e5](https://github.com/lobehub/lobe-chat/commit/436d9e5))
* **misc**: Refactor with editor runtime ([be2b41c](https://github.com/lobehub/lobe-chat/commit/be2b41c))
* **misc**: Refactor with electron ([849ee3d](https://github.com/lobehub/lobe-chat/commit/849ee3d))
* **misc**: Refactor with es-toolkit ([1848d27](https://github.com/lobehub/lobe-chat/commit/1848d27))
* **misc**: Remove desktop-specific upload logic, closes [#11070](https://github.com/lobehub/lobe-chat/issues/11070) ([475065e](https://github.com/lobehub/lobe-chat/commit/475065e))
* **misc**: Rename browser identifier from 'chat' to 'app', closes [#10940](https://github.com/lobehub/lobe-chat/issues/10940) ([dc870c7](https://github.com/lobehub/lobe-chat/commit/dc870c7))
* **misc**: Tools ui ([6bf4546](https://github.com/lobehub/lobe-chat/commit/6bf4546))
* **misc**: Use /f/:fid as file mode ([3b01174](https://github.com/lobehub/lobe-chat/commit/3b01174))
* **misc**: Use supervisor role for agent group supervisor ([0ca823f](https://github.com/lobehub/lobe-chat/commit/0ca823f))

#### What's improved

* **auth**: Add confirm password field and integrate business signup logic ([2ccd5c7](https://github.com/lobehub/lobe-chat/commit/2ccd5c7))
* **auth**: Add useBusinessSignup hook for business signup functionality ([3efb6cc](https://github.com/lobehub/lobe-chat/commit/3efb6cc))
* **auth**: Enhance BetterAuthSignUpForm with businessElement and update useSignUp hook for improved signup process ([991d8c1](https://github.com/lobehub/lobe-chat/commit/991d8c1))
* **auth**: Integrate business sign-in features and update social sign-in logic ([6dc7916](https://github.com/lobehub/lobe-chat/commit/6dc7916))
* **auth**: Update useBusinessSignin to include getAdditionalData function for enhanced sign-in process ([c8e3bc9](https://github.com/lobehub/lobe-chat/commit/c8e3bc9))
* **desktop**: MacOS About menu should navigate to Settings About tab, closes [#10942](https://github.com/lobehub/lobe-chat/issues/10942) ([1a4f456](https://github.com/lobehub/lobe-chat/commit/1a4f456))
* **layout**: Integrate BusinessGlobalProvider for conditional rendering based on business features ([52c7a49](https://github.com/lobehub/lobe-chat/commit/52c7a49))
* **memory-user-memory**: Added LoCoMo dataset loader & converter & exporter, closes [#10923](https://github.com/lobehub/lobe-chat/issues/10923) ([a5dd785](https://github.com/lobehub/lobe-chat/commit/a5dd785))
* **memory-user-memory**: Support to extract memories from LoCoMo dataset, closes [#10925](https://github.com/lobehub/lobe-chat/issues/10925) ([c7c7d6f](https://github.com/lobehub/lobe-chat/commit/c7c7d6f))
* **memory-user-memory**: Support to load in memory, and extract from in-memory memory sources, closes [#10924](https://github.com/lobehub/lobe-chat/issues/10924) ([9ac3ce7](https://github.com/lobehub/lobe-chat/commit/9ac3ce7))
* **model**: Improve model list UI and add disabled models management, closes [#11036](https://github.com/lobehub/lobe-chat/issues/11036) ([4faa65c](https://github.com/lobehub/lobe-chat/commit/4faa65c))
* **referral**: Add backfill referral code i18n keys ([bbf62ce](https://github.com/lobehub/lobe-chat/commit/bbf62ce))
* **userMemories**: Apply userMemories.enable from settings for injecting, closes [#11038](https://github.com/lobehub/lobe-chat/issues/11038) ([1cc0e8c](https://github.com/lobehub/lobe-chat/commit/1cc0e8c))
* **userMemories**: Use capturedAt for time of memory entries, closes [#11037](https://github.com/lobehub/lobe-chat/issues/11037) ([5615d20](https://github.com/lobehub/lobe-chat/commit/5615d20))
* **userMemories**: Use honorific title for identity memory, closes [#11039](https://github.com/lobehub/lobe-chat/issues/11039) ([ab61c69](https://github.com/lobehub/lobe-chat/commit/ab61c69))
* **misc**: Add a white waitlist in edge config env, closes [#11009](https://github.com/lobehub/lobe-chat/issues/11009) ([88f22f4](https://github.com/lobehub/lobe-chat/commit/88f22f4))
* **misc**: Add always show tools render in createPlan & createDoc tools, closes [#10937](https://github.com/lobehub/lobe-chat/issues/10937) ([c224951](https://github.com/lobehub/lobe-chat/commit/c224951))
* **misc**: Add batch tasks ui ([80587ae](https://github.com/lobehub/lobe-chat/commit/80587ae))
* **misc**: Add Bundle Analyzer workflow for detailed bundle size analysis ([596e489](https://github.com/lobehub/lobe-chat/commit/596e489))
* **misc**: Add business features support with new components and hooks ([1dccc04](https://github.com/lobehub/lobe-chat/commit/1dccc04))
* **misc**: Add business settings features with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs ([35c6ad9](https://github.com/lobehub/lobe-chat/commit/35c6ad9))
* **misc**: Add db and schema feature ([9e47c33](https://github.com/lobehub/lobe-chat/commit/9e47c33))
* **misc**: Add home page create group builder button, closes [#10904](https://github.com/lobehub/lobe-chat/issues/10904) ([3183189](https://github.com/lobehub/lobe-chat/commit/3183189))
* **misc**: Add i18n UI locales and improve tool types, closes [#10964](https://github.com/lobehub/lobe-chat/issues/10964) ([0e89ce5](https://github.com/lobehub/lobe-chat/commit/0e89ce5))
* **misc**: Add like action in community detail, closes [#10971](https://github.com/lobehub/lobe-chat/issues/10971) ([c11d802](https://github.com/lobehub/lobe-chat/commit/c11d802))
* **misc**: Add memory implement ([fdae83c](https://github.com/lobehub/lobe-chat/commit/fdae83c))
* **misc**: Add subscription settings group with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs ([2ddc876](https://github.com/lobehub/lobe-chat/commit/2ddc876))
* **misc**: Add the market auth auto generate way, closes [#10993](https://github.com/lobehub/lobe-chat/issues/10993) ([849ac73](https://github.com/lobehub/lobe-chat/commit/849ac73))
* **misc**: Add turbopack configuration support to CustomNextConfig ([2e7076a](https://github.com/lobehub/lobe-chat/commit/2e7076a))
* **misc**: Add user memory ([c305889](https://github.com/lobehub/lobe-chat/commit/c305889))
* **misc**: Agent builder ([ede0ed6](https://github.com/lobehub/lobe-chat/commit/ede0ed6))
* **misc**: Agent builder ([e3c9454](https://github.com/lobehub/lobe-chat/commit/e3c9454))
* **misc**: Agent builder and group builder ([d735e2c](https://github.com/lobehub/lobe-chat/commit/d735e2c))
* **misc**: App ui page ([78d07c0](https://github.com/lobehub/lobe-chat/commit/78d07c0))
* **misc**: Brand new 2.0 ui for next ([f7d724f](https://github.com/lobehub/lobe-chat/commit/f7d724f))
* **misc**: Buildin some tools should save into docs, closes [#10935](https://github.com/lobehub/lobe-chat/issues/10935) ([be4c17d](https://github.com/lobehub/lobe-chat/commit/be4c17d))
* **misc**: Code-interpreter tool ([1940914](https://github.com/lobehub/lobe-chat/commit/1940914))
* **misc**: Code-interpreter tool ([c931909](https://github.com/lobehub/lobe-chat/commit/c931909))
* **misc**: Code-interpreter tool ([baa29c8](https://github.com/lobehub/lobe-chat/commit/baa29c8))
* **misc**: Desktop feature ([ac93637](https://github.com/lobehub/lobe-chat/commit/ac93637))
* **misc**: Enhance desktop onboarding with sign out and localization, closes [#11033](https://github.com/lobehub/lobe-chat/issues/11033) ([34a6312](https://github.com/lobehub/lobe-chat/commit/34a6312))
* **misc**: Enhance macOS desktop permissions and onboarding, closes [#11016](https://github.com/lobehub/lobe-chat/issues/11016) ([9db8da8](https://github.com/lobehub/lobe-chat/commit/9db8da8))
* **misc**: Enhance onboarding process by removing mode selection step and adding export functionality in advanced settings ([8b6c30e](https://github.com/lobehub/lobe-chat/commit/8b6c30e))
* **misc**: File search feature ([9786d64](https://github.com/lobehub/lobe-chat/commit/9786d64))
* **misc**: Gtd create plan support streaming render, closes [#11034](https://github.com/lobehub/lobe-chat/issues/11034) ([74d3555](https://github.com/lobehub/lobe-chat/commit/74d3555))
* **misc**: Implement agent builder ([f638b97](https://github.com/lobehub/lobe-chat/commit/f638b97))
* **misc**: Implement builtin agents packages ([2255a7c](https://github.com/lobehub/lobe-chat/commit/2255a7c))
* **misc**: Implement memories package ([7f94ef1](https://github.com/lobehub/lobe-chat/commit/7f94ef1))
* **misc**: Implement Redis caching for presigned URLs in file proxy service ([15722f1](https://github.com/lobehub/lobe-chat/commit/15722f1))
* **misc**: Implement server data feature ([9c46c6e](https://github.com/lobehub/lobe-chat/commit/9c46c6e))
* **misc**: Include Subscription settings group in the Accordion component ([8f2d57d](https://github.com/lobehub/lobe-chat/commit/8f2d57d))
* **misc**: Integrate bcryptjs for password verification in BetterAuth ([180ebfd](https://github.com/lobehub/lobe-chat/commit/180ebfd))
* **misc**: Integrate BrandingProviderCard and update Provider components for branding support ([6b5ce79](https://github.com/lobehub/lobe-chat/commit/6b5ce79))
* **misc**: Onboarding ui ([81d33a6](https://github.com/lobehub/lobe-chat/commit/81d33a6))
* **misc**: Page and knowledge base ([492d3cc](https://github.com/lobehub/lobe-chat/commit/492d3cc))
* **misc**: Rebranding total UI of app ([13ca81b](https://github.com/lobehub/lobe-chat/commit/13ca81b))
* **misc**: Refactor authentication handler to support dynamic loading of better-auth and next-auth ([d6419e4](https://github.com/lobehub/lobe-chat/commit/d6419e4))
* **misc**: Refactor desktop implement with brand new 2.0 ([10e048c](https://github.com/lobehub/lobe-chat/commit/10e048c))
* **misc**: Rename codeinterpreter into lobe sandbox, closes [#11076](https://github.com/lobehub/lobe-chat/issues/11076) ([2a631b4](https://github.com/lobehub/lobe-chat/commit/2a631b4))
* **misc**: Server implement ([685a6cd](https://github.com/lobehub/lobe-chat/commit/685a6cd))
* **misc**: Support CMD K ([d2bd8a6](https://github.com/lobehub/lobe-chat/commit/d2bd8a6))
* **misc**: Support exec async sub agent task ([dba1acf](https://github.com/lobehub/lobe-chat/commit/dba1acf))
* **misc**: Support export and import topic JSON, closes [#10885](https://github.com/lobehub/lobe-chat/issues/10885) ([0c5a41f](https://github.com/lobehub/lobe-chat/commit/0c5a41f))
* **misc**: Support files upload in chat input, closes [#10967](https://github.com/lobehub/lobe-chat/issues/10967) ([60eba45](https://github.com/lobehub/lobe-chat/commit/60eba45))
* **misc**: Support notebook tool, closes [#10902](https://github.com/lobehub/lobe-chat/issues/10902) ([e05375f](https://github.com/lobehub/lobe-chat/commit/e05375f))
* **misc**: Support swr local cache, closes [#10884](https://github.com/lobehub/lobe-chat/issues/10884) ([bc3f3e2](https://github.com/lobehub/lobe-chat/commit/bc3f3e2))
* **misc**: Topic message swr cache, closes [#10886](https://github.com/lobehub/lobe-chat/issues/10886) ([613a404](https://github.com/lobehub/lobe-chat/commit/613a404))
* **misc**: Translate AI model descriptions to English, closes [#10989](https://github.com/lobehub/lobe-chat/issues/10989) ([36ea258](https://github.com/lobehub/lobe-chat/commit/36ea258))
* **misc**: Update agent builder ui, closes [#10996](https://github.com/lobehub/lobe-chat/issues/10996) ([704ef7f](https://github.com/lobehub/lobe-chat/commit/704ef7f))
* **misc**: Update create group chat use builder, closes [#11030](https://github.com/lobehub/lobe-chat/issues/11030) ([7ae24c2](https://github.com/lobehub/lobe-chat/commit/7ae24c2))
* **misc**: Update gtd tools( use editor & update metadata ), closes [#11029](https://github.com/lobehub/lobe-chat/issues/11029) ([4a47ea0](https://github.com/lobehub/lobe-chat/commit/4a47ea0))
* **misc**: Update user memory embedding model selection based on business features ([c026117](https://github.com/lobehub/lobe-chat/commit/c026117))
* **misc**: User memory ([d5ce144](https://github.com/lobehub/lobe-chat/commit/d5ce144))
* **misc**: User memory ([49ffcb5](https://github.com/lobehub/lobe-chat/commit/49ffcb5))
* **misc**: User onboarding ([5e59388](https://github.com/lobehub/lobe-chat/commit/5e59388))
* **misc**: When use usesend to create agent/group, the model should override by lobeAi, closes [#11048](https://github.com/lobehub/lobe-chat/issues/11048) ([754ffe1](https://github.com/lobehub/lobe-chat/commit/754ffe1))
* **misc**: Wrap ConversationArea and ModelSwitchPanel in TooltipGroup for enhanced UI ([672bcf7](https://github.com/lobehub/lobe-chat/commit/672bcf7))

#### What's fixed

* **ci**: Skip backend routes in bundle analyzer build, closes [#10944](https://github.com/lobehub/lobe-chat/issues/10944) ([2fc3b42](https://github.com/lobehub/lobe-chat/commit/2fc3b42))
* **desktop**:  prevent window resize when onboarding, closes [#10887](https://github.com/lobehub/lobe-chat/issues/10887) ([c29c02b](https://github.com/lobehub/lobe-chat/commit/c29c02b))
* **desktop**: Add safe top edge for message container, closes [#10908](https://github.com/lobehub/lobe-chat/issues/10908) ([2558b47](https://github.com/lobehub/lobe-chat/commit/2558b47))
* **i18n**: Translate plugin.ts locale to English, closes [#10972](https://github.com/lobehub/lobe-chat/issues/10972) ([89f89c7](https://github.com/lobehub/lobe-chat/commit/89f89c7))
* **image-generation**: Update chargeBeforeGenerate to return ChargeResult and include configForDatabase in parameters ([4f2a683](https://github.com/lobehub/lobe-chat/commit/4f2a683))
* **memory-user-memory**: Should pre-process date & time, closes [#10979](https://github.com/lobehub/lobe-chat/issues/10979) ([c2bcf73](https://github.com/lobehub/lobe-chat/commit/c2bcf73))
* **observability-otel**: Typo in package name, closes [#11025](https://github.com/lobehub/lobe-chat/issues/11025) ([63224dd](https://github.com/lobehub/lobe-chat/commit/63224dd))
* **prebuild**: Correct syntax in partialBuildPages array ([9580672](https://github.com/lobehub/lobe-chat/commit/9580672))
* **translation**: Add fallback for all English locale variants, closes [#10984](https://github.com/lobehub/lobe-chat/issues/10984) ([ce46996](https://github.com/lobehub/lobe-chat/commit/ce46996))
* **userMemories**: 404/405 issue due to incorrectly used workflow name and mounted catch-all route, closes [#10995](https://github.com/lobehub/lobe-chat/issues/10995) ([45996c6](https://github.com/lobehub/lobe-chat/commit/45996c6))
* **userMemories**: Missing base memory as part of context, closes [#11040](https://github.com/lobehub/lobe-chat/issues/11040) ([3c9bafe](https://github.com/lobehub/lobe-chat/commit/3c9bafe))
* **userMemories**: Must assign workflow id, closes [#11021](https://github.com/lobehub/lobe-chat/issues/11021) ([78b0c7b](https://github.com/lobehub/lobe-chat/commit/78b0c7b))
* **userMemories**: Should use `context.invoke` for workflow instead of `context.run`, closes [#10994](https://github.com/lobehub/lobe-chat/issues/10994) ([6592d10](https://github.com/lobehub/lobe-chat/commit/6592d10))
* **userMemories**: Skip to handle WorkflowAbort, closes [#11031](https://github.com/lobehub/lobe-chat/issues/11031) ([17124a8](https://github.com/lobehub/lobe-chat/commit/17124a8))
* **userMemories**: Use date & time for building context, closes [#10978](https://github.com/lobehub/lobe-chat/issues/10978) ([15bc6bc](https://github.com/lobehub/lobe-chat/commit/15bc6bc))
* **userMemories**: Workflow id build issue, closes [#10998](https://github.com/lobehub/lobe-chat/issues/10998) ([0b110b6](https://github.com/lobehub/lobe-chat/commit/0b110b6))
* **misc**: Agent profiles update, agent tools config set, editor placeholder, closes [#11074](https://github.com/lobehub/lobe-chat/issues/11074) ([f7cbfe4](https://github.com/lobehub/lobe-chat/commit/f7cbfe4))
* **misc**: Bump charts 3.0.4 to fix import es path, closes [#10898](https://github.com/lobehub/lobe-chat/issues/10898) ([6d7dce7](https://github.com/lobehub/lobe-chat/commit/6d7dce7))
* **misc**: Fix anthropic thinking budget ([6e19bd3](https://github.com/lobehub/lobe-chat/commit/6e19bd3))
* **misc**: Fix async task and improve tool style ([1aa1c04](https://github.com/lobehub/lobe-chat/commit/1aa1c04))
* **misc**: Fix default waitlist bug ([de62035](https://github.com/lobehub/lobe-chat/commit/de62035))
* **misc**: Fix delete agent group bug ([0fe0d6f](https://github.com/lobehub/lobe-chat/commit/0fe0d6f))
* **misc**: Fix desktop test cases and refactor translations, closes [#10956](https://github.com/lobehub/lobe-chat/issues/10956) ([568235c](https://github.com/lobehub/lobe-chat/commit/568235c))
* **misc**: Fix desktop test cases and refactor translations, closes [#10955](https://github.com/lobehub/lobe-chat/issues/10955) ([b3520a2](https://github.com/lobehub/lobe-chat/commit/b3520a2))
* **misc**: Fix gemini 3 model thinking issue ([69f4cf3](https://github.com/lobehub/lobe-chat/commit/69f4cf3))
* **misc**: Fix gemini 3 pro parallel tool use ([a0cc9c3](https://github.com/lobehub/lobe-chat/commit/a0cc9c3))
* **misc**: Fix gemini 3 thinking params ([89363b2](https://github.com/lobehub/lobe-chat/commit/89363b2))
* **misc**: Fix identity memory not working, closes [#10916](https://github.com/lobehub/lobe-chat/issues/10916) ([fbd0b66](https://github.com/lobehub/lobe-chat/commit/fbd0b66))
* **misc**: Fix supervisor flag ([fc20dbc](https://github.com/lobehub/lobe-chat/commit/fc20dbc))
* **misc**: Fix thread not working issue ([7dd30eb](https://github.com/lobehub/lobe-chat/commit/7dd30eb))
* **misc**: Fix when use branch topic,the branch index error problem, closes [#11049](https://github.com/lobehub/lobe-chat/issues/11049) ([34b5a32](https://github.com/lobehub/lobe-chat/commit/34b5a32))
* **misc**: Fixed the welcome card the create button not work, closes [#11055](https://github.com/lobehub/lobe-chat/issues/11055) ([00e81f1](https://github.com/lobehub/lobe-chat/commit/00e81f1))
* **misc**: Handle session invalidation on 401 error by logging out signed-in users ([499bd4a](https://github.com/lobehub/lobe-chat/commit/499bd4a))
* **misc**: Improve test infrastructure and mock configurations, closes [#11028](https://github.com/lobehub/lobe-chat/issues/11028) ([da4eb9c](https://github.com/lobehub/lobe-chat/commit/da4eb9c))
* **misc**: Locale resolve bug with ESM module loading, closes [#11018](https://github.com/lobehub/lobe-chat/issues/11018) ([770c872](https://github.com/lobehub/lobe-chat/commit/770c872))
* **misc**: Page agent editor, closes [#10953](https://github.com/lobehub/lobe-chat/issues/10953) ([61b3031](https://github.com/lobehub/lobe-chat/commit/61b3031))
* **misc**: Prevent redundant login redirect when already on auth pages ([1a5049c](https://github.com/lobehub/lobe-chat/commit/1a5049c))
* **misc**: Redis read json object ([1718fa3](https://github.com/lobehub/lobe-chat/commit/1718fa3))
* **misc**: Remove openapi pkg patch file, closes [#10910](https://github.com/lobehub/lobe-chat/issues/10910) ([a34c111](https://github.com/lobehub/lobe-chat/commit/a34c111))
* **misc**: Slove input editor on pause emit, closes [#11051](https://github.com/lobehub/lobe-chat/issues/11051) ([d102d47](https://github.com/lobehub/lobe-chat/commit/d102d47))
* **misc**: Slove swr mutate not work in Cache Provider, closes [#10895](https://github.com/lobehub/lobe-chat/issues/10895) ([b3fbffe](https://github.com/lobehub/lobe-chat/commit/b3fbffe))
* **misc**: Slove the group add member checkbox not work, closes [#11045](https://github.com/lobehub/lobe-chat/issues/11045) [#11042](https://github.com/lobehub/lobe-chat/issues/11042) ([91d3f74](https://github.com/lobehub/lobe-chat/commit/91d3f74))
* **misc**: Slove the model select null problem, closes [#10988](https://github.com/lobehub/lobe-chat/issues/10988) ([50aa304](https://github.com/lobehub/lobe-chat/commit/50aa304))
* **misc**: Slove the mutate not work problem, closes [#10947](https://github.com/lobehub/lobe-chat/issues/10947) ([78ca5eb](https://github.com/lobehub/lobe-chat/commit/78ca5eb))
* **misc**: Slove when click agentbuilder should clean topic, closes [#11068](https://github.com/lobehub/lobe-chat/issues/11068) ([048bd66](https://github.com/lobehub/lobe-chat/commit/048bd66))
* **misc**: Slove when first call thread, not show ai chat message, closes [#10878](https://github.com/lobehub/lobe-chat/issues/10878) ([5a79cb9](https://github.com/lobehub/lobe-chat/commit/5a79cb9))
* **misc**: Support retry error message and fix continueGenerationMessage ([8bf85fb](https://github.com/lobehub/lobe-chat/commit/8bf85fb))
* **misc**: Update contextMenu in group tools message, closes [#11056](https://github.com/lobehub/lobe-chat/issues/11056) ([8b49414](https://github.com/lobehub/lobe-chat/commit/8b49414))
* **misc**: Update OFFICIAL_URL to app.lobehub.com, closes [#11015](https://github.com/lobehub/lobe-chat/issues/11015) ([f9e11d0](https://github.com/lobehub/lobe-chat/commit/f9e11d0))
* **misc**: Update PlanTag link paths for subscription settings ([ada71d3](https://github.com/lobehub/lobe-chat/commit/ada71d3))
* **misc**: Update test snapshots for model description changes, closes [#11008](https://github.com/lobehub/lobe-chat/issues/11008) ([626e808](https://github.com/lobehub/lobe-chat/commit/626e808))
* **misc**: When use agentbuilder the topic id should use new & clear topic…, closes [#10983](https://github.com/lobehub/lobe-chat/issues/10983) ([0b2b096](https://github.com/lobehub/lobe-chat/commit/0b2b096))

#### Styles

* **misc**: Improve ExecTask and task message UI ([977a700](https://github.com/lobehub/lobe-chat/commit/977a700))
* **misc**: Improve gtd tool inspector and todo list ([0664563](https://github.com/lobehub/lobe-chat/commit/0664563))
* **misc**: Improve page document tool inspector UI, closes [#10977](https://github.com/lobehub/lobe-chat/issues/10977) ([7f69cb1](https://github.com/lobehub/lobe-chat/commit/7f69cb1))
* **misc**: Improve RunCommand Inspector ([0751fa4](https://github.com/lobehub/lobe-chat/commit/0751fa4))
* **misc**: Rebranding chat ui ([ad14222](https://github.com/lobehub/lobe-chat/commit/ad14222))
* **misc**: Refactor UI in features ([83e689f](https://github.com/lobehub/lobe-chat/commit/83e689f))
* **misc**: Rerun i18n ([80f511c](https://github.com/lobehub/lobe-chat/commit/80f511c))
* **misc**: Setting style ([e8c755f](https://github.com/lobehub/lobe-chat/commit/e8c755f))
* **misc**: Support streaming and display ui for group mode ([f708cdb](https://github.com/lobehub/lobe-chat/commit/f708cdb))
* **misc**: Support tool streaming and title custom render, closes [#10976](https://github.com/lobehub/lobe-chat/issues/10976) ([576ccd6](https://github.com/lobehub/lobe-chat/commit/576ccd6))
* **misc**: Update i18n ([2e6fd07](https://github.com/lobehub/lobe-chat/commit/2e6fd07))
* **misc**: Update i18n microcopy, closes [#10905](https://github.com/lobehub/lobe-chat/issues/10905) ([024aeb2](https://github.com/lobehub/lobe-chat/commit/024aeb2))
* **misc**: Update ui ([1693fc5](https://github.com/lobehub/lobe-chat/commit/1693fc5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-31 14:28:13 +00:00
arvinxx 876a1d40ef Revert " test: add unit tests for EdgeConfig module (#11069)"
This reverts commit 377b5388c3.
2025-12-31 22:09:01 +08:00
LobeHub Bot 377b5388c3 test: add unit tests for EdgeConfig module (#11069)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 22:00:41 +08:00
Arvin Xu f7d724fb87 feat: brand new 2.0 ui for next 2025-12-31 21:55:39 +08:00
YuTengjing b96363d8c0 🔧 chore: update business interface and test fixes (#11077) 2025-12-31 21:30:07 +08:00
arvinxx 8fe36548d6 ♻️ refactor rename code-interpreter to cloud-sandbox 2025-12-31 20:30:11 +08:00
arvinxx 9ea3df62b3 ♻️ refactor rename code-interpreter to cloud-sandbox 2025-12-31 20:27:37 +08:00
YuTengjing e48aac72b2 🔧 chore: limit max image num to 8 when business features enabled 2025-12-31 20:22:45 +08:00
Shinji-Li 2a631b476f feat: rename codeinterpreter into lobe sandbox (#11076)
* feat: rename codeinterpreter into lobe sandbox

* fix: fixed the market publish agent too much
2025-12-31 20:02:18 +08:00
YuTengjing 954789dc4e feat: add createImageBusinessMiddleware to enhance image creation process
- Introduced createImageBusinessMiddleware for additional processing in the createImage mutation.
- Updated imageRouter to utilize the new middleware, improving the structure and maintainability of the image generation logic.
2025-12-31 20:02:18 +08:00
YuTengjing 39aa01b444 refactor: move async jwt auth to async auth middleware 2025-12-31 20:02:18 +08:00
canisminor1990 e8c755f532 💄 style: setting style 2025-12-31 20:02:18 +08:00
arvinxx 8bf85fb251 🐛 fix: support retry error message and fix continueGenerationMessage 2025-12-31 18:23:59 +08:00
YuTengjing 7a532eee92 🔒 security: replace KEY_VAULTS_SECRET with JWT signing for async router auth
- Add JWKS_KEY env variable with fallback to OIDC_JWKS_KEY
- Add signInternalJWT() and validateInternalJWT() in internalJwt.ts
- Use short-lived JWT (3s) with purpose claim to authenticate lambda → async calls
- Remove KEY_VAULTS_SECRET from Authorization header transmission
- Update OIDC provider to use JWKS_KEY from authEnv
- Update documentation for JWKS_KEY and desktop sync
2025-12-31 18:06:02 +08:00
Rene Wang 0f0eb40b41 refac: Use SDK to submit feedback 2025-12-31 17:57:59 +08:00
Rene Wang 99c18702d2 fix: Highlight style 2025-12-31 17:37:56 +08:00
arvinxx 0751fa48c6 💄 style: improve RunCommand Inspector 2025-12-31 17:13:44 +08:00
arvinxx 89363b277e 🐛 fix: fix gemini 3 thinking params 2025-12-31 17:13:44 +08:00
YuTengjing bbf62ce97c feat(referral): add backfill referral code i18n keys
Add translations for backfill referral code feature:
- errors.alreadyBound, errors.backfillExpired, errors.invalidCode, errors.selfReferral
- rules.backfill.* (title, description, placeholder, submit, success, etc.)
- rules.missedCode with link component
2025-12-31 17:00:32 +08:00
Shinji-Li f7cbfe4497 🐛 fix: agent profiles update, agent tools config set, editor placeholder (#11074)
* feat: open the gtd & document tools in normal agent

* feat: add getAllbuildintools in agent profles tools settings

* fix: slove the tools modal segment not work

* feat: support editor placeholder
2025-12-31 16:45:20 +08:00
Innei f26bbc56de chore: change lobehub/ui exported const
Signed-off-by: Innei <tukon479@gmail.com>
2025-12-31 16:32:16 +08:00
YuTengjing 1718fa378a 🔧 fix: redis read json object 2025-12-31 16:30:24 +08:00
Rene Wang 1c47de378d feat: Create folder in the modal 2025-12-31 16:28:50 +08:00
YuTengjing 15722f1e27 feat: implement Redis caching for presigned URLs in file proxy service
- Added Redis integration to cache presigned URLs, reducing S3 API calls.
- Implemented cache hit/miss logic to improve performance.
- Set cache expiration time to 4 minutes.
2025-12-31 16:18:41 +08:00
YuTengjing 5a93639cbd chore: remove @lobehub/ui from devDependencies in package.json 2025-12-31 16:02:16 +08:00
canisminor1990 08b2444b1c style: update cloud style 2025-12-31 15:43:12 +08:00
canisminor1990 ddb4c2ac7c style: update cloud style 2025-12-31 15:43:11 +08:00
arvinxx 1c2723c5db 🔧 chore: unpin lobehub and antd-style 2025-12-31 15:34:14 +08:00
arvinxx a0cc9c3354 🐛 fix: fix gemini 3 pro parallel tool use 2025-12-31 15:20:11 +08:00
arvinxx 80f511cd6e 🌐 style: rerun i18n 2025-12-31 15:20:11 +08:00
arvinxx 5cfb4a5e0e 🔒 chore: remove error stack 2025-12-31 15:19:16 +08:00
YuTengjing ada71d386d 🔗 fix: update PlanTag link paths for subscription settings
- Change the link paths in PlanTag component to direct users to '/settings/plans' and '/settings/usage' based on the isFree flag, improving navigation consistency.
2025-12-31 15:06:22 +08:00
Innei f5314c5c32 ♻️ refactor: improve modal handling with createRawModal (#11071)
* feat: integrate TooltipGroup into SideBarLayout for enhanced UI interactions

Signed-off-by: Innei <tukon479@gmail.com>

* feat: refactor components to utilize createRawModal for improved modal handling and enhance UI interactions with TooltipGroup

Signed-off-by: Innei <tukon479@gmail.com>

* chore: update @lobehub/ui dependency to version 4.5.0 in package.json

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-12-31 15:03:24 +08:00
Innei f9d991b26c Merge branch 'next' into dev 2025-12-31 14:58:42 +08:00
YuTengjing 98f75cff6a 🔧 chore: update prebuild script to echo environment variables
- Modify the prebuild script in package.json to include echo statements for NEXT_PUBLIC_AUTH_URL, NEXTAUTH_URL, APP_URL, and VERCEL_URL, enhancing visibility of environment variables during the build process.
2025-12-31 14:54:06 +08:00
YuTengjing c026117d1a feat: update user memory embedding model selection based on business features
- Import BRANDING_PROVIDER and ENABLE_BUSINESS_FEATURES constants.
- Modify getEmbeddingRuntime to select the model provider based on the ENABLE_BUSINESS_FEATURES flag, enhancing flexibility in model usage.
2025-12-31 14:38:54 +08:00
canisminor1990 e62d6cc1a1 style: update style 2025-12-31 14:23:38 +08:00
Innei 475065e081 ♻️ refactor: remove desktop-specific upload logic (#11070)
- Remove isDesktop check for upload flow
- Remove uploadToDesktopS3 method
- Clean up related mocks in tests
- Simplify upload service to use server-side logic only

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-31 14:16:10 +08:00
Rene Wang e3dd7ff16c feat: Open feedback with CMDK 2025-12-31 13:28:32 +08:00
Shinji-Li 048bd66ce0 🐛 fix: slove when click agentbuilder should clean topic (#11068)
fix: slove when click agentbuilder should clean topic
2025-12-31 12:14:10 +08:00
Rene Wang 8b1c0a4a13 feat: Submit feedback to Linear 2025-12-31 11:47:24 +08:00
Rene Wang ab683abf18 feat: Submit feedback to Linear 2025-12-31 11:45:48 +08:00
Rene Wang a155693acf feat: Submit feedback to Linear 2025-12-31 11:39:45 +08:00
Arvin Xu 8560a6bf29 test: agent e2e case for user journey (#11063)
*  test(e2e): add Agent conversation E2E test with LLM mock

- Add LLM mock framework to intercept /webapi/chat/openai requests
- Create Agent conversation journey test (AGENT-CHAT-001)
- Add data-testid="chat-input" to Desktop ChatInput for E2E testing
- Mock returns SSE streaming responses matching LobeChat's actual format

Test scenario: Enter Lobe AI → Send "hello" → Verify AI response

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 📝 docs(e2e): add E2E testing guide for Claude

Document key learnings from implementing Agent conversation test:
- LLM Mock SSE format and usage
- Desktop/Mobile dual component handling with boundingBox
- contenteditable input handling
- Debugging tips and common issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 📝 docs(e2e): add experience-driven E2E testing strategy

Add comprehensive testing strategy from LOBE-2417:
- Core philosophy: user experience baseline for refactoring safety
- Product architecture coverage with priority levels
- Tag system (@journey, @P0/@P1/@P2, module tags)
- Execution strategies for CI, Nightly, and Release
- Updated directory structure with full journey coverage plan

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* add conversation case

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 10:10:40 +08:00
arvinxx b5d33e6564 tests: add more tests case 2025-12-31 09:28:56 +08:00
Arvin Xu a9a93c15ae test: fix e2e tests for new product flow (#11060)
* add e2e tests

* fix workflow

* update workflow

* 🐛 fix(e2e): fix smoke tests i18n and timeout issues

- Unify default port to 3006 across hooks.ts and world.ts
- Reduce step timeout from 30s to 10s for faster feedback
- Fix i18n matching for featured sections (support zh-CN/en-US)
- Add mock framework foundation for future API mocking

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 🐛 fix(e2e): save failure screenshots to file for CI artifacts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 🐛 fix(e2e): move PORT to global env for consistent access

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* 🐛 fix(e2e): set onboarding as completed for test user

Skip onboarding flow by setting finishedAt in test user seed
2025-12-31 02:13:32 +08:00
arvinxx 6e19bd3d4c 🐛 fix: fix anthropic thinking budget 2025-12-31 01:49:42 +08:00
arvinxx 69f4cf3dd9 🐛 fix: fix gemini 3 model thinking issue 2025-12-31 01:15:50 +08:00
arvinxx 7d65b51e0c tests: fix tests 2025-12-31 00:08:49 +08:00
arvinxx fc20dbca36 🐛 fix: fix supervisor flag 2025-12-30 23:39:46 +08:00
Zhijie He 5034fd02d4 👷 build: fix docker image build error, missing patches folder (#11059)
fix: fix docker image build error, missing `patches` folder
2025-12-30 23:39:46 +08:00
YuTengjing 8f2d57d968 feat: include Subscription settings group in the Accordion component 2025-12-30 23:39:46 +08:00
YuTengjing 2ddc876a4c feat: add subscription settings group with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs 2025-12-30 23:39:46 +08:00
YuTengjing ea11a2b506 🔧 chore: update ESLint rules to be commented out, enhance manifest for development mode, and adjust Welcome component username prop 2025-12-30 23:39:46 +08:00
canisminor1990 dd5b28b4ad style: task style 2025-12-30 23:39:46 +08:00
YuTengjing 35c6ad909b feat: add business settings features with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs 2025-12-30 20:43:41 +08:00
Rene Wang 0f94fa9968 feat: Add error boundary 2025-12-30 20:27:36 +08:00
canisminor1990 88abd1bbd1 style: update supervisor 2025-12-30 20:11:43 +08:00
YuTengjing d6419e4903 feat: refactor authentication handler to support dynamic loading of better-auth and next-auth 2025-12-30 19:40:28 +08:00
YuTengjing 0b1c7812ba 🔧 chore: downgrade better-auth package versions to 1.4.6 2025-12-30 18:59:49 +08:00
canisminor1990 f4d420076b style: fix some style 2025-12-30 18:54:23 +08:00
Shinji-Li eb97bf696b 🔨 chore: update editor version (#11057)
chore: update editor version
2025-12-30 18:38:37 +08:00
Shinji-Li 8b494142ea 🐛 fix: update contextMenu in group tools message (#11056)
feat: update contextMenu in group tools message
2025-12-30 18:29:06 +08:00
canisminor1990 7367093191 style: update actions bar 2025-12-30 18:21:10 +08:00
YuTengjing 499bd4a722 🐛 fix: handle session invalidation on 401 error by logging out signed-in users 2025-12-30 18:16:49 +08:00
Shinji-Li 00e81f1abd 🐛 fix: fixed the welcome card the create button not work (#11055)
fix: slove the welcome card create agent button problem
2025-12-30 18:15:26 +08:00
canisminor1990 e056a69a94 style: update typing speed 2025-12-30 18:03:41 +08:00
canisminor1990 ed694f202f style: update desktop onboarding 2025-12-30 18:01:47 +08:00
canisminor1990 0bb6b44fcd style: update desktop onboarding 2025-12-30 17:48:13 +08:00
YuTengjing cdd7a9239d 🔧 chore: update better-auth version to a fixed release 2025-12-30 17:43:57 +08:00
Shinji-Li d102d47577 🐛 fix: slove input editor on pause emit (#11051)
fix: slove input editor on pause emit
2025-12-30 17:30:25 +08:00
YuTengjing 1a5049c5b0 🐛 fix: prevent redundant login redirect when already on auth pages 2025-12-30 17:05:49 +08:00
arvinxx 1fa4357963 ♻️ refactor: move code-interpreter to single packages 2025-12-30 17:04:43 +08:00
arvinxx 784bb5806a ♻️ refactor: refactor to use better underline style 2025-12-30 17:04:42 +08:00
Innei efe18bf762 ♻️ chore: move desktop onboarding route file path 2025-12-30 16:57:31 +08:00
Rene Wang 43d506cfa4 lint: Use createStyles instead of CSS-in-JS 2025-12-30 16:55:54 +08:00
Innei 4faa65c6af feat(model): improve model list UI and add disabled models management (#11036)
*  feat(model): improve model list UI and add disabled models management

- Enhanced DisabledModels component with better UI/UX
- Updated ModelList layout and interactions
- Added repository methods for disabled model management
- Improved AI model service and router functionality
- Added tests for new functionality

*  feat(DisabledModels): enhance loading and rendering logic for disabled models

- Implemented pagination and dynamic loading for disabled models
- Improved state management for visible models and loading conditions
- Ensured unique model entries in the displayed list
- Updated component to handle provider changes effectively

Signed-off-by: Innei <tukon479@gmail.com>

* fix(DisabledModels): handle edge case for last page in pagination logic

- Added a check to ensure lastPage is defined before evaluating pagination end conditions
- Improved robustness of loading state management in DisabledModels component

Signed-off-by: Innei <tukon479@gmail.com>

* lint

* lint

* lint

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-12-30 16:49:12 +08:00
YuTengjing 381cf51ec0 refactor: simplify prebuild script by removing environment variable echoes 2025-12-30 16:33:22 +08:00
YuTengjing 6b5ce79e56 feat: integrate BrandingProviderCard and update Provider components for branding support 2025-12-30 16:33:21 +08:00
Rene Wang adcc987faf lint: Clean up code 2025-12-30 16:30:38 +08:00
Shinji-Li 34b5a32aa1 🐛 fix: fix when use branch topic,the branch index error problem (#11049)
fix: fix when use branch topic,the branch index error problem
2025-12-30 16:25:01 +08:00
arvinxx 5e10ac8d88 ♻️ refactor: refactor to use better underline style 2025-12-30 16:21:41 +08:00
canisminor1990 73b773260b style: update ChatInput 2025-12-30 16:16:54 +08:00
Innei 9db8da82f6 feat: enhance macOS desktop permissions and onboarding (#11016)
* feat: enhance macOS desktop permissions and onboarding

- Improve screen recording access request with dual-method approach
  (Electron API + getDisplayMedia trigger for TCC registration)
- Add auto-add functionality for Full Disk Access using AppleScript
- Make onboarding flow platform-aware (skip Screen3 on non-macOS)
- Add NSAppleEventsUsageDescription and NSScreenCaptureUsageDescription
- Add comprehensive unit tests for permission flows

* feat: implement full disk access automation and enhance onboarding messages

* feat: enhance Screen5 with context menu support and update theme background color
2025-12-30 16:06:44 +08:00
canisminor1990 98df0d144f style: add chat appearance 2025-12-30 15:58:14 +08:00
Rene Wang 5d8a0acc73 lint: Rename varibles 2025-12-30 15:57:24 +08:00
canisminor1990 752f4e51ff style: update stats 2025-12-30 15:46:14 +08:00
YuTengjing 8b6c30ebef feat: enhance onboarding process by removing mode selection step and adding export functionality in advanced settings 2025-12-30 15:31:04 +08:00
YuTengjing 1dccc04a29 feat: add business features support with new components and hooks 2025-12-30 14:57:00 +08:00
Rene Wang d3012ce677 fix: Upload file 2025-12-30 14:45:51 +08:00
Shinji-Li 754ffe1de2 feat: when use usesend to create agent/group, the model should override by lobeAi (#11048)
feat: when use usesend to create agent/group, the model should override by LobeAI
2025-12-30 14:39:41 +08:00
arvinxx 80587aeb7e feat: add batch tasks ui 2025-12-30 14:38:02 +08:00
arvinxx d780fa82ab 📸 tests: add test fixtures 2025-12-30 14:38:02 +08:00
Rene Wang 2cc5c6611f lint: Remove ocnosle.log 2025-12-30 14:04:56 +08:00
Rene Wang 84467157ac fix: Button hover 2025-12-30 14:00:47 +08:00
arvinxx a2582f285e tests: fix tests 2025-12-30 13:04:14 +08:00
arvinxx 0fe0d6f86f 🐛 fix: fix delete agent group bug 2025-12-30 12:33:53 +08:00
Shinji-Li 91d3f746c7 🐛 fix: slove the group add member checkbox not work (#11045)
* fix: slove wait list always jupm wait problem

* 🐛 fix: slove wait list always jump wait problem (#11042)

fix: slove wait list always jupm wait problem

* fix: roll back state.isInWaitList judge problem

* fix: slove the group add member checkbox notwork
2025-12-30 12:07:24 +08:00
Rene Wang 41f1005dfa fix: Border radius of dock 2025-12-30 12:02:47 +08:00
Rene Wang f9595f0dfa fix: Drag stuck 2025-12-30 11:52:03 +08:00
Shinji-Li 977a700615 💄 style: improve ExecTask and task message UI 2025-12-30 11:40:50 +08:00
arvinxx de62035979 🐛 fix: fix default waitlist bug 2025-12-30 09:54:59 +08:00
Neko 3c9bafee6f 🐛 fix(userMemories): missing base memory as part of context (#11040) 2025-12-30 03:52:00 +08:00
Neko ab61c69fef feat(userMemories): use honorific title for identity memory (#11039) 2025-12-30 03:50:23 +08:00
Neko 1cc0e8c375 feat(userMemories): apply userMemories.enable from settings for injecting (#11038) 2025-12-30 03:44:33 +08:00
Neko 5615d20d45 feat(userMemories): use capturedAt for time of memory entries (#11037) 2025-12-30 03:43:44 +08:00
arvinxx a3fc406b7d 🚨 chore: fix lint 2025-12-30 01:25:41 +08:00
arvinxx cd78e5f196 tests: fix tests 2025-12-30 01:19:26 +08:00
arvinxx f708cdb901 💄 style: support streaming and display ui for group mode 2025-12-30 01:11:24 +08:00
arvinxx 30cb4dfb93 move web-browsing 2025-12-30 01:11:24 +08:00
arvinxx 3b01174d4f ♻️ refactor: use /f/:fid as file mode 2025-12-30 00:41:00 +08:00
arvinxx 0ca823fc56 ♻️ refactor: use supervisor role for agent group supervisor 2025-12-29 23:59:11 +08:00
Innei 98bc8567a1 chore: update @lobehub/ui dependency to version 4.4.0 in package.json
Signed-off-by: Innei <tukon479@gmail.com>
2025-12-29 22:27:05 +08:00
YuTengjing 52c7a4928a feat(layout): integrate BusinessGlobalProvider for conditional rendering based on business features 2025-12-29 22:05:24 +08:00
YuTengjing 991d8c1874 feat(auth): enhance BetterAuthSignUpForm with businessElement and update useSignUp hook for improved signup process 2025-12-29 21:52:44 +08:00
YuTengjing 3efb6cc3f1 feat(auth): add useBusinessSignup hook for business signup functionality 2025-12-29 21:44:14 +08:00
Rene Wang bb1a6d65fa opti: Better performance 2025-12-29 21:41:22 +08:00
YuTengjing c8e3bc90b3 feat(auth): update useBusinessSignin to include getAdditionalData function for enhanced sign-in process 2025-12-29 21:40:52 +08:00
canisminor1990 149315c427 fix: fix style issues 2025-12-29 21:33:17 +08:00
canisminor1990 f4ef1f7d96 fix: fix style issues 2025-12-29 21:22:34 +08:00
YuTengjing 2ccd5c78f5 feat(auth): add confirm password field and integrate business signup logic 2025-12-29 21:10:39 +08:00
YuTengjing 6dc79162f0 feat(auth): integrate business sign-in features and update social sign-in logic 2025-12-29 21:10:38 +08:00
Shinji-Li 74d35554f2 feat: gtd create plan support streaming render (#11034)
feat: add the gtd stream render
2025-12-29 21:05:24 +08:00
Innei 34a6312668 feat: enhance desktop onboarding with sign out and localization (#11033)
*  feat(onboarding): add English and Chinese localization for desktop onboarding screens

*  feat(onboarding): implement sign out functionality and enhance onboarding experience

*  feat(remote-server): implement broadcast for remote server configuration updates

* update
2025-12-29 21:03:08 +08:00
arvinxx 1aa1c04a8d 🐛 fix: fix async task and improve tool style 2025-12-29 21:01:11 +08:00
lobehubbot 858e525fcb 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-29 12:53:38 +00:00
semantic-release-bot 3d5135a7d2 🔖 chore(release): v1.146.0 [skip ci]
## [Version&nbsp;1.146.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.145.1...v1.146.0)
<sup>Released on **2025-12-29**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor database schema.

####  Features

- **ci**: Add bundle analyzer workflow.
- **misc**: Mobile native better auth support.

#### 🐛 Bug Fixes

- **ci**: Always continue build to upload bundle analyzer report, skip backend routes in bundle analyzer build.
- **scripts**: Fix syntax error in prebuild.mts.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor database schema, closes [#10860](https://github.com/jaworldwideorg/OneJA-Bot/issues/10860) ([5c489bc](https://github.com/jaworldwideorg/OneJA-Bot/commit/5c489bc))

#### What's improved

* **ci**: Add bundle analyzer workflow, closes [#10932](https://github.com/jaworldwideorg/OneJA-Bot/issues/10932) ([c470cfb](https://github.com/jaworldwideorg/OneJA-Bot/commit/c470cfb))
* **misc**: Mobile native better auth support, closes [#10871](https://github.com/jaworldwideorg/OneJA-Bot/issues/10871) ([8c42a93](https://github.com/jaworldwideorg/OneJA-Bot/commit/8c42a93))

#### What's fixed

* **ci**: Always continue build to upload bundle analyzer report, closes [#10946](https://github.com/jaworldwideorg/OneJA-Bot/issues/10946) ([8d37811](https://github.com/jaworldwideorg/OneJA-Bot/commit/8d37811))
* **ci**: Skip backend routes in bundle analyzer build, closes [#10944](https://github.com/jaworldwideorg/OneJA-Bot/issues/10944) ([0276b87](https://github.com/jaworldwideorg/OneJA-Bot/commit/0276b87))
* **scripts**: Fix syntax error in prebuild.mts, closes [#10952](https://github.com/jaworldwideorg/OneJA-Bot/issues/10952) ([3d46c13](https://github.com/jaworldwideorg/OneJA-Bot/commit/3d46c13))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-29 12:52:59 +00:00
Rene Wang 7fce85ea88 refac: Better resource manager 2025-12-29 20:52:56 +08:00
canisminor1990 e3df7f6e24 style: fix style issues 2025-12-29 20:49:47 +08:00
Jamie Stivala 28bd0d245e Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	.husky/pre-commit
#	CHANGELOG.md
#	README.zh-CN.md
2025-12-29 13:37:38 +01:00
YuTengjing 821d57e56e chore: remove JSON validation from ESLint settings in VSCode configuration 2025-12-29 20:26:15 +08:00
Shinji-Li 4a47ea0d2f feat: update gtd tools( use editor & update metadata ) (#11029)
* feat: use lobehub editor to modify gtd plan

* merge origin/dev

* feat: show todo in doc portal

* feat: use the todoProcess in docs portal

* feat: add gtd context engine inject
2025-12-29 20:20:11 +08:00
Neko Ayaka 8786628016 fix: duplicated alias of vitest config 2025-12-29 18:52:41 +08:00
Neko 17124a8e73 🐛 fix(userMemories): skip to handle WorkflowAbort (#11031) 2025-12-29 18:48:07 +08:00
YuTengjing 85df0bc8ca chore: add JSON validation to ESLint settings in VSCode configuration 2025-12-29 17:58:03 +08:00
Shinji-Li 7ae24c2163 feat: update create group chat use builder (#11030)
feat: change the create group button to direction group/profile
2025-12-29 17:57:02 +08:00
arvinxx dba1acf2b4 feat: support exec async sub agent task 2025-12-29 17:50:38 +08:00
arvinxx 6099ac380a ♻️ refactor: refactor tool prompt injection 2025-12-29 17:49:08 +08:00
arvinxx be2b41c792 ♻️ refactor: refactor with editor runtime 2025-12-29 17:43:10 +08:00
YuTengjing 37e33b8b73 docs: update CLAUDE.md to reflect repository name change and clarify git workflow 2025-12-29 16:59:44 +08:00
canisminor1990 8d947ceefc feat: codemirror 2025-12-29 16:59:23 +08:00
huangkairan 812ed7db15 fix: updater not work on Windows (#11027) 2025-12-29 16:55:51 +08:00
Innei da4eb9c1b1 🧪 fix: improve test infrastructure and mock configurations (#11028)
* 🧪 fix: improve test infrastructure and mock configurations

- Add vitest plugin to fix @lobehub/fluent-emoji style import issue
- Update antd-style mocks to preserve actual exports while mocking specific functions
- Switch from useClientDataSWR to useClientDataSWRWithSync in tests
- Add @/utils/identifier alias in vitest config
- Fix duplicate @lobehub/ui mock in ComfyUIForm test

* 🐛 fix: use recommended-legacy for ESLint 8 compatibility

The @next/eslint-plugin-next v16 changed to flat config format which is
incompatible with ESLint 8. Using recommended-legacy to maintain compatibility.
2025-12-29 16:54:06 +08:00
YuTengjing 8b67718158 docs: update subscription locale json 2025-12-29 16:48:39 +08:00
YuTengjing db5e02bac8 feat: expose useBusinessTTSProvider hook 2025-12-29 16:42:34 +08:00
YuTengjing d257a06887 feat: expose markUserValidAction business interface 2025-12-29 16:38:29 +08:00
YuTengjing bbe7a050b7 docs: expose cloud locales 2025-12-29 16:22:22 +08:00
Rene Wang 3942de130e style: Hide save label while loading 2025-12-29 15:37:51 +08:00
Rene Wang 61119dee74 opti: Use useSWR to cache request 2025-12-29 15:37:51 +08:00
Innei 95806721ba 🐛 fix(prebuild): correct syntax in partialBuildPages array
- Fixed the syntax of the partialBuildPages array in prebuild.mts by replacing a trailing comma with a closing brace.
- Ensured proper structure for the array to avoid potential runtime errors.

Signed-off-by: Innei <tukon479@gmail.com>
2025-12-29 14:38:43 +08:00
Innei 5380f76ed1 🔧 chore: increase NODE_OPTIONS memory limit to 8GB across configurations
- Updated NODE_OPTIONS from 6144MB to 8192MB in Dockerfile, package.json scripts, GitHub workflows, and environment configurations.
- Ensured consistent memory allocation for builds and tests to improve performance.

Signed-off-by: Innei <tukon479@gmail.com>
2025-12-29 14:35:04 +08:00
Innei 2fc3b4238a 🐛 fix(ci): skip backend routes in bundle analyzer build (#10944)
- Add isBundleAnalyzer check in prebuild script to skip backend routes when ANALYZE=true && CI=true
- Update bundle analyzer workflow to use fallback KEY_VAULTS_SECRET from generate-secret step
- Increase NODE_OPTIONS memory limit to 8GB
- Remove unnecessary S3_PUBLIC_DOMAIN and APP_URL env vars

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-29 13:51:03 +08:00
Innei 04de37b0ec 🔧 chore(deps): upgrade Next.js from 16.1.0 to 16.1.1 (#10949)
Upgrade Next.js and related packages to 16.1.1:
- next: 16.1.0 → 16.1.1
- @next/third-parties: 16.1.0 → 16.1.1
- @next/bundle-analyzer: 16.1.0 → 16.1.1
- @next/eslint-plugin-next: 15.5.9 → 16.1.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-29 13:32:52 +08:00
Innei 596e489d74 feat: add Bundle Analyzer workflow for detailed bundle size analysis
Signed-off-by: Innei <tukon479@gmail.com>
2025-12-29 13:29:40 +08:00
Innei f9e11d03df 🐛 fix: update OFFICIAL_URL to app.lobehub.com (#11015)
fix: update OFFICIAL_URL to app.lobehub.com

Update OFFICIAL_URL from https://lobechat.com to https://app.lobehub.com

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-29 13:24:10 +08:00
Innei 770c87256b 🐛 fix: locale resolve bug with ESM module loading (#11018)
* 🐛 fix: simplify translation key access and add fallback logic

- Remove special handling for 'models' and 'providers' namespaces in create.ts
- Use flat key structure (direct object access) instead of nested get()
- Add fallback to default module when locale JSON is missing
- Add tests for missing key fallback behavior

* 🐛 fix: locale resolve bug with ESM module loading

Fix locale resolution in desktop and server environments by properly handling ESM module loading and adding fallback logic for translation namespaces.

Also move lexical from devDependencies to dependencies in builtin-tool-page-agent to fix type-check issues.
2025-12-29 13:19:51 +08:00
Neko 63224dd1a4 🐛 fix(observability-otel): typo in package name (#11025) 2025-12-29 11:40:29 +08:00
Neko 6f0574ddfd feat(observability-otel,userMemories): implemented upstash workflow tracing (#11024) 2025-12-29 11:38:06 +08:00
Rene Wang 61fe7849d7 impr: Quit guard 2025-12-29 11:10:52 +08:00
Rene Wang dcd54f50f1 feat: Limit title length 2025-12-29 11:02:18 +08:00
Neko Ayaka 6ad7cd518c fix(userMemories): completely removed serveMany 2025-12-29 05:25:40 +08:00
Neko c4a5055081 🔨 chore(userMemories): debug with more console (#11022) 2025-12-29 04:06:06 +08:00
Neko 78b0c7be9b 🐛 fix(userMemories): must assign workflow id (#11021) 2025-12-29 03:31:01 +08:00
Neko 02a3cc796f 🔨 chore(userMemories): debug memory workflow keep stucking (#11020) 2025-12-29 02:58:51 +08:00
arvinxx 0f57b8aacc refactor for execSubAgentTask 2025-12-29 00:34:53 +08:00
arvinxx 0664563da7 💄 style: improve gtd tool inspector and todo list 2025-12-29 00:34:53 +08:00
Innei e935ddcbe4 test: update test snapshots for i18n model description changes
Updated model descriptions in test snapshots from Chinese to English to align with model-bank package updates.

Changes:
- Fixed descriptions in parseModels.test.ts for gpt-4o, gpt-4o-mini, and o1-mini
- Fixed descriptions in openaiCompatibleFactory/index.test.ts for claude-3-haiku-20240307 with correct smart quote (U+2019)
- Updated related snapshot files for responsesStream, novita, openai, and ppio providers

All tests passing:
- parseModels.test.ts: 49 tests ✓
- openaiCompatibleFactory/index.test.ts: 65 tests ✓
2025-12-28 22:25:27 +08:00
arvinxx 9ede8e7ffd ♻️ refactor: refactor builtin-tool implement 2025-12-28 13:07:43 +08:00
canisminor1990 bfd88a1df2 style: fix style issues 2025-12-28 12:42:36 +08:00
YuTengjing 2f2264da49 fix: update EnableSwitch logic to conditionally render based on ENABLE_BUSINESS_FEATURES 2025-12-28 01:26:07 +08:00
canisminor1990 0659d4f88d style: fix menu border 2025-12-28 01:19:49 +08:00
YuTengjing e83885670d fix: update ENABLED_LOBEHUB logic and enhance server global config with business features 2025-12-28 01:15:08 +08:00
YuTengjing 333355d77a fix: update waitlist redirection logic to check pathname 2025-12-28 00:38:42 +08:00
YuTengjing 15fd41342a chore: remove unneed business logic 2025-12-28 00:00:44 +08:00
YuTengjing 38016e73cb style: optimize waitList ux 2025-12-28 00:00:44 +08:00
CanisMinor d865e27d58 ♻️ refactor: refactor static style (#11010)
* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style

* refactor: refactor static style
2025-12-27 23:51:21 +08:00
YuTengjing ba4834ff84 feat: add businessErrorsLocales and businessLocales to error handling 2025-12-27 20:38:38 +08:00
YuTengjing b8e5715766 feat: add businessLocales to default resources 2025-12-27 20:33:10 +08:00
YuTengjing c963a47474 refactor: BusinessGlobalService file rename 2025-12-27 20:11:26 +08:00
YuTengjing 0e35629529 Revert "chore: rename filename BusinessGlobalService"
This reverts commit b3e77ffae6.
2025-12-27 20:10:25 +08:00
YuTengjing b3e77ffae6 chore: rename filename BusinessGlobalService 2025-12-27 20:09:09 +08:00
YuTengjing 5d4c0694a9 feat: introduce BusinessGlobalService and extend GlobalService 2025-12-27 20:00:34 +08:00
YuTengjing c2acb551f6 refactor: change access modifiers for getValue and getValues methods in EdgeConfig class 2025-12-27 19:56:11 +08:00
YuTengjing c923e0a716 feat: add business configuration endpoints to lambda router 2025-12-27 19:51:41 +08:00
YuTengjing 6b2154d165 feat: ready for cloud client 2025-12-27 19:21:01 +08:00
arvinxx 7a3d25be7f Revert " feat: add a white waitlist in edge config env (#11009)"
This reverts commit 88f22f4f2d.
2025-12-27 19:07:28 +08:00
Shinji-Li 88f22f4f2d feat: add a white waitlist in edge config env (#11009)
feat: add a white waitlist in edge config
2025-12-27 17:40:36 +08:00
Innei 626e808a1c 🐛 fix: update test snapshots for model description changes (#11008)
fix: update test snapshots for model description changes

Update test snapshots to reflect English model descriptions replacing Chinese ones.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-27 16:57:58 +08:00
Innei a763f12fd3 build: add assertions to electron workflow modifiers (#11003)
- Add post-condition assertions to all file modification operations
- Add verify-desktop-patch.yml workflow for CI validation
- Add invariant, updateFile, writeFileEnsuring, removePathEnsuring utilities
- Improve error messages and validation in workflow scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-27 02:04:53 +08:00
lobehubbot e96c014426 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-26 16:34:51 +00:00
semantic-release-bot 527bcf3fdc 🔖 chore(release): v2.0.0-next.180 [skip ci]
## [Version&nbsp;2.0.0-next.180](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.179...v2.0.0-next.180)
<sup>Released on **2025-12-26**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-26 16:33:28 +00:00
Innei e409ec8725 👷 build: add manual desktop build workflow (#11002)
👷 feat: add manual desktop build workflow

Add GitHub Actions workflow for manually triggering desktop builds across all platforms (macOS, Windows, Linux) with configurable release channels (nightly, beta, stable) and optional version override.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-27 00:18:51 +08:00
YuTengjing 841f3e4db5 fix: make models property optional in RouterInstance interface 2025-12-27 00:09:51 +08:00
YuTengjing 87dac5f426 chore: export edge config types 2025-12-26 23:53:54 +08:00
YuTengjing 548f41ddfb refactor: move edge-config to npm package 2025-12-26 23:49:40 +08:00
YuTengjing d2a14620a2 chore: remove outdated @auth/core dependency from package.json 2025-12-26 23:19:28 +08:00
YuTengjing 5e521d2fb5 chore: update package dependencies in database and utils 2025-12-26 22:54:06 +08:00
Arvin Xu 563927b55c 👷 build: fix deps not correct set in packages (#11001)
fix deps
2025-12-26 22:38:16 +08:00
Neko 2c86cfd877 🔨 chore(@upstash/qstash): debug 400 error not shown issue (#11000) 2025-12-26 22:22:30 +08:00
LobeHub Bot 6da2a8d4df test: add unit tests for keyboard module (#10861)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-26 22:06:14 +08:00
Shinji-Li 134788961d 🐛 fix slove when have market scerat key should direct publish agnet (#10999)
fix: slove when have market scerat key  should direct publish agnet
2025-12-26 21:31:26 +08:00
Innei 704ef7f2cf feat: update agent builder ui (#10996)
* refactor: remove memoization from InputArea component and adjust Flexbox padding in Checker component

* style: enhance layout and spacing in ProviderMenu and ModelList components

* fix: update FloatPanel to conditionally render FloatButton based on isDesktop

* feat: add NewModelBadge component and refactor ModelInfoTags to use FeatureTagItem for improved rendering

* remove

* style: enhance UpdatePrompt component with new styles and improve layout for better readability
2025-12-26 20:48:45 +08:00
YuTengjing c401b55ff6 chore: remove outdate @types/bcryptjs 2025-12-26 20:46:17 +08:00
YuTengjing 28f0dab520 fix: circle deps 2025-12-26 20:41:27 +08:00
Neko 0b110b6012 🐛 fix(userMemories): workflow id build issue (#10998) 2025-12-26 20:26:27 +08:00
Shinji-Li 849ac733c7 feat: add the market auth auto generate way (#10993)
* feat: add the market auth auto generate way

* feat: use market trusted client to have auto auth way

* chore: update deps
2025-12-26 20:23:33 +08:00
Neko 45996c6f23 🐛 fix(userMemories): 404/405 issue due to incorrectly used workflow name and mounted catch-all route (#10995) 2025-12-26 19:21:19 +08:00
Neko 6592d10b1d 🐛 fix(userMemories): should use context.invoke for workflow instead of context.run (#10994) 2025-12-26 18:51:51 +08:00
Rene Wang 1a82a12cac feat: Swtich agent 2025-12-26 18:50:48 +08:00
YuTengjing fce68b0f58 feat: conditionally render ReferralProvider based on business feature flag 2025-12-26 18:31:59 +08:00
YuTengjing 9933ab109d fix: export RootLayoutProps interface for better accessibility in layout component 2025-12-26 18:14:43 +08:00
YuTengjing 53b4aa76d3 feat: add export for lobehub model provider in package.json 2025-12-26 17:44:16 +08:00
Rene Wang 3efe8dbfed fix: Agent swtich UI 2025-12-26 17:26:50 +08:00
YuTengjing 79e90eccce fix: add missing @lobehub/ui deps to builtin-tool-gtd 2025-12-26 16:24:41 +08:00
YuTengjing 1737b7fe30 fix: update getSubscriptionPlan to return default plan 2025-12-26 16:08:04 +08:00
YuTengjing c92f3cf4ac chore: export some business router interface 2025-12-26 15:39:56 +08:00
Innei 36ea258fec feat: translate AI model descriptions to English (#10989)
Translate all AI model and model provider descriptions from Chinese to English for better international accessibility and consistency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-26 15:21:59 +08:00
canisminor1990 8d2eb1ca2e style: replace all checkbox 2025-12-26 15:20:12 +08:00
Shinji-Li 50aa304317 🐛 fix: slove the model select null problem (#10988)
fix: slove the model select null problem
2025-12-26 14:46:12 +08:00
canisminor1990 fddff0e962 style: update Group Avatar 2025-12-26 14:31:57 +08:00
Innei 50bca49e7d refactor(i18n): move UI locale files from TypeScript to JSON format (#10985)
* refactor(i18n): move UI locale files from TypeScript to JSON format

- Move UI locale translations from src/locales/ui/*.ts to locales/{locale}/ui.json
- Add src/locales/default/ui.ts for default (en-US) translations
- Update getUILocaleAndResources.ts to load from JSON files
- Add ui.json for all 18 supported locales (ar, bg-BG, de-DE, en-US, es-ES, fa-IR, fr-FR, it-IT, ja-JP, ko-KR, nl-NL, pl-PL, pt-BR, ru-RU, tr-TR, vi-VN, zh-CN, zh-TW)

This change unifies the locale file format, using JSON for all translations
instead of mixing TS and JSON formats.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: throw error when UI locale resources and fallback both fail

Instead of returning an empty object which could cause silent failures
in string lookups, throw an error when both the primary locale and
en-US fallback fail to load.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor(i18n): remove component-level texts props and unused locale keys

- Remove texts props from all @lobehub/ui components (EmojiPicker, Form.SubmitFooter, Hotkey, ColorSwatches)
- Remove unused 'custom' and 'presets' keys from color.json files (only used for ColorSwatches texts prop)
- Components now use @lobehub/ui's built-in translations via ConfigProvider resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor(i18n): remove unused locale keys from default locale files

- Remove EmojiPicker.* keys from components.ts (only used for texts prop)
- Remove submitFooter.* keys from setting.ts (only used for texts prop)
- Remove custom and presets keys from color.ts (only used for ColorSwatches texts prop)
- Update getUILocaleAndResources tests to reflect new behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* refactor(i18n): enhance getUILocaleAndResources with fallback logic

* style: format code and remove unused imports

- Remove unused useTranslation import from EmojiPicker
- Format code with prettier

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-26 14:13:46 +08:00
Innei ce469967de 🐛 fix(translation): add fallback for all English locale variants (#10984)
When using English locale variants (e.g., en-GB, en-AU), the translation system should fall back to the default English namespace instead of trying to load non-existent locale files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-26 12:37:50 +08:00
Rene Wang 972809deed lint: Warp id conversion logic 2025-12-26 12:29:10 +08:00
YuTengjing 5acd5c0a2f chore: revert type only lint 2025-12-26 12:01:32 +08:00
YuTengjing 4f2a6833b2 🐛 fix(image-generation): update chargeBeforeGenerate to return ChargeResult and include configForDatabase in parameters 2025-12-26 12:01:32 +08:00
Rene Wang a784b73685 feat: Export to markdown 2025-12-26 11:55:04 +08:00
Rene Wang 1b61f0c978 feat: Update translation 2025-12-26 11:37:58 +08:00
Shinji-Li 0b2b0963d4 🐛 fix: when use agentbuilder the topic id should use new & clear topic… (#10983)
* feat: when use agentbuilder the topic id should use new & clear topicid in unmount

* feat: when click chat button,should clear topicid first
2025-12-26 11:34:31 +08:00
Arvin Xu 7f69cb1e54 💄 style: improve page document tool inspector UI (#10977) 2025-12-26 08:51:08 +08:00
Neko 15bc6bcfbb 🐛 fix(userMemories): use date & time for building context (#10978) 2025-12-26 03:40:17 +08:00
Neko 196cfce115 tests(memory-user-memory): add tests (#10980) 2025-12-26 03:40:08 +08:00
Neko c2bcf73f9d 🐛 fix(memory-user-memory): should pre-process date & time (#10979) 2025-12-26 03:39:59 +08:00
canisminor1990 4f592ce100 style: update i18n 2025-12-26 00:09:41 +08:00
canisminor1990 4f71117bac style: update todo list style 2025-12-26 00:09:41 +08:00
Rene Wang 41e59f733b opti: Better strings 2025-12-25 23:58:30 +08:00
Arvin Xu 576ccd678c 💄 style: support tool streaming and title custom render (#10976)
* support custom inspector

* support local-system inspector

* add streaming feature

* merge
2025-12-25 23:52:57 +08:00
Rene Wang 84350b3ffc feat: Import from PDF 2025-12-25 23:23:47 +08:00
Innei e87bee6dd5 chore: update lint to use type imports (#10970)
* chore: update lint to use type imports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* revert

* chore: add workspaces and overrides to package.json

* refactor: clean up imports in lobe-web-browsing executor

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-25 22:28:19 +08:00
Rene Wang 7f6bca71e7 fix: Page title missing 2025-12-25 22:22:10 +08:00
Rene Wang 13349406d5 fix: Cannot load more 2025-12-25 22:12:20 +08:00
YuTengjing 51ddc7cb18 refactor: replace logging library with console.error in tRPC tools handler 2025-12-25 22:00:50 +08:00
lobehubbot c00dbebc2c 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-25 07:14:20 +00:00
semantic-release-bot 350c36a762 🔖 chore(release): v2.0.0-next.179 [skip ci]
## [Version&nbsp;2.0.0-next.179](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.178...v2.0.0-next.179)
<sup>Released on **2025-12-25**</sup>

#### 🐛 Bug Fixes

- **scripts**: Fix syntax error in prebuild.mts.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **scripts**: Fix syntax error in prebuild.mts, closes [#10952](https://github.com/lobehub/lobe-chat/issues/10952) ([3d46c13](https://github.com/lobehub/lobe-chat/commit/3d46c13))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-25 07:13:06 +00:00
IpiggyI 3d46c13c08 🐛 fix(scripts): fix syntax error in prebuild.mts (#10952) 2025-12-25 14:58:17 +08:00
lobehubbot 7a8373926d 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-24 14:37:32 +00:00
semantic-release-bot 825e6ebd39 🔖 chore(release): v2.0.0-next.178 [skip ci]
## [Version&nbsp;2.0.0-next.178](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.177...v2.0.0-next.178)
<sup>Released on **2025-12-24**</sup>

#### 🐛 Bug Fixes

- **ci**: Always continue build to upload bundle analyzer report, skip backend routes in bundle analyzer build.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **ci**: Always continue build to upload bundle analyzer report, closes [#10946](https://github.com/lobehub/lobe-chat/issues/10946) ([8d37811](https://github.com/lobehub/lobe-chat/commit/8d37811))
* **ci**: Skip backend routes in bundle analyzer build, closes [#10944](https://github.com/lobehub/lobe-chat/issues/10944) ([0276b87](https://github.com/lobehub/lobe-chat/commit/0276b87))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-24 14:36:23 +00:00
Innei 8d37811b79 🐛 fix(ci): always continue build to upload bundle analyzer report (#10946)
Use `|| true` to ensure the build step always succeeds and continues
to the report upload step, even if the actual build fails.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-24 22:21:21 +08:00
Innei 0276b8713f 🐛 fix(ci): skip backend routes in bundle analyzer build (#10944)
- Add isBundleAnalyzer check in prebuild script to skip backend routes when ANALYZE=true && CI=true
- Update bundle analyzer workflow to use fallback KEY_VAULTS_SECRET from generate-secret step
- Increase NODE_OPTIONS memory limit to 8GB
- Remove unnecessary S3_PUBLIC_DOMAIN and APP_URL env vars

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-24 22:01:01 +08:00
lobehubbot 0da2b3652f 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-24 11:31:33 +00:00
semantic-release-bot 804a6197a9 🔖 chore(release): v2.0.0-next.177 [skip ci]
## [Version&nbsp;2.0.0-next.177](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.176...v2.0.0-next.177)
<sup>Released on **2025-12-24**</sup>

####  Features

- **ci**: Add bundle analyzer workflow.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **ci**: Add bundle analyzer workflow, closes [#10932](https://github.com/lobehub/lobe-chat/issues/10932) ([c470cfb](https://github.com/lobehub/lobe-chat/commit/c470cfb))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-24 11:30:20 +00:00
Innei c470cfb1e8 feat(ci): add bundle analyzer workflow (#10932)
*  feat(ci): add bundle analyzer workflow

- Add GitHub Actions workflow for bundle size analysis
- Generate pnpm lockfile for reproducible builds
- Include analyzer reports and lockfile in artifacts
- Use pnpm for dependency installation
- Run build:analyze script directly for bundle generation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(ci): add required env vars for bundle analyzer build

- Add KEY_VAULTS_SECRET generation step
- Add S3_PUBLIC_DOMAIN and APP_URL env vars
- Fixes build error when running build:analyze

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-24 19:15:17 +08:00
GH Action - Upstream Sync ac2af3e848 Merge branch 'next' of https://github.com/lobehub/lobe-chat 2025-12-16 12:13:09 +00:00
lobehubbot 9a2f730900 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-16 08:18:53 +00:00
semantic-release-bot 6e4d982a3b 🔖 chore(release): v1.145.1 [skip ci]
### [Version&nbsp;1.145.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.145.0...v1.145.1)
<sup>Released on **2025-12-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Request to gpt5 series should not with `top_p`, temperature when reasoning effort  is not none.

#### 💄 Styles

- **misc**: Update GPT-5.2 models, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Request to gpt5 series should not with `top_p`, temperature when reasoning effort  is not none, closes [#10800](https://github.com/jaworldwideorg/OneJA-Bot/issues/10800) ([b4ad470](https://github.com/jaworldwideorg/OneJA-Bot/commit/b4ad470))

#### Styles

* **misc**: Update GPT-5.2 models, closes [#10749](https://github.com/jaworldwideorg/OneJA-Bot/issues/10749) ([0446127](https://github.com/jaworldwideorg/OneJA-Bot/commit/0446127))
* **misc**: Update i18n, closes [#10759](https://github.com/jaworldwideorg/OneJA-Bot/issues/10759) ([24cae77](https://github.com/jaworldwideorg/OneJA-Bot/commit/24cae77))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-16 08:18:34 +00:00
Jamie Stivala 9315525e2c Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
2025-12-16 09:03:16 +01:00
GH Action - Upstream Sync fcf64cbdd9 Merge branch 'next' of https://github.com/lobehub/lobe-chat 2025-12-12 18:10:27 +00:00
lobehubbot 6a3951f351 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-12 14:49:09 +00:00
semantic-release-bot 9880430003 🔖 chore(release): v1.145.0 [skip ci]
## [Version&nbsp;1.145.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.144.2...v1.145.0)
<sup>Released on **2025-12-12**</sup>

####  Features

- **misc**: Add Replicate image provider.

#### 🐛 Bug Fixes

- **misc**: Fix CVE errors, slove market oidc error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Replicate image provider ([542f4d9](https://github.com/jaworldwideorg/OneJA-Bot/commit/542f4d9))

#### What's fixed

* **misc**: Fix CVE errors, closes [#10748](https://github.com/jaworldwideorg/OneJA-Bot/issues/10748) ([6591f3c](https://github.com/jaworldwideorg/OneJA-Bot/commit/6591f3c))
* **misc**: Slove market oidc error, closes [#10715](https://github.com/jaworldwideorg/OneJA-Bot/issues/10715) ([108d2a7](https://github.com/jaworldwideorg/OneJA-Bot/commit/108d2a7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-12 14:48:49 +00:00
Jamie Stivala 4eea2f3008 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	.husky/pre-commit
#	CHANGELOG.md
#	README.zh-CN.md
2025-12-12 15:33:41 +01:00
lobehubbot b5bc9e752e 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-09 10:54:29 +00:00
semantic-release-bot 9bd458c0a9 🔖 chore(release): v1.144.2 [skip ci]
### [Version&nbsp;1.144.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.144.1...v1.144.2)
<sup>Released on **2025-12-09**</sup>

#### ♻ Code Refactoring

- **electron-main**: Client ipc decorate.

#### 🐛 Bug Fixes

- **Dockerfile**: Electron main typing pkg.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **electron-main**: Client ipc decorate, closes [#10679](https://github.com/jaworldwideorg/OneJA-Bot/issues/10679) ([f74befa](https://github.com/jaworldwideorg/OneJA-Bot/commit/f74befa))

#### What's fixed

* **Dockerfile**: Electron main typing pkg, closes [#10693](https://github.com/jaworldwideorg/OneJA-Bot/issues/10693) ([f3357b0](https://github.com/jaworldwideorg/OneJA-Bot/commit/f3357b0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-09 10:54:12 +00:00
Jamie Stivala 162aeb2887 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
2025-12-09 11:39:57 +01:00
lobehubbot 674afe68d8 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-08 10:41:46 +00:00
semantic-release-bot d2f45219c9 🔖 chore(release): v1.144.1 [skip ci]
### [Version&nbsp;1.144.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.144.0...v1.144.1)
<sup>Released on **2025-12-08**</sup>

#### 🐛 Bug Fixes

- **misc**: Add smooth scroll to top on 'More' button click in Title component.

#### 💄 Styles

- **profile**: Add mobile responsive layout and signup improvements.
- **misc**: Update link handling in PlanTag component to use react-router-dom.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Add smooth scroll to top on 'More' button click in Title component, closes [#10178](https://github.com/jaworldwideorg/OneJA-Bot/issues/10178) ([5ad4f0c](https://github.com/jaworldwideorg/OneJA-Bot/commit/5ad4f0c))

#### Styles

* **profile**: Add mobile responsive layout and signup improvements, closes [#10669](https://github.com/jaworldwideorg/OneJA-Bot/issues/10669) ([1afd471](https://github.com/jaworldwideorg/OneJA-Bot/commit/1afd471))
* **misc**: Update link handling in PlanTag component to use react-router-dom, closes [#10673](https://github.com/jaworldwideorg/OneJA-Bot/issues/10673) ([3aceeb6](https://github.com/jaworldwideorg/OneJA-Bot/commit/3aceeb6))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-08 10:41:31 +00:00
Jamie Stivala ac55b85fbc Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
2025-12-08 11:27:11 +01:00
lobehubbot fa133184de 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-05 13:27:40 +00:00
semantic-release-bot 8fe4ac8d35 🔖 chore(release): v1.144.0 [skip ci]
## [Version&nbsp;1.144.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.143.0...v1.144.0)
<sup>Released on **2025-12-05**</sup>

####  Features

- **misc**: Betterauth username signin, support klavis mcp connector.

#### 🐛 Bug Fixes

- **misc**: Fix React CVE issue, limit check-user response surface.

#### 💄 Styles

- **misc**: Update Spark X1.5 model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Betterauth username signin, closes [#10607](https://github.com/jaworldwideorg/OneJA-Bot/issues/10607) ([f72a5e6](https://github.com/jaworldwideorg/OneJA-Bot/commit/f72a5e6))
* **misc**: Support klavis mcp connector, closes [#10584](https://github.com/jaworldwideorg/OneJA-Bot/issues/10584) ([e3ec79e](https://github.com/jaworldwideorg/OneJA-Bot/commit/e3ec79e))

#### What's fixed

* **misc**: Fix React CVE issue, closes [#10593](https://github.com/jaworldwideorg/OneJA-Bot/issues/10593) ([abd850f](https://github.com/jaworldwideorg/OneJA-Bot/commit/abd850f))
* **misc**: Limit check-user response surface, closes [#10609](https://github.com/jaworldwideorg/OneJA-Bot/issues/10609) ([2f6d3f0](https://github.com/jaworldwideorg/OneJA-Bot/commit/2f6d3f0))

#### Styles

* **misc**: Update Spark X1.5 model, closes [#10103](https://github.com/jaworldwideorg/OneJA-Bot/issues/10103) ([d1aca26](https://github.com/jaworldwideorg/OneJA-Bot/commit/d1aca26))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-05 13:27:15 +00:00
Jamie Stivala 83bdc6c67d Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
2025-12-05 14:12:54 +01:00
lobehubbot 11d53ad1ce 📝 docs(bot): Auto sync agents & plugin to readme 2025-12-03 15:48:20 +00:00
semantic-release-bot e7a85fec06 🔖 chore(release): v1.143.0 [skip ci]
## [Version&nbsp;1.143.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.142.0...v1.143.0)
<sup>Released on **2025-12-03**</sup>

#### ♻ Code Refactoring

- **misc**: Unify retry logic to async-retry.

####  Features

- **misc**: Optimize betterauth UX.

#### 🐛 Bug Fixes

- **desktop**: Add token refresh retry mechanism.
- **security**: Prevent prompt injection in Claude workflows.
- **misc**: Better-auth add apple sso icon and label, missing init user after user creation, remove apiMode param from Azure and Cloudflare provider requests, udpate discover detail tools get & more link, when desktop use contextMenu not work.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Unify retry logic to async-retry, closes [#10579](https://github.com/jaworldwideorg/OneJA-Bot/issues/10579) ([95f31bc](https://github.com/jaworldwideorg/OneJA-Bot/commit/95f31bc))

#### What's improved

* **misc**: Optimize betterauth UX, closes [#10582](https://github.com/jaworldwideorg/OneJA-Bot/issues/10582) ([01a6a89](https://github.com/jaworldwideorg/OneJA-Bot/commit/01a6a89))

#### What's fixed

* **desktop**: Add token refresh retry mechanism, closes [#10575](https://github.com/jaworldwideorg/OneJA-Bot/issues/10575) ([83fc2e8](https://github.com/jaworldwideorg/OneJA-Bot/commit/83fc2e8))
* **security**: Prevent prompt injection in Claude workflows, closes [#10585](https://github.com/jaworldwideorg/OneJA-Bot/issues/10585) ([87f748f](https://github.com/jaworldwideorg/OneJA-Bot/commit/87f748f))
* **misc**: Better-auth add apple sso icon and label, closes [#10570](https://github.com/jaworldwideorg/OneJA-Bot/issues/10570) ([17facd5](https://github.com/jaworldwideorg/OneJA-Bot/commit/17facd5))
* **misc**: Missing init user after user creation, closes [#10587](https://github.com/jaworldwideorg/OneJA-Bot/issues/10587) ([0e97a42](https://github.com/jaworldwideorg/OneJA-Bot/commit/0e97a42))
* **misc**: Remove apiMode param from Azure and Cloudflare provider requests, closes [#10571](https://github.com/jaworldwideorg/OneJA-Bot/issues/10571) ([7e44faa](https://github.com/jaworldwideorg/OneJA-Bot/commit/7e44faa))
* **misc**: Udpate discover detail tools get & more link, closes [#10586](https://github.com/jaworldwideorg/OneJA-Bot/issues/10586) ([8ace3f0](https://github.com/jaworldwideorg/OneJA-Bot/commit/8ace3f0))
* **misc**: When desktop use contextMenu not work, closes [#10545](https://github.com/jaworldwideorg/OneJA-Bot/issues/10545) ([43c4db7](https://github.com/jaworldwideorg/OneJA-Bot/commit/43c4db7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-03 15:47:56 +00:00
Jamie Stivala 431af7be0d Merge remote-tracking branch 'origin/main' 2025-12-03 16:35:57 +01:00
Jamie Stivala c9125dc1f3 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-12-03 16:35:47 +01:00
semantic-release-bot a5087ffd77 🔖 chore(release): v1.142.0 [skip ci]
## [Version&nbsp;1.142.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.141.0...v1.142.0)
<sup>Released on **2025-12-02**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor agent slug schema.

####  Features

- **misc**: Email provider support resend, support apple sso auth, support market cloud endpoint mcp.

#### 🐛 Bug Fixes

- **misc**: Remove internal apiMode param from chat completion API requests, user email unique migration error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor agent slug schema, closes [#10561](https://github.com/jaworldwideorg/OneJA-Bot/issues/10561) ([0d609d1](https://github.com/jaworldwideorg/OneJA-Bot/commit/0d609d1))

#### What's improved

* **misc**: Email provider support resend, closes [#10557](https://github.com/jaworldwideorg/OneJA-Bot/issues/10557) ([7449b29](https://github.com/jaworldwideorg/OneJA-Bot/commit/7449b29))
* **misc**: Support apple sso auth, closes [#10563](https://github.com/jaworldwideorg/OneJA-Bot/issues/10563) ([2e50313](https://github.com/jaworldwideorg/OneJA-Bot/commit/2e50313))
* **misc**: Support market cloud endpoint mcp, closes [#10484](https://github.com/jaworldwideorg/OneJA-Bot/issues/10484) ([9c7ce44](https://github.com/jaworldwideorg/OneJA-Bot/commit/9c7ce44))

#### What's fixed

* **misc**: Remove internal apiMode param from chat completion API requests, closes [#10539](https://github.com/jaworldwideorg/OneJA-Bot/issues/10539) ([9498cc6](https://github.com/jaworldwideorg/OneJA-Bot/commit/9498cc6))
* **misc**: User email unique migration error, closes [#10548](https://github.com/jaworldwideorg/OneJA-Bot/issues/10548) ([ca2a1a2](https://github.com/jaworldwideorg/OneJA-Bot/commit/ca2a1a2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-02 17:33:24 +00:00
Jamie Stivala d2dd4ef5ed Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-12-02 18:21:23 +01:00
semantic-release-bot 4bf4f18679 🔖 chore(release): v1.141.0 [skip ci]
## [Version&nbsp;1.141.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.140.0...v1.141.0)
<sup>Released on **2025-12-01**</sup>

####  Features

- **misc**: Integrate better-auth admin plugin.

#### 🐛 Bug Fixes

- **conversation-flow**: Support optimistic update for activeBranchIndex.
- **misc**: Betterauth name should mapped to fullName, betterauth public url auto detect from VERCEL_URL, drop user.phoneNumber and reuse user.phone, fix BetterAuth `Unable to link account - untrusted provider`, refresh custom AI provider on selection, Unable to switch to default topic, update apiMode handling in ChatService to prioritize user preferences.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Integrate better-auth admin plugin, closes [#10512](https://github.com/jaworldwideorg/OneJA-Bot/issues/10512) ([3be78f0](https://github.com/jaworldwideorg/OneJA-Bot/commit/3be78f0))

#### What's fixed

* **conversation-flow**: Support optimistic update for activeBranchIndex, closes [#10517](https://github.com/jaworldwideorg/OneJA-Bot/issues/10517) ([9b5b234](https://github.com/jaworldwideorg/OneJA-Bot/commit/9b5b234))
* **misc**: Betterauth name should mapped to fullName, closes [#10490](https://github.com/jaworldwideorg/OneJA-Bot/issues/10490) ([7babdc1](https://github.com/jaworldwideorg/OneJA-Bot/commit/7babdc1))
* **misc**: Betterauth public url auto detect from VERCEL_URL, closes [#10493](https://github.com/jaworldwideorg/OneJA-Bot/issues/10493) ([b5bf8ad](https://github.com/jaworldwideorg/OneJA-Bot/commit/b5bf8ad))
* **misc**: Drop user.phoneNumber and reuse user.phone, closes [#10531](https://github.com/jaworldwideorg/OneJA-Bot/issues/10531) ([2ab88c5](https://github.com/jaworldwideorg/OneJA-Bot/commit/2ab88c5))
* **misc**: Fix BetterAuth `Unable to link account - untrusted provider`, closes [#10505](https://github.com/jaworldwideorg/OneJA-Bot/issues/10505) ([d845451](https://github.com/jaworldwideorg/OneJA-Bot/commit/d845451))
* **misc**: Refresh custom AI provider on selection, closes [#10506](https://github.com/jaworldwideorg/OneJA-Bot/issues/10506) ([d7db99e](https://github.com/jaworldwideorg/OneJA-Bot/commit/d7db99e))
* **misc**: Unable to switch to default topic, closes [#10472](https://github.com/jaworldwideorg/OneJA-Bot/issues/10472) ([d181f71](https://github.com/jaworldwideorg/OneJA-Bot/commit/d181f71))
* **misc**: Update apiMode handling in ChatService to prioritize user preferences, closes [#10487](https://github.com/jaworldwideorg/OneJA-Bot/issues/10487) ([5483d91](https://github.com/jaworldwideorg/OneJA-Bot/commit/5483d91))

#### Styles

* **misc**: Update i18n, closes [#10519](https://github.com/jaworldwideorg/OneJA-Bot/issues/10519) ([bd9a38c](https://github.com/jaworldwideorg/OneJA-Bot/commit/bd9a38c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-12-01 11:31:23 +00:00
Jamie Stivala d0dce97f56 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-12-01 12:18:56 +01:00
GH Action - Upstream Sync ee6322eb84 Merge branch 'next' of https://github.com/lobehub/lobe-chat 2025-11-28 18:09:25 +00:00
lobehubbot 6491c10988 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-28 10:50:36 +00:00
semantic-release-bot ef3f97ad17 🔖 chore(release): v1.140.0 [skip ci]
## [Version&nbsp;1.140.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.139.0...v1.140.0)
<sup>Released on **2025-11-28**</sup>

####  Features

- **misc**: Support better-auth.

#### 🐛 Bug Fixes

- **misc**: Add handling for `content_part` and `reasoning_part` events in fetchSSE, align docker auth defaults and better-auth docs, better-auth fallback next-auth providers env, Filter out file with `sourceType` = `file`, Implement uniform callback URL for SSO providers.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support better-auth, closes [#10215](https://github.com/jaworldwideorg/OneJA-Bot/issues/10215) ([dc62cc9](https://github.com/jaworldwideorg/OneJA-Bot/commit/dc62cc9))

#### What's fixed

* **misc**: Add handling for `content_part` and `reasoning_part` events in fetchSSE, closes [#10470](https://github.com/jaworldwideorg/OneJA-Bot/issues/10470) ([8aff3ab](https://github.com/jaworldwideorg/OneJA-Bot/commit/8aff3ab))
* **misc**: Align docker auth defaults and better-auth docs, closes [#10457](https://github.com/jaworldwideorg/OneJA-Bot/issues/10457) ([1375314](https://github.com/jaworldwideorg/OneJA-Bot/commit/1375314))
* **misc**: Better-auth fallback next-auth providers env, closes [#10459](https://github.com/jaworldwideorg/OneJA-Bot/issues/10459) ([e167075](https://github.com/jaworldwideorg/OneJA-Bot/commit/e167075))
* **misc**: Filter out file with `sourceType` = `file`, closes [#10474](https://github.com/jaworldwideorg/OneJA-Bot/issues/10474) ([e1c99a0](https://github.com/jaworldwideorg/OneJA-Bot/commit/e1c99a0))
* **misc**: Implement uniform callback URL for SSO providers, closes [#10479](https://github.com/jaworldwideorg/OneJA-Bot/issues/10479) ([74554c6](https://github.com/jaworldwideorg/OneJA-Bot/commit/74554c6))

#### Styles

* **misc**: Update i18n, closes [#10466](https://github.com/jaworldwideorg/OneJA-Bot/issues/10466) ([37bd67a](https://github.com/jaworldwideorg/OneJA-Bot/commit/37bd67a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-11-28 10:50:12 +00:00
Jamie Stivala 322ef4cf1e Merge remote-tracking branch 'origin/main' 2025-11-28 11:38:16 +01:00
Jamie Stivala 792f19c2cf Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
2025-11-28 11:37:34 +01:00
GH Action - Upstream Sync 7ed3bd2f5f Merge branch 'next' of https://github.com/lobehub/lobe-chat 2025-11-27 12:12:20 +00:00
Jamie Stivala d2813b60f0 🔧 chore: Update release-docker.yml with new registry URL, image, and credentials configuration 2025-11-27 10:05:05 +01:00
lobehubbot 0e24de4e27 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-27 08:57:43 +00:00
semantic-release-bot 2b9b853951 🔖 chore(release): v1.139.0 [skip ci]
## [Version&nbsp;1.139.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.138.0...v1.139.0)
<sup>Released on **2025-11-27**</sup>

####  Features

- **misc**: Bedrock claude model thinking support, support nano banana pro.

#### 🐛 Bug Fixes

- **misc**: Fixed the agent settings plugins pages error problem, improve topic item interaction and editing behavior, Showing compatibility with both new and old versions of Plugins, slove the publish to market the agent config error, try to fix “TypeError: Response body object should not be disturbed or locked”.

#### 💄 Styles

- **misc**: Add image aspect ratio and resolution settings for Nano Banana Pro, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Bedrock claude model thinking support, closes [#10422](https://github.com/jaworldwideorg/OneJA-Bot/issues/10422) ([8b41638](https://github.com/jaworldwideorg/OneJA-Bot/commit/8b41638))
* **misc**: Support nano banana pro, closes [#10413](https://github.com/jaworldwideorg/OneJA-Bot/issues/10413) ([a93cfcd](https://github.com/jaworldwideorg/OneJA-Bot/commit/a93cfcd))

#### What's fixed

* **misc**: Fixed the agent settings plugins pages error problem, closes [#10437](https://github.com/jaworldwideorg/OneJA-Bot/issues/10437) ([c58f37a](https://github.com/jaworldwideorg/OneJA-Bot/commit/c58f37a))
* **misc**: Improve topic item interaction and editing behavior, closes [#10409](https://github.com/jaworldwideorg/OneJA-Bot/issues/10409) ([85b45cb](https://github.com/jaworldwideorg/OneJA-Bot/commit/85b45cb))
* **misc**: Showing compatibility with both new and old versions of Plugins, closes [#10418](https://github.com/jaworldwideorg/OneJA-Bot/issues/10418) ([64af7b1](https://github.com/jaworldwideorg/OneJA-Bot/commit/64af7b1))
* **misc**: Slove the publish to market the agent config error, closes [#10440](https://github.com/jaworldwideorg/OneJA-Bot/issues/10440) ([fda8119](https://github.com/jaworldwideorg/OneJA-Bot/commit/fda8119))
* **misc**: Try to fix “TypeError: Response body object should not be disturbed or locked”, closes [#10321](https://github.com/jaworldwideorg/OneJA-Bot/issues/10321) ([a547e9e](https://github.com/jaworldwideorg/OneJA-Bot/commit/a547e9e))

#### Styles

* **misc**: Add image aspect ratio and resolution settings for Nano Banana Pro, closes [#10430](https://github.com/jaworldwideorg/OneJA-Bot/issues/10430) ([a197b4b](https://github.com/jaworldwideorg/OneJA-Bot/commit/a197b4b))
* **misc**: Update i18n, closes [#10445](https://github.com/jaworldwideorg/OneJA-Bot/issues/10445) ([4942bc9](https://github.com/jaworldwideorg/OneJA-Bot/commit/4942bc9))
* **misc**: Update i18n, closes [#10405](https://github.com/jaworldwideorg/OneJA-Bot/issues/10405) ([fb8f977](https://github.com/jaworldwideorg/OneJA-Bot/commit/fb8f977))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-11-27 08:57:17 +00:00
Jamie Stivala ca97c393d4 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
2025-11-27 09:44:50 +01:00
lobehubbot f4102ca561 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-25 12:12:38 +00:00
semantic-release-bot 1347825cb4 🔖 chore(release): v1.138.0 [skip ci]
## [Version&nbsp;1.138.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.137.0...v1.138.0)
<sup>Released on **2025-11-25**</sup>

#### ♻ Code Refactoring

- **misc**: Optimize files schema definition, refactor chat selectors, refactor Conversation to ChatList.

####  Features

- **misc**: Add Claude Opus 4.5 model, Add nano-banana-pro model support and optimization, Add new provider ZenMux & Gemini 3 Pro Image Preview, add Security Blacklist for agent runtime, New API support switch Responses API mode, refactor to use kb search tool, support bedrok prompt cache and usage compute, support Command Menu (CMD + J), support gemini 3.0 tools calling, support user abort in the agent runtime.

#### 🐛 Bug Fixes

- **operation**: Isolate loading state to current active topic.
- **misc**: Fix db migration snapshot not align with db schema, fix noisy error notification, fixed  changelog pages and open again, fixed the hydrated false problem, fixed the knowledge files cant open error, fixed the pinned session not work, fixed the topic link dropdown error, fixed when desktop userId was change manytimes the aimodel not right, Gemini 3 Pro does not display thought summaries, hide ai image config item in settings category, provider settings button unable to redirect, Separate agent file injection from knowledge base RAG search, slove discover pagination router.

#### 💄 Styles

- **misc**: Add Gemini 3.0 Pro Preview to Google Provider, Add hyperlink to each topic & pinned agent, add Kimi K2 Thinking to Qwen Provider, extract StatusIndicator component and improve tools display, Fix some translations, Fully support Gemini 3.0 model, optimize nana banana pro error message, remove debug console logs and add loading state, support ContextMenu on ChatItem, update i18n, update i18n, update i18n, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Optimize files schema definition, closes [#10403](https://github.com/jaworldwideorg/OneJA-Bot/issues/10403) ([cf28c87](https://github.com/jaworldwideorg/OneJA-Bot/commit/cf28c87))
* **misc**: Refactor chat selectors, closes [#10274](https://github.com/jaworldwideorg/OneJA-Bot/issues/10274) ([0a056f3](https://github.com/jaworldwideorg/OneJA-Bot/commit/0a056f3))
* **misc**: Refactor Conversation to ChatList, closes [#10330](https://github.com/jaworldwideorg/OneJA-Bot/issues/10330) ([bca70e2](https://github.com/jaworldwideorg/OneJA-Bot/commit/bca70e2))

#### What's improved

* **misc**: Add Claude Opus 4.5 model, closes [#10406](https://github.com/jaworldwideorg/OneJA-Bot/issues/10406) ([042005a](https://github.com/jaworldwideorg/OneJA-Bot/commit/042005a))
* **misc**: Add nano-banana-pro model support and optimization, closes [#10376](https://github.com/jaworldwideorg/OneJA-Bot/issues/10376) ([5349bdc](https://github.com/jaworldwideorg/OneJA-Bot/commit/5349bdc))
* **misc**: Add new provider ZenMux & Gemini 3 Pro Image Preview, closes [#10310](https://github.com/jaworldwideorg/OneJA-Bot/issues/10310) ([f2291e4](https://github.com/jaworldwideorg/OneJA-Bot/commit/f2291e4))
* **misc**: Add Security Blacklist for agent runtime, closes [#10325](https://github.com/jaworldwideorg/OneJA-Bot/issues/10325) ([deab4d0](https://github.com/jaworldwideorg/OneJA-Bot/commit/deab4d0))
* **misc**: New API support switch Responses API mode, closes [#9776](https://github.com/jaworldwideorg/OneJA-Bot/issues/9776) [#9916](https://github.com/jaworldwideorg/OneJA-Bot/issues/9916) [#9997](https://github.com/jaworldwideorg/OneJA-Bot/issues/9997) [#9916](https://github.com/jaworldwideorg/OneJA-Bot/issues/9916) ([d0ee3df](https://github.com/jaworldwideorg/OneJA-Bot/commit/d0ee3df))
* **misc**: Refactor to use kb search tool, closes [#10340](https://github.com/jaworldwideorg/OneJA-Bot/issues/10340) ([291ff3c](https://github.com/jaworldwideorg/OneJA-Bot/commit/291ff3c))
* **misc**: Support bedrok prompt cache and usage compute, closes [#10337](https://github.com/jaworldwideorg/OneJA-Bot/issues/10337) ([beb9471](https://github.com/jaworldwideorg/OneJA-Bot/commit/beb9471))
* **misc**: Support Command Menu (CMD + J), closes [#10271](https://github.com/jaworldwideorg/OneJA-Bot/issues/10271) ([a9aed0b](https://github.com/jaworldwideorg/OneJA-Bot/commit/a9aed0b))
* **misc**: Support gemini 3.0 tools calling, closes [#10301](https://github.com/jaworldwideorg/OneJA-Bot/issues/10301) ([7114fc1](https://github.com/jaworldwideorg/OneJA-Bot/commit/7114fc1))
* **misc**: Support user abort in the agent runtime, closes [#10289](https://github.com/jaworldwideorg/OneJA-Bot/issues/10289) ([0925069](https://github.com/jaworldwideorg/OneJA-Bot/commit/0925069))

#### What's fixed

* **operation**: Isolate loading state to current active topic, closes [#10360](https://github.com/jaworldwideorg/OneJA-Bot/issues/10360) ([c568369](https://github.com/jaworldwideorg/OneJA-Bot/commit/c568369))
* **misc**: Fix db migration snapshot not align with db schema, closes [#10399](https://github.com/jaworldwideorg/OneJA-Bot/issues/10399) ([760105a](https://github.com/jaworldwideorg/OneJA-Bot/commit/760105a))
* **misc**: Fix noisy error notification, closes [#10286](https://github.com/jaworldwideorg/OneJA-Bot/issues/10286) ([9ea680c](https://github.com/jaworldwideorg/OneJA-Bot/commit/9ea680c))
* **misc**: Fixed  changelog pages and open again, closes [#10285](https://github.com/jaworldwideorg/OneJA-Bot/issues/10285) ([871d141](https://github.com/jaworldwideorg/OneJA-Bot/commit/871d141))
* **misc**: Fixed the hydrated false problem, closes [#10308](https://github.com/jaworldwideorg/OneJA-Bot/issues/10308) ([340aa2a](https://github.com/jaworldwideorg/OneJA-Bot/commit/340aa2a))
* **misc**: Fixed the knowledge files cant open error, closes [#10386](https://github.com/jaworldwideorg/OneJA-Bot/issues/10386) ([8104c77](https://github.com/jaworldwideorg/OneJA-Bot/commit/8104c77))
* **misc**: Fixed the pinned session not work, closes [#10323](https://github.com/jaworldwideorg/OneJA-Bot/issues/10323) ([224f999](https://github.com/jaworldwideorg/OneJA-Bot/commit/224f999))
* **misc**: Fixed the topic link dropdown error, closes [#10408](https://github.com/jaworldwideorg/OneJA-Bot/issues/10408) ([864e3d5](https://github.com/jaworldwideorg/OneJA-Bot/commit/864e3d5))
* **misc**: Fixed when desktop userId was change manytimes the aimodel not right, closes [#10389](https://github.com/jaworldwideorg/OneJA-Bot/issues/10389) ([3ed8153](https://github.com/jaworldwideorg/OneJA-Bot/commit/3ed8153))
* **misc**: Gemini 3 Pro does not display thought summaries, closes [#10345](https://github.com/jaworldwideorg/OneJA-Bot/issues/10345) ([89e296a](https://github.com/jaworldwideorg/OneJA-Bot/commit/89e296a))
* **misc**: Hide ai image config item in settings category, closes [#10066](https://github.com/jaworldwideorg/OneJA-Bot/issues/10066) ([90354eb](https://github.com/jaworldwideorg/OneJA-Bot/commit/90354eb))
* **misc**: Provider settings button unable to redirect, closes [#10319](https://github.com/jaworldwideorg/OneJA-Bot/issues/10319) ([e025fec](https://github.com/jaworldwideorg/OneJA-Bot/commit/e025fec))
* **misc**: Separate agent file injection from knowledge base RAG search, closes [#10398](https://github.com/jaworldwideorg/OneJA-Bot/issues/10398) ([e1c813a](https://github.com/jaworldwideorg/OneJA-Bot/commit/e1c813a))
* **misc**: Slove discover pagination router, closes [#10294](https://github.com/jaworldwideorg/OneJA-Bot/issues/10294) ([fcda0b5](https://github.com/jaworldwideorg/OneJA-Bot/commit/fcda0b5))

#### Styles

* **misc**: Add Gemini 3.0 Pro Preview to Google Provider, closes [#10290](https://github.com/jaworldwideorg/OneJA-Bot/issues/10290) ([25c4358](https://github.com/jaworldwideorg/OneJA-Bot/commit/25c4358))
* **misc**: Add hyperlink to each topic & pinned agent, closes [#10367](https://github.com/jaworldwideorg/OneJA-Bot/issues/10367) ([63e4b3d](https://github.com/jaworldwideorg/OneJA-Bot/commit/63e4b3d))
* **misc**: Add Kimi K2 Thinking to Qwen Provider, closes [#10287](https://github.com/jaworldwideorg/OneJA-Bot/issues/10287) ([bd2e838](https://github.com/jaworldwideorg/OneJA-Bot/commit/bd2e838))
* **misc**: Extract StatusIndicator component and improve tools display, closes [#10311](https://github.com/jaworldwideorg/OneJA-Bot/issues/10311) ([b5ae53a](https://github.com/jaworldwideorg/OneJA-Bot/commit/b5ae53a))
* **misc**: Fix some translations, closes [#10343](https://github.com/jaworldwideorg/OneJA-Bot/issues/10343) ([ed193e0](https://github.com/jaworldwideorg/OneJA-Bot/commit/ed193e0))
* **misc**: Fully support Gemini 3.0 model, closes [#10292](https://github.com/jaworldwideorg/OneJA-Bot/issues/10292) ([6545ef8](https://github.com/jaworldwideorg/OneJA-Bot/commit/6545ef8))
* **misc**: Optimize nana banana pro error message, closes [#10378](https://github.com/jaworldwideorg/OneJA-Bot/issues/10378) ([cb34757](https://github.com/jaworldwideorg/OneJA-Bot/commit/cb34757))
* **misc**: Remove debug console logs and add loading state, closes [#10314](https://github.com/jaworldwideorg/OneJA-Bot/issues/10314) ([094cdff](https://github.com/jaworldwideorg/OneJA-Bot/commit/094cdff))
* **misc**: Support ContextMenu on ChatItem, closes [#9034](https://github.com/jaworldwideorg/OneJA-Bot/issues/9034) ([27c1154](https://github.com/jaworldwideorg/OneJA-Bot/commit/27c1154))
* **misc**: Update i18n, closes [#10368](https://github.com/jaworldwideorg/OneJA-Bot/issues/10368) ([ed707af](https://github.com/jaworldwideorg/OneJA-Bot/commit/ed707af))
* **misc**: Update i18n, closes [#10349](https://github.com/jaworldwideorg/OneJA-Bot/issues/10349) ([3482d38](https://github.com/jaworldwideorg/OneJA-Bot/commit/3482d38))
* **misc**: Update i18n, closes [#10338](https://github.com/jaworldwideorg/OneJA-Bot/issues/10338) ([9c8cf81](https://github.com/jaworldwideorg/OneJA-Bot/commit/9c8cf81))
* **misc**: Update i18n, closes [#10317](https://github.com/jaworldwideorg/OneJA-Bot/issues/10317) ([8fb9890](https://github.com/jaworldwideorg/OneJA-Bot/commit/8fb9890))
* **misc**: Update i18n, closes [#10291](https://github.com/jaworldwideorg/OneJA-Bot/issues/10291) ([1c9f0d9](https://github.com/jaworldwideorg/OneJA-Bot/commit/1c9f0d9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-11-25 12:11:30 +00:00
Jamie Stivala 225aef2914 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	.github/workflows/sync.yml
#	CHANGELOG.md
#	changelog/v1.json
2025-11-25 12:58:40 +01:00
lobehubbot 4a5c40ca6e 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-18 11:30:42 +00:00
semantic-release-bot 8c95cecc02 🔖 chore(release): v1.137.0 [skip ci]
## [Version&nbsp;1.137.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.136.0...v1.137.0)
<sup>Released on **2025-11-18**</sup>

#### ♻ Code Refactoring

- **misc**: Delete /settings/newapi pages in nextjs build, refactor package types, refactor to virtua, remove `language_model_settings` and remove isDeprecatedEdition.

####  Features

- **misc**: Edit local file render & intervention, show orphaned tool message and support delete tool message, support DeepSeek Interleaved thinking, Support Interleaved thinking in MiniMax, support parallel topic agent runtime, support to collapse message.

#### 🐛 Bug Fixes

- **next16**: Resolve 'Response body object should not be disturbed or locked' error.
- **misc**: Fix desktop user panel, fixed the discover page categray sider link error, Reduce threshold, slove when logout always show loading, the tool to fail execution on ollama when a message contains b….

#### 💄 Styles

- **misc**: Add model information for the Qiniu provider, revert background style, update i18n, update i18n, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Delete /settings/newapi pages in nextjs build, closes [#10278](https://github.com/jaworldwideorg/OneJA-Bot/issues/10278) ([9d06753](https://github.com/jaworldwideorg/OneJA-Bot/commit/9d06753))
* **misc**: Refactor package types, closes [#10233](https://github.com/jaworldwideorg/OneJA-Bot/issues/10233) ([9872409](https://github.com/jaworldwideorg/OneJA-Bot/commit/9872409))
* **misc**: Refactor to virtua, closes [#10151](https://github.com/jaworldwideorg/OneJA-Bot/issues/10151) ([9ffb689](https://github.com/jaworldwideorg/OneJA-Bot/commit/9ffb689))
* **misc**: Remove `language_model_settings` and remove isDeprecatedEdition, closes [#10264](https://github.com/jaworldwideorg/OneJA-Bot/issues/10264) ([ae613c7](https://github.com/jaworldwideorg/OneJA-Bot/commit/ae613c7))

#### What's improved

* **misc**: Edit local file render & intervention, closes [#10269](https://github.com/jaworldwideorg/OneJA-Bot/issues/10269) ([3785a71](https://github.com/jaworldwideorg/OneJA-Bot/commit/3785a71))
* **misc**: Show orphaned tool message and support delete tool message, closes [#10232](https://github.com/jaworldwideorg/OneJA-Bot/issues/10232) ([38cfd26](https://github.com/jaworldwideorg/OneJA-Bot/commit/38cfd26))
* **misc**: Support DeepSeek Interleaved thinking, closes [#10219](https://github.com/jaworldwideorg/OneJA-Bot/issues/10219) ([3736a85](https://github.com/jaworldwideorg/OneJA-Bot/commit/3736a85))
* **misc**: Support Interleaved thinking in MiniMax, closes [#10255](https://github.com/jaworldwideorg/OneJA-Bot/issues/10255) ([13ca8e1](https://github.com/jaworldwideorg/OneJA-Bot/commit/13ca8e1))
* **misc**: Support parallel topic agent runtime, closes [#10273](https://github.com/jaworldwideorg/OneJA-Bot/issues/10273) ([02eba3c](https://github.com/jaworldwideorg/OneJA-Bot/commit/02eba3c))
* **misc**: Support to collapse message, closes [#10234](https://github.com/jaworldwideorg/OneJA-Bot/issues/10234) ([4cd6347](https://github.com/jaworldwideorg/OneJA-Bot/commit/4cd6347))

#### What's fixed

* **next16**: Resolve 'Response body object should not be disturbed or locked' error, closes [#10226](https://github.com/jaworldwideorg/OneJA-Bot/issues/10226) ([caa9c78](https://github.com/jaworldwideorg/OneJA-Bot/commit/caa9c78))
* **misc**: Fix desktop user panel, closes [#10272](https://github.com/jaworldwideorg/OneJA-Bot/issues/10272) ([6a374d2](https://github.com/jaworldwideorg/OneJA-Bot/commit/6a374d2))
* **misc**: Fixed the discover page categray sider link error, closes [#10282](https://github.com/jaworldwideorg/OneJA-Bot/issues/10282) ([39e8819](https://github.com/jaworldwideorg/OneJA-Bot/commit/39e8819))
* **misc**: Reduce threshold, closes [#10222](https://github.com/jaworldwideorg/OneJA-Bot/issues/10222) ([abdfd06](https://github.com/jaworldwideorg/OneJA-Bot/commit/abdfd06))
* **misc**: Slove when logout always show loading, closes [#10284](https://github.com/jaworldwideorg/OneJA-Bot/issues/10284) ([d91fb73](https://github.com/jaworldwideorg/OneJA-Bot/commit/d91fb73))
* **misc**: The tool to fail execution on ollama when a message contains b…, closes [#10259](https://github.com/jaworldwideorg/OneJA-Bot/issues/10259) ([1ad8080](https://github.com/jaworldwideorg/OneJA-Bot/commit/1ad8080))

#### Styles

* **misc**: Add model information for the Qiniu provider, closes [#10270](https://github.com/jaworldwideorg/OneJA-Bot/issues/10270) ([06af793](https://github.com/jaworldwideorg/OneJA-Bot/commit/06af793))
* **misc**: Revert background style, closes [#10218](https://github.com/jaworldwideorg/OneJA-Bot/issues/10218) ([97b0413](https://github.com/jaworldwideorg/OneJA-Bot/commit/97b0413))
* **misc**: Update i18n, closes [#10277](https://github.com/jaworldwideorg/OneJA-Bot/issues/10277) ([7563b62](https://github.com/jaworldwideorg/OneJA-Bot/commit/7563b62))
* **misc**: Update i18n, closes [#10235](https://github.com/jaworldwideorg/OneJA-Bot/issues/10235) ([a52c9e5](https://github.com/jaworldwideorg/OneJA-Bot/commit/a52c9e5))
* **misc**: Update i18n, closes [#10224](https://github.com/jaworldwideorg/OneJA-Bot/issues/10224) ([ca7551f](https://github.com/jaworldwideorg/OneJA-Bot/commit/ca7551f))
* **misc**: Update i18n, closes [#10205](https://github.com/jaworldwideorg/OneJA-Bot/issues/10205) ([fc57d2a](https://github.com/jaworldwideorg/OneJA-Bot/commit/fc57d2a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-11-18 11:29:51 +00:00
Jamie Stivala ce49b3daa8 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-11-18 08:17:33 -03:00
lobehubbot 9fffbed4ce 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-14 09:45:37 +00:00
semantic-release-bot 409a9fccd4 🔖 chore(release): v1.136.0 [skip ci]
## [Version&nbsp;1.136.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.135.3...v1.136.0)
<sup>Released on **2025-11-14**</sup>

#### ♻ Code Refactoring

- **misc**: Add settings (jsonb) column to `ai_models` table, edge to node runtime, enhance message router with service layer and comprehensive tests, fix thread display, Migrating Firecrawl to v2, refactor chat message model to speed up, refactor message create name, refactor services to a more clean structure, refactor trpc request to use zod schema, remove `NEXT_PUBLIC_SERVICE_MODE` env and use server by default, remove azure-ad auth provider, remove client service, remove dalle builtin plugin, remove deperated code, remove llm page, use react-router-dom change /chat page to spa mode.

####  Features

- **image**: Image model show price.
- **misc**: 2.0 next baseline, 2.0 next init, Add folder creation UI and clean up debug code, Add GPT-5.1 models, Create Pages in Knowledge Base, display assistant message in group, refactor to use agent runtime as the generation core and support branch mode, support install sreamable http mcp server on web, support tool invention, try 2.0 next, upgrade to Next 16.

#### 🐛 Bug Fixes

- **AssistantStore**: Add missing identifier parameter.
- **database**: Fix deleteMessagesBySession incorrectly deleting all messages.
- **TokenUsage**: Prevent animation when toggling between token and credit display.
- **misc**: Abnormal animation of tokens, don't include runtimeProvider in JWT for non-image operations, filter out reasoning fields from messages in ChatCompletion API, fix image prompt form, fix mcp server return image error, fix missing messages when finish runtime, fix oidc accountId mismatch, fix oidc auth timeout issue on the desktop, fix reasoning issue with claude and Response API thinking, fix regex ReDoS, fix send message, Hide marketplace link from Plugin List when market disabled, model name display in the assistant panel disappears, OIDC error when connecting to self-host instance, only include input_fidelity parameter for gpt-image-1., should install new version after quit this instance, update lost i18n files.

#### 💄 Styles

- **misc**: Add new bedrock model support, add padding to TopicList component, add pricing info for Azure GPT-5 series models, add sorting functionality for disabled models and model providers with tooltip support, fix approving render and improve Conversation style, improve built-in client OIDC user flow, improve lab style, improve oidc layout style, refactor and support move locale file intervention, smoothed model descriptions in ko-KR locales, Update ERNIE-5.0-Thinking-Preview model, update i18n, update i18n, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Add settings (jsonb) column to `ai_models` table, closes [#10042](https://github.com/jaworldwideorg/OneJA-Bot/issues/10042) ([7e1dd02](https://github.com/jaworldwideorg/OneJA-Bot/commit/7e1dd02))
* **misc**: Edge to node runtime, closes [#10149](https://github.com/jaworldwideorg/OneJA-Bot/issues/10149) ([2f4c25d](https://github.com/jaworldwideorg/OneJA-Bot/commit/2f4c25d))
* **misc**: Enhance message router with service layer and comprehensive tests, closes [#10056](https://github.com/jaworldwideorg/OneJA-Bot/issues/10056) ([62110e0](https://github.com/jaworldwideorg/OneJA-Bot/commit/62110e0))
* **misc**: Fix thread display, closes [#10153](https://github.com/jaworldwideorg/OneJA-Bot/issues/10153) ([8fda83e](https://github.com/jaworldwideorg/OneJA-Bot/commit/8fda83e))
* **misc**: Migrating Firecrawl to v2, closes [#9850](https://github.com/jaworldwideorg/OneJA-Bot/issues/9850) ([efb4c22](https://github.com/jaworldwideorg/OneJA-Bot/commit/efb4c22))
* **misc**: Refactor chat message model to speed up, closes [#10053](https://github.com/jaworldwideorg/OneJA-Bot/issues/10053) ([035994f](https://github.com/jaworldwideorg/OneJA-Bot/commit/035994f))
* **misc**: Refactor message create name, closes [#10074](https://github.com/jaworldwideorg/OneJA-Bot/issues/10074) ([08ec29f](https://github.com/jaworldwideorg/OneJA-Bot/commit/08ec29f))
* **misc**: Refactor services to a more clean structure, closes [#10050](https://github.com/jaworldwideorg/OneJA-Bot/issues/10050) ([de61dfa](https://github.com/jaworldwideorg/OneJA-Bot/commit/de61dfa))
* **misc**: Refactor trpc request to use zod schema, closes [#10016](https://github.com/jaworldwideorg/OneJA-Bot/issues/10016) ([1a84f2c](https://github.com/jaworldwideorg/OneJA-Bot/commit/1a84f2c))
* **misc**: Remove `NEXT_PUBLIC_SERVICE_MODE` env and use server by default, closes [#10017](https://github.com/jaworldwideorg/OneJA-Bot/issues/10017) ([f2ab2fc](https://github.com/jaworldwideorg/OneJA-Bot/commit/f2ab2fc))
* **misc**: Remove azure-ad auth provider, closes [#9942](https://github.com/jaworldwideorg/OneJA-Bot/issues/9942) ([103c4d7](https://github.com/jaworldwideorg/OneJA-Bot/commit/103c4d7))
* **misc**: Remove client service, closes [#9991](https://github.com/jaworldwideorg/OneJA-Bot/issues/9991) ([9137dba](https://github.com/jaworldwideorg/OneJA-Bot/commit/9137dba))
* **misc**: Remove dalle builtin plugin, closes [#9952](https://github.com/jaworldwideorg/OneJA-Bot/issues/9952) ([2d4d70a](https://github.com/jaworldwideorg/OneJA-Bot/commit/2d4d70a))
* **misc**: Remove deperated code, closes [#10001](https://github.com/jaworldwideorg/OneJA-Bot/issues/10001) ([4ee4590](https://github.com/jaworldwideorg/OneJA-Bot/commit/4ee4590))
* **misc**: Remove llm page, closes [#9940](https://github.com/jaworldwideorg/OneJA-Bot/issues/9940) ([6ec01a3](https://github.com/jaworldwideorg/OneJA-Bot/commit/6ec01a3))
* **misc**: Use react-router-dom change /chat page to spa mode, closes [#10077](https://github.com/jaworldwideorg/OneJA-Bot/issues/10077) ([9154606](https://github.com/jaworldwideorg/OneJA-Bot/commit/9154606))

#### What's improved

* **image**: Image model show price, closes [#10198](https://github.com/jaworldwideorg/OneJA-Bot/issues/10198) ([b87e0e4](https://github.com/jaworldwideorg/OneJA-Bot/commit/b87e0e4))
* **misc**: 2.0 next baseline ([8c57dfd](https://github.com/jaworldwideorg/OneJA-Bot/commit/8c57dfd))
* **misc**: 2.0 next init ([26daac5](https://github.com/jaworldwideorg/OneJA-Bot/commit/26daac5))
* **misc**: Add folder creation UI and clean up debug code ([d5ecd0a](https://github.com/jaworldwideorg/OneJA-Bot/commit/d5ecd0a))
* **misc**: Add GPT-5.1 models, closes [#10206](https://github.com/jaworldwideorg/OneJA-Bot/issues/10206) ([afd3a47](https://github.com/jaworldwideorg/OneJA-Bot/commit/afd3a47))
* **misc**: Create Pages in Knowledge Base, closes [#9895](https://github.com/jaworldwideorg/OneJA-Bot/issues/9895) ([f46edeb](https://github.com/jaworldwideorg/OneJA-Bot/commit/f46edeb))
* **misc**: Display assistant message in group, closes [#9941](https://github.com/jaworldwideorg/OneJA-Bot/issues/9941) ([59b6ac3](https://github.com/jaworldwideorg/OneJA-Bot/commit/59b6ac3))
* **misc**: Refactor to use agent runtime as the generation core and support branch mode, closes [#10080](https://github.com/jaworldwideorg/OneJA-Bot/issues/10080) ([b95e741](https://github.com/jaworldwideorg/OneJA-Bot/commit/b95e741))
* **misc**: Support install sreamable http mcp server on web, closes [#10044](https://github.com/jaworldwideorg/OneJA-Bot/issues/10044) [#9916](https://github.com/jaworldwideorg/OneJA-Bot/issues/9916) ([85454c5](https://github.com/jaworldwideorg/OneJA-Bot/commit/85454c5))
* **misc**: Support tool invention, closes [#10182](https://github.com/jaworldwideorg/OneJA-Bot/issues/10182) ([4dca708](https://github.com/jaworldwideorg/OneJA-Bot/commit/4dca708))
* **misc**: Try 2.0 next ([e0af4e6](https://github.com/jaworldwideorg/OneJA-Bot/commit/e0af4e6))
* **misc**: Upgrade to Next 16, closes [#9851](https://github.com/jaworldwideorg/OneJA-Bot/issues/9851) ([abb71ec](https://github.com/jaworldwideorg/OneJA-Bot/commit/abb71ec))

#### What's fixed

* **AssistantStore**: Add missing identifier parameter, closes [#9948](https://github.com/jaworldwideorg/OneJA-Bot/issues/9948) ([2e40855](https://github.com/jaworldwideorg/OneJA-Bot/commit/2e40855))
* **database**: Fix deleteMessagesBySession incorrectly deleting all messages, closes [#10110](https://github.com/jaworldwideorg/OneJA-Bot/issues/10110) ([1d7f67d](https://github.com/jaworldwideorg/OneJA-Bot/commit/1d7f67d))
* **TokenUsage**: Prevent animation when toggling between token and credit display, closes [#10098](https://github.com/jaworldwideorg/OneJA-Bot/issues/10098) ([f20a910](https://github.com/jaworldwideorg/OneJA-Bot/commit/f20a910))
* **misc**: Abnormal animation of tokens, closes [#10106](https://github.com/jaworldwideorg/OneJA-Bot/issues/10106) ([129df7b](https://github.com/jaworldwideorg/OneJA-Bot/commit/129df7b))
* **misc**: Don't include runtimeProvider in JWT for non-image operations, closes [#9959](https://github.com/jaworldwideorg/OneJA-Bot/issues/9959) [#9569](https://github.com/jaworldwideorg/OneJA-Bot/issues/9569) ([b8f25de](https://github.com/jaworldwideorg/OneJA-Bot/commit/b8f25de))
* **misc**: Filter out reasoning fields from messages in ChatCompletion API, closes [#10203](https://github.com/jaworldwideorg/OneJA-Bot/issues/10203) [#10193](https://github.com/jaworldwideorg/OneJA-Bot/issues/10193) ([5f28b2c](https://github.com/jaworldwideorg/OneJA-Bot/commit/5f28b2c))
* **misc**: Fix image prompt form, closes [#9995](https://github.com/jaworldwideorg/OneJA-Bot/issues/9995) ([799e6fd](https://github.com/jaworldwideorg/OneJA-Bot/commit/799e6fd))
* **misc**: Fix mcp server return image error, closes [#10113](https://github.com/jaworldwideorg/OneJA-Bot/issues/10113) ([e5640d4](https://github.com/jaworldwideorg/OneJA-Bot/commit/e5640d4))
* **misc**: Fix missing messages when finish runtime, closes [#10138](https://github.com/jaworldwideorg/OneJA-Bot/issues/10138) ([b94d477](https://github.com/jaworldwideorg/OneJA-Bot/commit/b94d477))
* **misc**: Fix oidc accountId mismatch, closes [#10058](https://github.com/jaworldwideorg/OneJA-Bot/issues/10058) ([0692ba7](https://github.com/jaworldwideorg/OneJA-Bot/commit/0692ba7))
* **misc**: Fix oidc auth timeout issue on the desktop, closes [#10025](https://github.com/jaworldwideorg/OneJA-Bot/issues/10025) ([20666db](https://github.com/jaworldwideorg/OneJA-Bot/commit/20666db))
* **misc**: Fix reasoning issue with claude and Response API thinking, closes [#10147](https://github.com/jaworldwideorg/OneJA-Bot/issues/10147) ([cf6bd53](https://github.com/jaworldwideorg/OneJA-Bot/commit/cf6bd53))
* **misc**: Fix regex ReDoS, closes [#10012](https://github.com/jaworldwideorg/OneJA-Bot/issues/10012) ([1d8d5cd](https://github.com/jaworldwideorg/OneJA-Bot/commit/1d8d5cd))
* **misc**: Fix send message, closes [#10041](https://github.com/jaworldwideorg/OneJA-Bot/issues/10041) [#9984](https://github.com/jaworldwideorg/OneJA-Bot/issues/9984) ([7cca60f](https://github.com/jaworldwideorg/OneJA-Bot/commit/7cca60f))
* **misc**: Hide marketplace link from Plugin List when market disabled, closes [#9929](https://github.com/jaworldwideorg/OneJA-Bot/issues/9929) ([e303979](https://github.com/jaworldwideorg/OneJA-Bot/commit/e303979))
* **misc**: Model name display in the assistant panel disappears, closes [#9830](https://github.com/jaworldwideorg/OneJA-Bot/issues/9830) ([54f4e18](https://github.com/jaworldwideorg/OneJA-Bot/commit/54f4e18))
* **misc**: OIDC error when connecting to self-host instance, closes [#9916](https://github.com/jaworldwideorg/OneJA-Bot/issues/9916) ([7a2ca19](https://github.com/jaworldwideorg/OneJA-Bot/commit/7a2ca19))
* **misc**: Only include input_fidelity parameter for gpt-image-1., closes [#9920](https://github.com/jaworldwideorg/OneJA-Bot/issues/9920) ([65dbc63](https://github.com/jaworldwideorg/OneJA-Bot/commit/65dbc63))
* **misc**: Should install new version after quit this instance, closes [#10064](https://github.com/jaworldwideorg/OneJA-Bot/issues/10064) ([9ab77b2](https://github.com/jaworldwideorg/OneJA-Bot/commit/9ab77b2))
* **misc**: Update lost i18n files, closes [#10179](https://github.com/jaworldwideorg/OneJA-Bot/issues/10179) ([b69c7ff](https://github.com/jaworldwideorg/OneJA-Bot/commit/b69c7ff))

#### Styles

* **misc**: Add new bedrock model support, closes [#9826](https://github.com/jaworldwideorg/OneJA-Bot/issues/9826) ([1b8a981](https://github.com/jaworldwideorg/OneJA-Bot/commit/1b8a981))
* **misc**: Add padding to TopicList component, closes [#9994](https://github.com/jaworldwideorg/OneJA-Bot/issues/9994) ([c1e7381](https://github.com/jaworldwideorg/OneJA-Bot/commit/c1e7381))
* **misc**: Add pricing info for Azure GPT-5 series models, closes [#9833](https://github.com/jaworldwideorg/OneJA-Bot/issues/9833) ([39a80c5](https://github.com/jaworldwideorg/OneJA-Bot/commit/39a80c5))
* **misc**: Add sorting functionality for disabled models and model providers with tooltip support, closes [#10000](https://github.com/jaworldwideorg/OneJA-Bot/issues/10000) ([68e98b1](https://github.com/jaworldwideorg/OneJA-Bot/commit/68e98b1))
* **misc**: Fix approving render and improve Conversation style, closes [#10210](https://github.com/jaworldwideorg/OneJA-Bot/issues/10210) ([841b7f1](https://github.com/jaworldwideorg/OneJA-Bot/commit/841b7f1))
* **misc**: Improve built-in client OIDC user flow, closes [#10020](https://github.com/jaworldwideorg/OneJA-Bot/issues/10020) ([80202ed](https://github.com/jaworldwideorg/OneJA-Bot/commit/80202ed))
* **misc**: Improve lab style, closes [#10040](https://github.com/jaworldwideorg/OneJA-Bot/issues/10040) ([bbf1c0b](https://github.com/jaworldwideorg/OneJA-Bot/commit/bbf1c0b))
* **misc**: Improve oidc layout style, closes [#10023](https://github.com/jaworldwideorg/OneJA-Bot/issues/10023) ([5008be7](https://github.com/jaworldwideorg/OneJA-Bot/commit/5008be7))
* **misc**: Refactor and support move locale file intervention, closes [#10213](https://github.com/jaworldwideorg/OneJA-Bot/issues/10213) ([63cac81](https://github.com/jaworldwideorg/OneJA-Bot/commit/63cac81))
* **misc**: Smoothed model descriptions in ko-KR locales, closes [#9998](https://github.com/jaworldwideorg/OneJA-Bot/issues/9998) ([fde1d8b](https://github.com/jaworldwideorg/OneJA-Bot/commit/fde1d8b))
* **misc**: Update ERNIE-5.0-Thinking-Preview model, closes [#10196](https://github.com/jaworldwideorg/OneJA-Bot/issues/10196) ([89f3eed](https://github.com/jaworldwideorg/OneJA-Bot/commit/89f3eed))
* **misc**: Update i18n, closes [#10116](https://github.com/jaworldwideorg/OneJA-Bot/issues/10116) ([766772e](https://github.com/jaworldwideorg/OneJA-Bot/commit/766772e))
* **misc**: Update i18n, closes [#10100](https://github.com/jaworldwideorg/OneJA-Bot/issues/10100) ([deb6b5e](https://github.com/jaworldwideorg/OneJA-Bot/commit/deb6b5e))
* **misc**: Update i18n, closes [#9958](https://github.com/jaworldwideorg/OneJA-Bot/issues/9958) ([f49996c](https://github.com/jaworldwideorg/OneJA-Bot/commit/f49996c))
* **misc**: Update i18n, closes [#9944](https://github.com/jaworldwideorg/OneJA-Bot/issues/9944) ([3a6468f](https://github.com/jaworldwideorg/OneJA-Bot/commit/3a6468f))

</details>

#### 💥 BREAKING CHANGES

* **misc**: starting V2
* **misc**: starting V2

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-11-14 09:42:54 +00:00
Jamie Stivala 5af88796ad 🔧 chore: Remove unused docker-database.yml and update docker.yml with new registry details 2025-11-14 10:31:03 +01:00
Jamie Stivala a48b96aba3 Merge remote-tracking branch 'upstream/next'
# Conflicts:
#	.github/workflows/docker-database.yml
#	.releaserc.cjs
#	CHANGELOG.md
#	README.md
#	README.zh-CN.md
#	changelog/v1.json
#	package.json
2025-11-14 10:25:51 +01:00
Jamie Stivala adbf2b8742 🔄 chore: Update workflow to sync with 'next' branch of upstream 2025-11-14 10:24:21 +01:00
lobehubbot 0decbcee8a 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-03 15:42:53 +00:00
semantic-release-bot 7bf7e3a8af 🔖 chore(release): v1.135.3 [skip ci]
### [Version&nbsp;1.135.3](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.135.2...v1.135.3)
<sup>Released on **2025-11-03**</sup>

#### 🐛 Bug Fixes

- **misc**: OIDC error when connecting to self-host instance.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: OIDC error when connecting to self-host instance, closes [#9916](https://github.com/jaworldwideorg/OneJA-Bot/issues/9916) ([2e2b9c4](https://github.com/jaworldwideorg/OneJA-Bot/commit/2e2b9c4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-11-03 15:42:22 +00:00
Jamie Stivala 4115976acc Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-11-03 16:30:41 +01:00
lobehubbot 60924d7742 📝 docs(bot): Auto sync agents & plugin to readme 2025-11-02 13:49:18 +00:00
semantic-release-bot a2a097fbec 🔖 chore(release): v1.142.9 [skip ci]
### [Version&nbsp;1.142.9](https://github.com/lobehub/lobe-chat/compare/v1.142.8...v1.142.9)
<sup>Released on **2025-11-02**</sup>

#### 🐛 Bug Fixes

- **misc**: OIDC error when connecting to self-host instance.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: OIDC error when connecting to self-host instance, closes [#9916](https://github.com/lobehub/lobe-chat/issues/9916) ([2e2b9c4](https://github.com/lobehub/lobe-chat/commit/2e2b9c4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-11-02 13:47:55 +00:00
YuTengjing 197118347c 📝 docs: update ComfyUI documentation cover image URL (#9997) 2025-11-02 21:35:01 +08:00
Aloxaf 2e2b9c4c88 🐛 fix: OIDC error when connecting to self-host instance (#9916)
fix: oidc/consent redirect header
2025-10-31 00:25:21 +08:00
lobehubbot 77efdba3b7 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-29 09:55:21 +00:00
semantic-release-bot a84392450d 🔖 chore(release): v1.135.2 [skip ci]
### [Version&nbsp;1.135.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.135.1...v1.135.2)
<sup>Released on **2025-10-29**</sup>

#### ♻ Code Refactoring

- **misc**: Change files page from RSC to SPA mode to improve performance.

#### 💄 Styles

- **aihubmix**: Update extendParams to include urlContext.
- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Change files page from RSC to SPA mode to improve performance, closes [#9846](https://github.com/jaworldwideorg/OneJA-Bot/issues/9846) ([f46cc50](https://github.com/jaworldwideorg/OneJA-Bot/commit/f46cc50))

#### Styles

* **aihubmix**: Update extendParams to include urlContext, closes [#9914](https://github.com/jaworldwideorg/OneJA-Bot/issues/9914) ([5a8fd85](https://github.com/jaworldwideorg/OneJA-Bot/commit/5a8fd85))
* **misc**: Update i18n, closes [#9907](https://github.com/jaworldwideorg/OneJA-Bot/issues/9907) ([d149c4d](https://github.com/jaworldwideorg/OneJA-Bot/commit/d149c4d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-29 09:54:53 +00:00
Jamie Stivala 4f24aacc12 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-10-29 10:43:40 +01:00
lobehubbot a5aefe5ce0 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-28 12:28:50 +00:00
semantic-release-bot 8e52b1831f 🔖 chore(release): v1.135.1 [skip ci]
### [Version&nbsp;1.135.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.135.0...v1.135.1)
<sup>Released on **2025-10-28**</sup>

#### 💄 Styles

- **misc**: Add MiniMax-M2 model, Pre render ModelSwitchPanel, The error details of the connectivity check lead to a layout problem.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add MiniMax-M2 model, closes [#9897](https://github.com/jaworldwideorg/OneJA-Bot/issues/9897) ([d6fded2](https://github.com/jaworldwideorg/OneJA-Bot/commit/d6fded2))
* **misc**: Pre render ModelSwitchPanel, closes [#9499](https://github.com/jaworldwideorg/OneJA-Bot/issues/9499) ([840382b](https://github.com/jaworldwideorg/OneJA-Bot/commit/840382b))
* **misc**: The error details of the connectivity check lead to a layout problem, closes [#9872](https://github.com/jaworldwideorg/OneJA-Bot/issues/9872) ([ea42e60](https://github.com/jaworldwideorg/OneJA-Bot/commit/ea42e60))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-28 12:28:18 +00:00
Jamie Stivala 0dd2bd4bcc Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-10-28 13:17:28 +01:00
lobehubbot 303b5dfd8e 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-27 09:13:03 +00:00
semantic-release-bot a8e6f8b2fe 🔖 chore(release): v1.135.0 [skip ci]
## [Version&nbsp;1.135.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.134.0...v1.135.0)
<sup>Released on **2025-10-27**</sup>

#### ♻ Code Refactoring

- **misc**: Change discover page from RSC to SPA to improve performance.

####  Features

- **misc**: Use env to control clerk allow origin feature.

#### 🐛 Bug Fixes

- **misc**: Loadmore not work & navbar not show in pwa.

#### 💄 Styles

- **misc**: Adjust modal setting form styles for improved layout and responsiveness, Allow removal of `top_p` and similar request parameters, improve local system tools render, improve provider modal height when creating custom provider, Improvement for Agent Team After Alpha Launch [LOB-517], Unzip file when uploading in knowledge base [LOB-500], update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Change discover page from RSC to SPA to improve performance, closes [#9828](https://github.com/jaworldwideorg/OneJA-Bot/issues/9828) ([b59ee0a](https://github.com/jaworldwideorg/OneJA-Bot/commit/b59ee0a))

#### What's improved

* **misc**: Use env to control clerk allow origin feature, closes [#9863](https://github.com/jaworldwideorg/OneJA-Bot/issues/9863) ([490fee0](https://github.com/jaworldwideorg/OneJA-Bot/commit/490fee0))

#### What's fixed

* **misc**: Loadmore not work & navbar not show in pwa, closes [#9855](https://github.com/jaworldwideorg/OneJA-Bot/issues/9855) ([411f875](https://github.com/jaworldwideorg/OneJA-Bot/commit/411f875))

#### Styles

* **misc**: Adjust modal setting form styles for improved layout and responsiveness, closes [#9890](https://github.com/jaworldwideorg/OneJA-Bot/issues/9890) ([1997ec5](https://github.com/jaworldwideorg/OneJA-Bot/commit/1997ec5))
* **misc**: Allow removal of `top_p` and similar request parameters, closes [#9498](https://github.com/jaworldwideorg/OneJA-Bot/issues/9498) ([4c313ce](https://github.com/jaworldwideorg/OneJA-Bot/commit/4c313ce))
* **misc**: Improve local system tools render, closes [#9853](https://github.com/jaworldwideorg/OneJA-Bot/issues/9853) ([295e8fc](https://github.com/jaworldwideorg/OneJA-Bot/commit/295e8fc))
* **misc**: Improve provider modal height when creating custom provider, closes [#9870](https://github.com/jaworldwideorg/OneJA-Bot/issues/9870) ([55d92c0](https://github.com/jaworldwideorg/OneJA-Bot/commit/55d92c0))
* **misc**: Improvement for Agent Team After Alpha Launch [LOB-517], closes [#9748](https://github.com/jaworldwideorg/OneJA-Bot/issues/9748) ([28245be](https://github.com/jaworldwideorg/OneJA-Bot/commit/28245be))
* **misc**: Unzip file when uploading in knowledge base [LOB-500], closes [#9854](https://github.com/jaworldwideorg/OneJA-Bot/issues/9854) ([e568ce6](https://github.com/jaworldwideorg/OneJA-Bot/commit/e568ce6))
* **misc**: Update i18n, closes [#9862](https://github.com/jaworldwideorg/OneJA-Bot/issues/9862) ([8d3bc91](https://github.com/jaworldwideorg/OneJA-Bot/commit/8d3bc91))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-27 09:12:14 +00:00
Jamie Stivala 9de008667a Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
2025-10-27 09:59:25 +01:00
GH Action - Upstream Sync cb6591c5c3 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-10-22 12:12:05 +00:00
lobehubbot 6d6830477c 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-22 09:37:12 +00:00
semantic-release-bot fdfedfad21 🔖 chore(release): v1.134.0 [skip ci]
## [Version&nbsp;1.134.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.133.0...v1.134.0)
<sup>Released on **2025-10-22**</sup>

#### ♻ Code Refactoring

- **misc**: Fix model runtime cost calculate with CNY, refactor context engine.

####  Features

- **misc**: Add PDF export functionality to share modal.

#### 🐛 Bug Fixes

- **misc**: Ignore abort signal errors in TRPC client, slove when pwa user info have code cannot be viewed in full.

#### 💄 Styles

- **settings**: Broadcast locale changes and update switchLocale action.
- **misc**: Add knowledge base mansory layout [LOB-496], improve rich text link display, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Fix model runtime cost calculate with CNY, closes [#9834](https://github.com/jaworldwideorg/OneJA-Bot/issues/9834) ([2e911ea](https://github.com/jaworldwideorg/OneJA-Bot/commit/2e911ea))
* **misc**: Refactor context engine, closes [#9821](https://github.com/jaworldwideorg/OneJA-Bot/issues/9821) ([e99f12f](https://github.com/jaworldwideorg/OneJA-Bot/commit/e99f12f))

#### What's improved

* **misc**: Add PDF export functionality to share modal, closes [#9300](https://github.com/jaworldwideorg/OneJA-Bot/issues/9300) [#9299](https://github.com/jaworldwideorg/OneJA-Bot/issues/9299) ([2b7761c](https://github.com/jaworldwideorg/OneJA-Bot/commit/2b7761c))

#### What's fixed

* **misc**: Ignore abort signal errors in TRPC client, closes [#9809](https://github.com/jaworldwideorg/OneJA-Bot/issues/9809) [#9401](https://github.com/jaworldwideorg/OneJA-Bot/issues/9401) ([7f7dcfb](https://github.com/jaworldwideorg/OneJA-Bot/commit/7f7dcfb))
* **misc**: Slove when pwa user info have code cannot be viewed in full, closes [#9817](https://github.com/jaworldwideorg/OneJA-Bot/issues/9817) ([6734a47](https://github.com/jaworldwideorg/OneJA-Bot/commit/6734a47))

#### Styles

* **settings**: Broadcast locale changes and update switchLocale action, closes [#9620](https://github.com/jaworldwideorg/OneJA-Bot/issues/9620) ([0eb02ca](https://github.com/jaworldwideorg/OneJA-Bot/commit/0eb02ca))
* **misc**: Add knowledge base mansory layout [LOB-496], closes [#9722](https://github.com/jaworldwideorg/OneJA-Bot/issues/9722) ([69f21da](https://github.com/jaworldwideorg/OneJA-Bot/commit/69f21da))
* **misc**: Improve rich text link display, closes [#9816](https://github.com/jaworldwideorg/OneJA-Bot/issues/9816) ([af33543](https://github.com/jaworldwideorg/OneJA-Bot/commit/af33543))
* **misc**: Update i18n, closes [#9832](https://github.com/jaworldwideorg/OneJA-Bot/issues/9832) ([80b0999](https://github.com/jaworldwideorg/OneJA-Bot/commit/80b0999))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-22 09:35:52 +00:00
Jamie Stivala 7e1fb282db Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	.github/workflows/sync.yml
#	CHANGELOG.md
#	changelog/v1.json
2025-10-22 11:24:25 +02:00
semantic-release-bot ce961f8104 🔖 chore(release): v1.133.0 [skip ci]
## [Version&nbsp;1.133.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.132.0...v1.133.0)
<sup>Released on **2025-10-21**</sup>

#### ♻ Code Refactoring

- **i18n**: Rm qa.
- **misc**: Refactor upload router into lambda and decide to remove it in V2.

####  Features

- **misc**: Add ComfyUI integration Phase1(RFC-128), support image generation for siliconcloud.

#### 🐛 Bug Fixes

- **desktop**: Fix desktop open error in some edge cases.
- **misc**: Fix response API tools calling issue, fix topic fetch not correct in custom agent, pass threadId to messages in sendMessageInServer.

#### 💄 Styles

- **misc**: Show message author in minimap, solve when desktop the sider agent list too long, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **i18n**: Rm qa, closes [#9783](https://github.com/jaworldwideorg/OneJA-Bot/issues/9783) ([6d14dfe](https://github.com/jaworldwideorg/OneJA-Bot/commit/6d14dfe))
* **misc**: Refactor upload router into lambda and decide to remove it in V2, closes [#9766](https://github.com/jaworldwideorg/OneJA-Bot/issues/9766) ([d1c7f41](https://github.com/jaworldwideorg/OneJA-Bot/commit/d1c7f41))

#### What's improved

* **misc**: Add ComfyUI integration Phase1(RFC-128), closes [#9043](https://github.com/jaworldwideorg/OneJA-Bot/issues/9043) ([15ffe28](https://github.com/jaworldwideorg/OneJA-Bot/commit/15ffe28))
* **misc**: Support image generation for siliconcloud, closes [#9447](https://github.com/jaworldwideorg/OneJA-Bot/issues/9447) ([5ebcfa5](https://github.com/jaworldwideorg/OneJA-Bot/commit/5ebcfa5))

#### What's fixed

* **desktop**: Fix desktop open error in some edge cases, closes [#9813](https://github.com/jaworldwideorg/OneJA-Bot/issues/9813) ([6334f62](https://github.com/jaworldwideorg/OneJA-Bot/commit/6334f62))
* **misc**: Fix response API tools calling issue, closes [#9760](https://github.com/jaworldwideorg/OneJA-Bot/issues/9760) ([0596692](https://github.com/jaworldwideorg/OneJA-Bot/commit/0596692))
* **misc**: Fix topic fetch not correct in custom agent, closes [#9761](https://github.com/jaworldwideorg/OneJA-Bot/issues/9761) ([ceffce2](https://github.com/jaworldwideorg/OneJA-Bot/commit/ceffce2))
* **misc**: Pass threadId to messages in sendMessageInServer, closes [#9808](https://github.com/jaworldwideorg/OneJA-Bot/issues/9808) ([d99a3a8](https://github.com/jaworldwideorg/OneJA-Bot/commit/d99a3a8))

#### Styles

* **misc**: Show message author in minimap, closes [#9797](https://github.com/jaworldwideorg/OneJA-Bot/issues/9797) ([f6daefb](https://github.com/jaworldwideorg/OneJA-Bot/commit/f6daefb))
* **misc**: Solve when desktop the sider agent list too long, closes [#9792](https://github.com/jaworldwideorg/OneJA-Bot/issues/9792) ([778dea3](https://github.com/jaworldwideorg/OneJA-Bot/commit/778dea3))
* **misc**: Update i18n, closes [#9787](https://github.com/jaworldwideorg/OneJA-Bot/issues/9787) ([b43d4b2](https://github.com/jaworldwideorg/OneJA-Bot/commit/b43d4b2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-21 08:04:40 +00:00
Jamie Stivala 54f1b1f02f Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-10-21 09:53:21 +02:00
GH Action - Upstream Sync 9c7af5823f Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-10-17 18:08:05 +00:00
semantic-release-bot a67bb05ec7 🔖 chore(release): v1.132.0 [skip ci]
## [Version&nbsp;1.132.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.131.2...v1.132.0)
<sup>Released on **2025-10-17**</sup>

####  Features

- **misc**: Support Group Chat, Mention, and Multi-Agent Orchestration with feature flag.

#### 🐛 Bug Fixes

- **misc**: Automatic topic creation switch does not work.

#### 💄 Styles

- **misc**: Add Claude Haiku 4.5 model, improve welcome message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support Group Chat, Mention, and Multi-Agent Orchestration with feature flag, closes [#8976](https://github.com/jaworldwideorg/OneJA-Bot/issues/8976) ([03c2838](https://github.com/jaworldwideorg/OneJA-Bot/commit/03c2838))

#### What's fixed

* **misc**: Automatic topic creation switch does not work, closes [#9693](https://github.com/jaworldwideorg/OneJA-Bot/issues/9693) ([a02b301](https://github.com/jaworldwideorg/OneJA-Bot/commit/a02b301))

#### Styles

* **misc**: Add Claude Haiku 4.5 model, closes [#9735](https://github.com/jaworldwideorg/OneJA-Bot/issues/9735) ([1cfbc87](https://github.com/jaworldwideorg/OneJA-Bot/commit/1cfbc87))
* **misc**: Improve welcome message, closes [#9747](https://github.com/jaworldwideorg/OneJA-Bot/issues/9747) ([c83fe13](https://github.com/jaworldwideorg/OneJA-Bot/commit/c83fe13))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-17 13:10:09 +00:00
Jamie Stivala d4db27e800 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
#	packages/const/src/branding.ts
2025-10-17 14:58:48 +02:00
semantic-release-bot 8c7129977a 🔖 chore(release): v1.131.2 [skip ci]
### [Version&nbsp;1.131.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.131.1...v1.131.2)
<sup>Released on **2025-10-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix duplicate tools id issue and fix link dialog issue.

#### 💄 Styles

- **misc**: Add region support for Vertex AI provider, improve update notification, Use different favicon.ico in dev mode.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix duplicate tools id issue and fix link dialog issue, closes [#9731](https://github.com/jaworldwideorg/OneJA-Bot/issues/9731) ([0a8c80d](https://github.com/jaworldwideorg/OneJA-Bot/commit/0a8c80d))

#### Styles

* **misc**: Add region support for Vertex AI provider, closes [#9720](https://github.com/jaworldwideorg/OneJA-Bot/issues/9720) ([d17b50c](https://github.com/jaworldwideorg/OneJA-Bot/commit/d17b50c))
* **misc**: Improve update notification, closes [#9717](https://github.com/jaworldwideorg/OneJA-Bot/issues/9717) ([16de38a](https://github.com/jaworldwideorg/OneJA-Bot/commit/16de38a))
* **misc**: Use different favicon.ico in dev mode, closes [#9723](https://github.com/jaworldwideorg/OneJA-Bot/issues/9723) ([2f7317b](https://github.com/jaworldwideorg/OneJA-Bot/commit/2f7317b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-16 11:13:55 +00:00
Jamie Stivala 2e5ea76838 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-10-16 13:03:15 +02:00
semantic-release-bot 21411c476b 🔖 chore(release): v1.131.1 [skip ci]
### [Version&nbsp;1.131.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.131.0...v1.131.1)
<sup>Released on **2025-10-15**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix mcp server connect issue and refactor web search implement, fix the Worker URL cross-origin issue, fix tools calling long name length >64 issue, prevent Vertex AI JSON credentials from being split by comma, update Claude workflows to use oauth token, vertext ai create image.

#### 💄 Styles

- **misc**: Add imagen model to vertex ai, change the user chatItem maxWidth should use flex 1.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix mcp server connect issue and refactor web search implement, closes [#9694](https://github.com/jaworldwideorg/OneJA-Bot/issues/9694) ([15ebcb4](https://github.com/jaworldwideorg/OneJA-Bot/commit/15ebcb4))
* **misc**: Fix the Worker URL cross-origin issue, closes [#9624](https://github.com/jaworldwideorg/OneJA-Bot/issues/9624) ([d379112](https://github.com/jaworldwideorg/OneJA-Bot/commit/d379112))
* **misc**: Fix tools calling long name length >64 issue, closes [#9697](https://github.com/jaworldwideorg/OneJA-Bot/issues/9697) ([cb98604](https://github.com/jaworldwideorg/OneJA-Bot/commit/cb98604))
* **misc**: Prevent Vertex AI JSON credentials from being split by comma, closes [#9703](https://github.com/jaworldwideorg/OneJA-Bot/issues/9703) [#9477](https://github.com/jaworldwideorg/OneJA-Bot/issues/9477) ([189081d](https://github.com/jaworldwideorg/OneJA-Bot/commit/189081d))
* **misc**: Update Claude workflows to use oauth token, closes [#9711](https://github.com/jaworldwideorg/OneJA-Bot/issues/9711) ([8dcb00e](https://github.com/jaworldwideorg/OneJA-Bot/commit/8dcb00e))
* **misc**: Vertext ai create image, closes [#9710](https://github.com/jaworldwideorg/OneJA-Bot/issues/9710) ([790d8fd](https://github.com/jaworldwideorg/OneJA-Bot/commit/790d8fd))

#### Styles

* **misc**: Add imagen model to vertex ai, closes [#9699](https://github.com/jaworldwideorg/OneJA-Bot/issues/9699) ([3b2a2c1](https://github.com/jaworldwideorg/OneJA-Bot/commit/3b2a2c1))
* **misc**: Change the user chatItem maxWidth should use flex 1, closes [#9689](https://github.com/jaworldwideorg/OneJA-Bot/issues/9689) ([cfd5221](https://github.com/jaworldwideorg/OneJA-Bot/commit/cfd5221))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-15 12:43:34 +00:00
Jamie Stivala ea1ceb1dcc Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-10-15 14:33:26 +02:00
semantic-release-bot 64e77ca7cc 🔖 chore(release): v1.131.0 [skip ci]
## [Version&nbsp;1.131.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.130.1...v1.131.0)
<sup>Released on **2025-10-13**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor chat item.

####  Features

- **misc**: Add new provider Cerebras, add new setting for default image num, huanyuan text-to-image 3, support double-click to open multi agent window on the desktop.

#### 🐛 Bug Fixes

- **bedrock**: Add parameter conflict handling for Claude 4+ models.
- **database**: Prevent empty array insertion in aiModel batch operations.
- **desktop**: Macos26 small icon.
- **plugin-store**: Fix search functionality for old plugin store.
- **provider**: Add deepseek-v3.1-terminus to THINKING_MODELS.
- **security**: Sanitize Azure provider error responses to prevent API key exposure.
- **misc**: `type` not preserved when model is disabled or sorted, Add 'gemini-2.5-flash-image' to disabled models Thinking, Custom provider fails when client requests are enabled, disable rich text in markdown editor, fix input cannot send markdown, fix standalone plugin rerender issue, type not preserved when model is sorted.

#### 💄 Styles

- **image**: Optimize UX and fix fal pricing.
- **misc**: Add capability inference for web search, image output and video recognition in model parsing and update UI form items to support search, imageOutput and video abilities, Add delete & regenerate hotkeys, Add GPT-5 pro model, add lab to support disable/enable rich text, add more AWS regions, add promptfoo to improve prompts quality, Allow switching model `type`, improve Korean translate, improve search experience, improve styles and fix tools calling condition, nano banana support `aspect_ratio`, Optimize OpenRouter modelFetch endpoint, Optimized `extendParams` UI, update i18n, update i18n, update i18n, update i18n, update i18n, update i18n, Update infini-ai models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor chat item, closes [#9599](https://github.com/jaworldwideorg/OneJA-Bot/issues/9599) ([1f36158](https://github.com/jaworldwideorg/OneJA-Bot/commit/1f36158))

#### What's improved

* **misc**: Add new provider Cerebras, closes [#9559](https://github.com/jaworldwideorg/OneJA-Bot/issues/9559) ([9cceaad](https://github.com/jaworldwideorg/OneJA-Bot/commit/9cceaad))
* **misc**: Add new setting for default image num, closes [#9618](https://github.com/jaworldwideorg/OneJA-Bot/issues/9618) ([de7368b](https://github.com/jaworldwideorg/OneJA-Bot/commit/de7368b))
* **misc**: Huanyuan text-to-image 3, closes [#9589](https://github.com/jaworldwideorg/OneJA-Bot/issues/9589) ([1dd0e5e](https://github.com/jaworldwideorg/OneJA-Bot/commit/1dd0e5e))
* **misc**: Support double-click to open multi agent window on the desktop, closes [#9331](https://github.com/jaworldwideorg/OneJA-Bot/issues/9331) ([a060901](https://github.com/jaworldwideorg/OneJA-Bot/commit/a060901))

#### What's fixed

* **bedrock**: Add parameter conflict handling for Claude 4+ models, closes [#9627](https://github.com/jaworldwideorg/OneJA-Bot/issues/9627) [#9523](https://github.com/jaworldwideorg/OneJA-Bot/issues/9523) ([54b6217](https://github.com/jaworldwideorg/OneJA-Bot/commit/54b6217))
* **database**: Prevent empty array insertion in aiModel batch operations, closes [#9491](https://github.com/jaworldwideorg/OneJA-Bot/issues/9491) [#9429](https://github.com/jaworldwideorg/OneJA-Bot/issues/9429) [#9429](https://github.com/jaworldwideorg/OneJA-Bot/issues/9429) ([eb50c8b](https://github.com/jaworldwideorg/OneJA-Bot/commit/eb50c8b))
* **desktop**: Macos26 small icon, closes [#9421](https://github.com/jaworldwideorg/OneJA-Bot/issues/9421) ([ca03342](https://github.com/jaworldwideorg/OneJA-Bot/commit/ca03342))
* **plugin-store**: Fix search functionality for old plugin store, closes [#9651](https://github.com/jaworldwideorg/OneJA-Bot/issues/9651) [#9645](https://github.com/jaworldwideorg/OneJA-Bot/issues/9645) ([522fc09](https://github.com/jaworldwideorg/OneJA-Bot/commit/522fc09))
* **provider**: Add deepseek-v3.1-terminus to THINKING_MODELS, closes [#9653](https://github.com/jaworldwideorg/OneJA-Bot/issues/9653) [#9648](https://github.com/jaworldwideorg/OneJA-Bot/issues/9648) ([e9b5c69](https://github.com/jaworldwideorg/OneJA-Bot/commit/e9b5c69))
* **security**: Sanitize Azure provider error responses to prevent API key exposure, closes [#9583](https://github.com/jaworldwideorg/OneJA-Bot/issues/9583) ([af59bfe](https://github.com/jaworldwideorg/OneJA-Bot/commit/af59bfe))
* **misc**: `type` not preserved when model is disabled or sorted, closes [#9530](https://github.com/jaworldwideorg/OneJA-Bot/issues/9530) ([476b897](https://github.com/jaworldwideorg/OneJA-Bot/commit/476b897))
* **misc**: Add 'gemini-2.5-flash-image' to disabled models Thinking, closes [#9633](https://github.com/jaworldwideorg/OneJA-Bot/issues/9633) ([771b585](https://github.com/jaworldwideorg/OneJA-Bot/commit/771b585))
* **misc**: Custom provider fails when client requests are enabled, closes [#9534](https://github.com/jaworldwideorg/OneJA-Bot/issues/9534) ([8b12fdf](https://github.com/jaworldwideorg/OneJA-Bot/commit/8b12fdf))
* **misc**: Disable rich text in markdown editor, closes [#9637](https://github.com/jaworldwideorg/OneJA-Bot/issues/9637) ([9349ce2](https://github.com/jaworldwideorg/OneJA-Bot/commit/9349ce2))
* **misc**: Fix input cannot send markdown, closes [#9674](https://github.com/jaworldwideorg/OneJA-Bot/issues/9674) ([2518d7e](https://github.com/jaworldwideorg/OneJA-Bot/commit/2518d7e))
* **misc**: Fix standalone plugin rerender issue, closes [#9611](https://github.com/jaworldwideorg/OneJA-Bot/issues/9611) [#9396](https://github.com/jaworldwideorg/OneJA-Bot/issues/9396) ([7ab30fc](https://github.com/jaworldwideorg/OneJA-Bot/commit/7ab30fc))
* **misc**: Type not preserved when model is sorted, closes [#9561](https://github.com/jaworldwideorg/OneJA-Bot/issues/9561) ([5fe2518](https://github.com/jaworldwideorg/OneJA-Bot/commit/5fe2518))

#### Styles

* **image**: Optimize UX and fix fal pricing, closes [#9592](https://github.com/jaworldwideorg/OneJA-Bot/issues/9592) ([dddbfcd](https://github.com/jaworldwideorg/OneJA-Bot/commit/dddbfcd))
* **misc**: Add capability inference for web search, image output and video recognition in model parsing and update UI form items to support search, imageOutput and video abilities, closes [#9022](https://github.com/jaworldwideorg/OneJA-Bot/issues/9022) ([4e44569](https://github.com/jaworldwideorg/OneJA-Bot/commit/4e44569))
* **misc**: Add delete & regenerate hotkeys, closes [#9538](https://github.com/jaworldwideorg/OneJA-Bot/issues/9538) ([d948580](https://github.com/jaworldwideorg/OneJA-Bot/commit/d948580))
* **misc**: Add GPT-5 pro model, closes [#9594](https://github.com/jaworldwideorg/OneJA-Bot/issues/9594) ([775f30b](https://github.com/jaworldwideorg/OneJA-Bot/commit/775f30b))
* **misc**: Add lab to support disable/enable rich text, closes [#9652](https://github.com/jaworldwideorg/OneJA-Bot/issues/9652) ([658c294](https://github.com/jaworldwideorg/OneJA-Bot/commit/658c294))
* **misc**: Add more AWS regions, closes [#9644](https://github.com/jaworldwideorg/OneJA-Bot/issues/9644) ([4a82daf](https://github.com/jaworldwideorg/OneJA-Bot/commit/4a82daf))
* **misc**: Add promptfoo to improve prompts quality, closes [#9568](https://github.com/jaworldwideorg/OneJA-Bot/issues/9568) ([33874c2](https://github.com/jaworldwideorg/OneJA-Bot/commit/33874c2))
* **misc**: Allow switching model `type`, closes [#9529](https://github.com/jaworldwideorg/OneJA-Bot/issues/9529) ([9b62685](https://github.com/jaworldwideorg/OneJA-Bot/commit/9b62685))
* **misc**: Improve Korean translate, closes [#9597](https://github.com/jaworldwideorg/OneJA-Bot/issues/9597) ([319fbfb](https://github.com/jaworldwideorg/OneJA-Bot/commit/319fbfb))
* **misc**: Improve search experience, closes [#9661](https://github.com/jaworldwideorg/OneJA-Bot/issues/9661) ([8624f84](https://github.com/jaworldwideorg/OneJA-Bot/commit/8624f84))
* **misc**: Improve styles and fix tools calling condition, closes [#9591](https://github.com/jaworldwideorg/OneJA-Bot/issues/9591) ([1695f2f](https://github.com/jaworldwideorg/OneJA-Bot/commit/1695f2f))
* **misc**: Nano banana support `aspect_ratio`, closes [#9528](https://github.com/jaworldwideorg/OneJA-Bot/issues/9528) ([ae3ed6e](https://github.com/jaworldwideorg/OneJA-Bot/commit/ae3ed6e))
* **misc**: Optimize OpenRouter modelFetch endpoint, closes [#9671](https://github.com/jaworldwideorg/OneJA-Bot/issues/9671) ([0038a64](https://github.com/jaworldwideorg/OneJA-Bot/commit/0038a64))
* **misc**: Optimized `extendParams` UI, closes [#9457](https://github.com/jaworldwideorg/OneJA-Bot/issues/9457) ([582f6d1](https://github.com/jaworldwideorg/OneJA-Bot/commit/582f6d1))
* **misc**: Update i18n, closes [#9665](https://github.com/jaworldwideorg/OneJA-Bot/issues/9665) ([02096ea](https://github.com/jaworldwideorg/OneJA-Bot/commit/02096ea))
* **misc**: Update i18n, closes [#9625](https://github.com/jaworldwideorg/OneJA-Bot/issues/9625) ([70d356d](https://github.com/jaworldwideorg/OneJA-Bot/commit/70d356d))
* **misc**: Update i18n, closes [#9602](https://github.com/jaworldwideorg/OneJA-Bot/issues/9602) ([ed267a4](https://github.com/jaworldwideorg/OneJA-Bot/commit/ed267a4))
* **misc**: Update i18n, closes [#9580](https://github.com/jaworldwideorg/OneJA-Bot/issues/9580) ([c0974ea](https://github.com/jaworldwideorg/OneJA-Bot/commit/c0974ea))
* **misc**: Update i18n, closes [#9546](https://github.com/jaworldwideorg/OneJA-Bot/issues/9546) ([ed8174f](https://github.com/jaworldwideorg/OneJA-Bot/commit/ed8174f))
* **misc**: Update i18n, closes [#9514](https://github.com/jaworldwideorg/OneJA-Bot/issues/9514) ([6430f57](https://github.com/jaworldwideorg/OneJA-Bot/commit/6430f57))
* **misc**: Update infini-ai models, closes [#9646](https://github.com/jaworldwideorg/OneJA-Bot/issues/9646) ([5274225](https://github.com/jaworldwideorg/OneJA-Bot/commit/5274225))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-13 13:07:56 +00:00
Jamie Stivala a4f87bc25b Merge remote-tracking branch 'origin/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-10-13 14:57:06 +02:00
Jamie Stivala 598555ff92 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	.github/workflows/release.yml
2025-10-13 14:56:53 +02:00
lobehubbot 1cee1f98b7 📝 docs(bot): Auto sync agents & plugin to readme 2025-10-03 13:13:39 +00:00
semantic-release-bot 637d5fce14 🔖 chore(release): v1.130.1 [skip ci]
### [Version&nbsp;1.130.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.130.0...v1.130.1)
<sup>Released on **2025-10-03**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor a `ssrf-safe-fetch` module.

#### 🐛 Bug Fixes

- **misc**: Fix frontend random API key config not work, OllamaCloud error.

#### 💄 Styles

- **misc**: Fix chat minimap overflow.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor a `ssrf-safe-fetch` module, closes [#9474](https://github.com/jaworldwideorg/OneJA-Bot/issues/9474) ([92da716](https://github.com/jaworldwideorg/OneJA-Bot/commit/92da716))

#### What's fixed

* **misc**: Fix frontend random API key config not work, closes [#9477](https://github.com/jaworldwideorg/OneJA-Bot/issues/9477) [#9255](https://github.com/jaworldwideorg/OneJA-Bot/issues/9255) ([a194d48](https://github.com/jaworldwideorg/OneJA-Bot/commit/a194d48))
* **misc**: OllamaCloud error, closes [#9481](https://github.com/jaworldwideorg/OneJA-Bot/issues/9481) ([55c45a5](https://github.com/jaworldwideorg/OneJA-Bot/commit/55c45a5))

#### Styles

* **misc**: Fix chat minimap overflow, closes [#9507](https://github.com/jaworldwideorg/OneJA-Bot/issues/9507) ([d835c33](https://github.com/jaworldwideorg/OneJA-Bot/commit/d835c33))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-10-03 13:12:51 +00:00
Jamie Stivala e0364147a7 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-10-03 15:02:48 +02:00
Jamie Stivala 84890400d0 Merge remote-tracking branch 'upstream/main' 2025-10-01 12:00:18 +02:00
GH Action - Upstream Sync c9bd4daa04 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-10-01 00:32:21 +00:00
GH Action - Upstream Sync 5e1861ed55 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-09-30 18:10:00 +00:00
lobehubbot 571f7611ce 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-30 09:17:18 +00:00
semantic-release-bot 7a001fb98e 🔖 chore(release): v1.130.0 [skip ci]
## [Version&nbsp;1.130.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.129.3...v1.130.0)
<sup>Released on **2025-09-30**</sup>

####  Features

- **misc**: Add builtin Python plugin, add Claude Sonnet 4.5 model to AI chat models.

#### 💄 Styles

- **misc**: Add minimap to chat list for quick navigation, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add builtin Python plugin, closes [#8873](https://github.com/jaworldwideorg/OneJA-Bot/issues/8873) ([fa6ef94](https://github.com/jaworldwideorg/OneJA-Bot/commit/fa6ef94))
* **misc**: Add Claude Sonnet 4.5 model to AI chat models, closes [#9476](https://github.com/jaworldwideorg/OneJA-Bot/issues/9476) ([a30a65c](https://github.com/jaworldwideorg/OneJA-Bot/commit/a30a65c))

#### Styles

* **misc**: Add minimap to chat list for quick navigation, closes [#9470](https://github.com/jaworldwideorg/OneJA-Bot/issues/9470) ([8db47eb](https://github.com/jaworldwideorg/OneJA-Bot/commit/8db47eb))
* **misc**: Update i18n, closes [#9480](https://github.com/jaworldwideorg/OneJA-Bot/issues/9480) ([dfeb42c](https://github.com/jaworldwideorg/OneJA-Bot/commit/dfeb42c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-30 09:16:42 +00:00
Jamie Stivala 965000e146 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-09-30 11:07:15 +02:00
GH Action - Upstream Sync dd8dcaf2b4 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-09-29 12:11:48 +00:00
lobehubbot 67fe749f70 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-29 08:39:30 +00:00
semantic-release-bot 141e420aec 🔖 chore(release): v1.129.3 [skip ci]
### [Version&nbsp;1.129.3](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.129.2...v1.129.3)
<sup>Released on **2025-09-29**</sup>

#### 🐛 Bug Fixes

- **misc**: Add proxyUrl configuration for NEW API provider, fix input empty group name, refactor tools-engine and fix search token count, resolve qwen-image-edit imageUrls conversion issue.

#### 💄 Styles

- **misc**: Update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Add proxyUrl configuration for NEW API provider, closes [#9426](https://github.com/jaworldwideorg/OneJA-Bot/issues/9426) [#9420](https://github.com/jaworldwideorg/OneJA-Bot/issues/9420) ([e35e378](https://github.com/jaworldwideorg/OneJA-Bot/commit/e35e378))
* **misc**: Fix input empty group name, closes [#9441](https://github.com/jaworldwideorg/OneJA-Bot/issues/9441) ([f653ce1](https://github.com/jaworldwideorg/OneJA-Bot/commit/f653ce1))
* **misc**: Refactor tools-engine and fix search token count, closes [#9448](https://github.com/jaworldwideorg/OneJA-Bot/issues/9448) ([e82d4b7](https://github.com/jaworldwideorg/OneJA-Bot/commit/e82d4b7))
* **misc**: Resolve qwen-image-edit imageUrls conversion issue, closes [#9414](https://github.com/jaworldwideorg/OneJA-Bot/issues/9414) ([ec5af1b](https://github.com/jaworldwideorg/OneJA-Bot/commit/ec5af1b))

#### Styles

* **misc**: Update i18n, closes [#9449](https://github.com/jaworldwideorg/OneJA-Bot/issues/9449) ([b04a5d7](https://github.com/jaworldwideorg/OneJA-Bot/commit/b04a5d7))
* **misc**: Update i18n, closes [#9413](https://github.com/jaworldwideorg/OneJA-Bot/issues/9413) ([4ea45b1](https://github.com/jaworldwideorg/OneJA-Bot/commit/4ea45b1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-29 08:38:39 +00:00
Jamie Stivala eb06ba25cb Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
2025-09-29 10:28:09 +02:00
lobehubbot 8beea9ae19 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-25 13:15:32 +00:00
semantic-release-bot 588b3afe84 🔖 chore(release): v1.129.2 [skip ci]
### [Version&nbsp;1.129.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.129.1...v1.129.2)
<sup>Released on **2025-09-25**</sup>

#### 🐛 Bug Fixes

- **misc**: Slove setting proxy page with style error.

#### 💄 Styles

- **misc**: Enhanced Nvidia NIM chat experience, OpenAI models in AiHubMix use Responses API.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Slove setting proxy page with style error, closes [#9417](https://github.com/jaworldwideorg/OneJA-Bot/issues/9417) ([6d3e5d1](https://github.com/jaworldwideorg/OneJA-Bot/commit/6d3e5d1))

#### Styles

* **misc**: Enhanced Nvidia NIM chat experience, closes [#9408](https://github.com/jaworldwideorg/OneJA-Bot/issues/9408) ([13e936f](https://github.com/jaworldwideorg/OneJA-Bot/commit/13e936f))
* **misc**: OpenAI models in AiHubMix use Responses API, closes [#9251](https://github.com/jaworldwideorg/OneJA-Bot/issues/9251) ([8636fe4](https://github.com/jaworldwideorg/OneJA-Bot/commit/8636fe4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-25 13:15:00 +00:00
Jamie Stivala 5cbd0c802b Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
2025-09-25 15:04:32 +02:00
lobehubbot f941e6eba1 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-24 08:50:45 +00:00
semantic-release-bot 00d05dff90 🔖 chore(release): v1.129.1 [skip ci]
### [Version&nbsp;1.129.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.129.0...v1.129.1)
<sup>Released on **2025-09-24**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor all `@/types` in model runtime to `@lobechat/types`.

#### 🐛 Bug Fixes

- **misc**: Macos desktop sign.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor all `@/types` in model runtime to `@lobechat/types`, closes [#9383](https://github.com/jaworldwideorg/OneJA-Bot/issues/9383) ([b050bd7](https://github.com/jaworldwideorg/OneJA-Bot/commit/b050bd7))

#### What's fixed

* **misc**: Macos desktop sign, closes [#9400](https://github.com/jaworldwideorg/OneJA-Bot/issues/9400) ([4349ad9](https://github.com/jaworldwideorg/OneJA-Bot/commit/4349ad9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-24 08:50:11 +00:00
Jamie Stivala f131a3a9d8 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-24 10:11:48 +02:00
lobehubbot 63d73575ee 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-22 13:29:44 +00:00
semantic-release-bot 03e96c9df7 🔖 chore(release): v1.129.0 [skip ci]
## [Version&nbsp;1.129.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.128.0...v1.129.0)
<sup>Released on **2025-09-22**</sup>

#### ♻ Code Refactoring

- **misc**: Improve codebase, move the ModelProvider to model-bank.

####  Features

- **misc**: Qwen provider add qwen-image-edit model support, support google video understanding.

#### 🐛 Bug Fixes

- **misc**: Fix missing provider in server message, fix non stream mode in OpenAI Response API, Update Responses search tool to web_search.

#### 💄 Styles

- **misc**: Added `AUTH_MICROSOFT_ENTRA_ID_BASE_URL` routing, Enable thinkingBudget control for Vertex Gemini 2.5 models, Enhanced AkashChat experience, extend custom provider runtime options, Optimized modelFetch for Vercel AI Gateway, update i18n, update i18n, Use ID as name if provider name is empty.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Improve codebase, closes [#9353](https://github.com/jaworldwideorg/OneJA-Bot/issues/9353) ([7dc000e](https://github.com/jaworldwideorg/OneJA-Bot/commit/7dc000e))
* **misc**: Move the ModelProvider to model-bank, closes [#9374](https://github.com/jaworldwideorg/OneJA-Bot/issues/9374) ([d9a4361](https://github.com/jaworldwideorg/OneJA-Bot/commit/d9a4361))

#### What's improved

* **misc**: Qwen provider add qwen-image-edit model support, closes [#9311](https://github.com/jaworldwideorg/OneJA-Bot/issues/9311) ([a0074fc](https://github.com/jaworldwideorg/OneJA-Bot/commit/a0074fc))
* **misc**: Support google video understanding, closes [#8761](https://github.com/jaworldwideorg/OneJA-Bot/issues/8761) ([f02d43b](https://github.com/jaworldwideorg/OneJA-Bot/commit/f02d43b))

#### What's fixed

* **misc**: Fix missing provider in server message, closes [#9361](https://github.com/jaworldwideorg/OneJA-Bot/issues/9361) ([4099dfd](https://github.com/jaworldwideorg/OneJA-Bot/commit/4099dfd))
* **misc**: Fix non stream mode in OpenAI Response API, closes [#9360](https://github.com/jaworldwideorg/OneJA-Bot/issues/9360) ([1c61b21](https://github.com/jaworldwideorg/OneJA-Bot/commit/1c61b21))
* **misc**: Update Responses search tool to web_search, closes [#9354](https://github.com/jaworldwideorg/OneJA-Bot/issues/9354) ([58d34ff](https://github.com/jaworldwideorg/OneJA-Bot/commit/58d34ff))

#### Styles

* **misc**: Added `AUTH_MICROSOFT_ENTRA_ID_BASE_URL` routing, closes [#9293](https://github.com/jaworldwideorg/OneJA-Bot/issues/9293) ([78a2f9e](https://github.com/jaworldwideorg/OneJA-Bot/commit/78a2f9e))
* **misc**: Enable thinkingBudget control for Vertex Gemini 2.5 models, closes [#8223](https://github.com/jaworldwideorg/OneJA-Bot/issues/8223) ([c665646](https://github.com/jaworldwideorg/OneJA-Bot/commit/c665646))
* **misc**: Enhanced AkashChat experience, closes [#9330](https://github.com/jaworldwideorg/OneJA-Bot/issues/9330) ([47ec2d8](https://github.com/jaworldwideorg/OneJA-Bot/commit/47ec2d8))
* **misc**: Extend custom provider runtime options, closes [#9278](https://github.com/jaworldwideorg/OneJA-Bot/issues/9278) ([a94e881](https://github.com/jaworldwideorg/OneJA-Bot/commit/a94e881))
* **misc**: Optimized modelFetch for Vercel AI Gateway, closes [#9342](https://github.com/jaworldwideorg/OneJA-Bot/issues/9342) ([45b7a43](https://github.com/jaworldwideorg/OneJA-Bot/commit/45b7a43))
* **misc**: Update i18n, closes [#9363](https://github.com/jaworldwideorg/OneJA-Bot/issues/9363) ([785d5d7](https://github.com/jaworldwideorg/OneJA-Bot/commit/785d5d7))
* **misc**: Update i18n, closes [#9338](https://github.com/jaworldwideorg/OneJA-Bot/issues/9338) ([d2ff75c](https://github.com/jaworldwideorg/OneJA-Bot/commit/d2ff75c))
* **misc**: Use ID as name if provider name is empty, closes [#9356](https://github.com/jaworldwideorg/OneJA-Bot/issues/9356) ([7f60544](https://github.com/jaworldwideorg/OneJA-Bot/commit/7f60544))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-22 13:28:58 +00:00
Jamie Stivala 9c7e213621 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-22 15:18:14 +02:00
Jamie Stivala 51dc8076d4 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-22 10:44:52 +02:00
lobehubbot fd878b73ae 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-19 08:57:56 +00:00
semantic-release-bot ec5bd9a761 🔖 chore(release): v1.128.0 [skip ci]
## [Version&nbsp;1.128.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.127.1...v1.128.0)
<sup>Released on **2025-09-19**</sup>

####  Features

- **misc**: Add scroll support for pinned assistants using ScrollShadow.

#### 🐛 Bug Fixes

- **misc**: Fix oidc open direct issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add scroll support for pinned assistants using ScrollShadow, closes [#9319](https://github.com/jaworldwideorg/OneJA-Bot/issues/9319) [#9316](https://github.com/jaworldwideorg/OneJA-Bot/issues/9316) ([54c0ac4](https://github.com/jaworldwideorg/OneJA-Bot/commit/54c0ac4))

#### What's fixed

* **misc**: Fix oidc open direct issue, closes [#9315](https://github.com/jaworldwideorg/OneJA-Bot/issues/9315) ([70f52a3](https://github.com/jaworldwideorg/OneJA-Bot/commit/70f52a3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-19 08:57:14 +00:00
Jamie Stivala d0375e1196 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-19 10:47:07 +02:00
semantic-release-bot 0dca066624 🔖 chore(release): v1.127.1 [skip ci]
### [Version&nbsp;1.127.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.127.0...v1.127.1)
<sup>Released on **2025-09-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix svg xss issue.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix svg xss issue, closes [#9313](https://github.com/jaworldwideorg/OneJA-Bot/issues/9313) ([9f044ed](https://github.com/jaworldwideorg/OneJA-Bot/commit/9f044ed))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-18 08:17:58 +00:00
Jamie Stivala 5c43f050f1 Merge remote-tracking branch 'origin/main' 2025-09-18 10:07:44 +02:00
Jamie Stivala 42697e1d16 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-18 10:07:26 +02:00
GH Action - Upstream Sync a966194dd3 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-09-17 18:09:14 +00:00
semantic-release-bot 8aee06beb0 🔖 chore(release): v1.127.0 [skip ci]
## [Version&nbsp;1.127.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.126.0...v1.127.0)
<sup>Released on **2025-09-17**</sup>

#### ♻ Code Refactoring

- **misc**: Improve db sql performance, refactor message proccesser to the context engine.

####  Features

- **misc**: Support Vercel AI Gateway provider.

#### 🐛 Bug Fixes

- **misc**: Add qwen provider support for image-edit model, fix azure ai runtime error, fix open chat page with float link modal, Google stream error unable to abort request, improve db migrations sql.

#### 💄 Styles

- **misc**: Enable toggling search on/off via search button click & historyCount button, fix discover plugin link, improve error handle with agent config, support `.doc` file parse, update i18n, update i18n, update i18n, Update model configs, update SiliconCloud reasoning models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Improve db sql performance, closes [#9283](https://github.com/jaworldwideorg/OneJA-Bot/issues/9283) ([cee555a](https://github.com/jaworldwideorg/OneJA-Bot/commit/cee555a))
* **misc**: Refactor message proccesser to the context engine, closes [#9230](https://github.com/jaworldwideorg/OneJA-Bot/issues/9230) ([dacfffd](https://github.com/jaworldwideorg/OneJA-Bot/commit/dacfffd))

#### What's improved

* **misc**: Support Vercel AI Gateway provider, closes [#8883](https://github.com/jaworldwideorg/OneJA-Bot/issues/8883) ([5a4b0fd](https://github.com/jaworldwideorg/OneJA-Bot/commit/5a4b0fd))

#### What's fixed

* **misc**: Add qwen provider support for image-edit model, closes [#9277](https://github.com/jaworldwideorg/OneJA-Bot/issues/9277) [#9184](https://github.com/jaworldwideorg/OneJA-Bot/issues/9184) ([e137b33](https://github.com/jaworldwideorg/OneJA-Bot/commit/e137b33))
* **misc**: Fix azure ai runtime error, closes [#9276](https://github.com/jaworldwideorg/OneJA-Bot/issues/9276) ([c21c14e](https://github.com/jaworldwideorg/OneJA-Bot/commit/c21c14e))
* **misc**: Fix open chat page with float link modal, closes [#9235](https://github.com/jaworldwideorg/OneJA-Bot/issues/9235) ([2c677e5](https://github.com/jaworldwideorg/OneJA-Bot/commit/2c677e5))
* **misc**: Google stream error unable to abort request, closes [#9180](https://github.com/jaworldwideorg/OneJA-Bot/issues/9180) ([78eaead](https://github.com/jaworldwideorg/OneJA-Bot/commit/78eaead))
* **misc**: Improve db migrations sql, closes [#9295](https://github.com/jaworldwideorg/OneJA-Bot/issues/9295) ([96ff5aa](https://github.com/jaworldwideorg/OneJA-Bot/commit/96ff5aa))

#### Styles

* **misc**: Enable toggling search on/off via search button click & historyCount button, closes [#9173](https://github.com/jaworldwideorg/OneJA-Bot/issues/9173) ([240c7b7](https://github.com/jaworldwideorg/OneJA-Bot/commit/240c7b7))
* **misc**: Fix discover plugin link, closes [#9240](https://github.com/jaworldwideorg/OneJA-Bot/issues/9240) ([cfb2246](https://github.com/jaworldwideorg/OneJA-Bot/commit/cfb2246))
* **misc**: Improve error handle with agent config, closes [#9263](https://github.com/jaworldwideorg/OneJA-Bot/issues/9263) ([6656217](https://github.com/jaworldwideorg/OneJA-Bot/commit/6656217))
* **misc**: Support `.doc` file parse, closes [#8182](https://github.com/jaworldwideorg/OneJA-Bot/issues/8182) ([ed42753](https://github.com/jaworldwideorg/OneJA-Bot/commit/ed42753))
* **misc**: Update i18n, closes [#9294](https://github.com/jaworldwideorg/OneJA-Bot/issues/9294) ([c018f3d](https://github.com/jaworldwideorg/OneJA-Bot/commit/c018f3d))
* **misc**: Update i18n, closes [#9243](https://github.com/jaworldwideorg/OneJA-Bot/issues/9243) ([04764ad](https://github.com/jaworldwideorg/OneJA-Bot/commit/04764ad))
* **misc**: Update i18n, closes [#9237](https://github.com/jaworldwideorg/OneJA-Bot/issues/9237) ([642dc3b](https://github.com/jaworldwideorg/OneJA-Bot/commit/642dc3b))
* **misc**: Update model configs, closes [#9170](https://github.com/jaworldwideorg/OneJA-Bot/issues/9170) ([f89b730](https://github.com/jaworldwideorg/OneJA-Bot/commit/f89b730))
* **misc**: Update SiliconCloud reasoning models, closes [#9287](https://github.com/jaworldwideorg/OneJA-Bot/issues/9287) ([b47bb5b](https://github.com/jaworldwideorg/OneJA-Bot/commit/b47bb5b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-17 12:27:36 +00:00
Jamie Stivala 8e3284daea Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-17 14:17:20 +02:00
Jamie Stivala b491758d68 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-15 18:07:24 +02:00
GH Action - Upstream Sync c0115154ba Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-09-12 12:11:12 +00:00
semantic-release-bot d3abe14e24 🔖 chore(release): v1.126.0 [skip ci]
## [Version&nbsp;1.126.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.125.1...v1.126.0)
<sup>Released on **2025-09-12**</sup>

####  Features

- **misc**: ChatInput support resize.

#### 🐛 Bug Fixes

- **misc**: Improve OpenAIStream processing to emit usage data for chunks lacking choices.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: ChatInput support resize, closes [#9215](https://github.com/jaworldwideorg/OneJA-Bot/issues/9215) ([5e814e0](https://github.com/jaworldwideorg/OneJA-Bot/commit/5e814e0))

#### What's fixed

* **misc**: Improve OpenAIStream processing to emit usage data for chunks lacking choices, closes [#9220](https://github.com/jaworldwideorg/OneJA-Bot/issues/9220) ([8ba662c](https://github.com/jaworldwideorg/OneJA-Bot/commit/8ba662c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-12 09:54:09 +00:00
Jamie Stivala bcf968b661 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-12 11:43:55 +02:00
lobehubbot 7b2654e952 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-11 08:08:17 +00:00
semantic-release-bot 225173f845 🔖 chore(release): v1.125.1 [skip ci]
### [Version&nbsp;1.125.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.125.0...v1.125.1)
<sup>Released on **2025-09-11**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor model runtime folder structure and add more tests.

#### 🐛 Bug Fixes

- **misc**: Delete files should delete chunks、embedings、fileChunk, fix not remove message with server mode.

#### 💄 Styles

- **misc**: Add hotkey tooltip to typobar actions, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor model runtime folder structure and add more tests, closes [#9210](https://github.com/jaworldwideorg/OneJA-Bot/issues/9210) ([7fe17e4](https://github.com/jaworldwideorg/OneJA-Bot/commit/7fe17e4))

#### What's fixed

* **misc**: Delete files should delete chunks、embedings、fileChunk, closes [#9196](https://github.com/jaworldwideorg/OneJA-Bot/issues/9196) ([4ee1d29](https://github.com/jaworldwideorg/OneJA-Bot/commit/4ee1d29))
* **misc**: Fix not remove message with server mode, closes [#9207](https://github.com/jaworldwideorg/OneJA-Bot/issues/9207) ([790af5f](https://github.com/jaworldwideorg/OneJA-Bot/commit/790af5f))

#### Styles

* **misc**: Add hotkey tooltip to typobar actions, closes [#9203](https://github.com/jaworldwideorg/OneJA-Bot/issues/9203) ([e372875](https://github.com/jaworldwideorg/OneJA-Bot/commit/e372875))
* **misc**: Update i18n, closes [#9208](https://github.com/jaworldwideorg/OneJA-Bot/issues/9208) ([987fbf2](https://github.com/jaworldwideorg/OneJA-Bot/commit/987fbf2))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-11 08:07:46 +00:00
Jamie Stivala 56f3754a70 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-11 09:58:05 +02:00
lobehubbot 739357ff9b 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-10 12:22:05 +00:00
semantic-release-bot 812803e8b8 🔖 chore(release): v1.125.0 [skip ci]
## [Version&nbsp;1.125.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.124.0...v1.125.0)
<sup>Released on **2025-09-10**</sup>

####  Features

- **image**: Implement model selection memory functionality.
- **misc**: Add Math and TaskList to Editor, Seedream 4.0.

#### 🐛 Bug Fixes

- **misc**: Fix Assistant List error message, Fix editor key handling.

#### 💄 Styles

- **misc**: Add CometAPI model provider and chat models, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **image**: Implement model selection memory functionality, closes [#9160](https://github.com/jaworldwideorg/OneJA-Bot/issues/9160) ([b00e6d7](https://github.com/jaworldwideorg/OneJA-Bot/commit/b00e6d7))
* **misc**: Add Math and TaskList to Editor, closes [#9165](https://github.com/jaworldwideorg/OneJA-Bot/issues/9165) ([9e0621f](https://github.com/jaworldwideorg/OneJA-Bot/commit/9e0621f))
* **misc**: Seedream 4.0, closes [#9198](https://github.com/jaworldwideorg/OneJA-Bot/issues/9198) ([26a743f](https://github.com/jaworldwideorg/OneJA-Bot/commit/26a743f))

#### What's fixed

* **misc**: Fix Assistant List error message, closes [#9178](https://github.com/jaworldwideorg/OneJA-Bot/issues/9178) ([3519cb2](https://github.com/jaworldwideorg/OneJA-Bot/commit/3519cb2))
* **misc**: Fix editor key handling, closes [#9189](https://github.com/jaworldwideorg/OneJA-Bot/issues/9189) ([8be822b](https://github.com/jaworldwideorg/OneJA-Bot/commit/8be822b))

#### Styles

* **misc**: Add CometAPI model provider and chat models, closes [#9065](https://github.com/jaworldwideorg/OneJA-Bot/issues/9065) ([575e334](https://github.com/jaworldwideorg/OneJA-Bot/commit/575e334))
* **misc**: Update i18n, closes [#9146](https://github.com/jaworldwideorg/OneJA-Bot/issues/9146) ([e6fc02e](https://github.com/jaworldwideorg/OneJA-Bot/commit/e6fc02e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-10 12:21:31 +00:00
GH Action - Upstream Sync 77151d8c9e Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-09-10 12:11:24 +00:00
Jamie Stivala 26012932f3 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-10 10:38:16 +02:00
lobehubbot 2311feeb36 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-08 10:48:22 +00:00
semantic-release-bot 4ddbe68715 🔖 chore(release): v1.124.0 [skip ci]
## [Version&nbsp;1.124.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.123.0...v1.124.0)
<sup>Released on **2025-09-08**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor to remove edge runtime and add more tests, remove edge runtime.

####  Features

- **misc**: ChatInput support rich text and support parallel send.

#### 🐛 Bug Fixes

- **misc**: Enhance NewAPI with environment variables and fix routers compatibility, fix ChatInput send command switch, revert V1 Mobile.

#### 💄 Styles

- **misc**: Update doubao-seed-1.6-vision models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor to remove edge runtime and add more tests, closes [#9133](https://github.com/jaworldwideorg/OneJA-Bot/issues/9133) ([6f87034](https://github.com/jaworldwideorg/OneJA-Bot/commit/6f87034))
* **misc**: Remove edge runtime, closes [#9085](https://github.com/jaworldwideorg/OneJA-Bot/issues/9085) ([d3544f9](https://github.com/jaworldwideorg/OneJA-Bot/commit/d3544f9))

#### What's improved

* **misc**: ChatInput support rich text and support parallel send, closes [#8964](https://github.com/jaworldwideorg/OneJA-Bot/issues/8964) ([38d9d98](https://github.com/jaworldwideorg/OneJA-Bot/commit/38d9d98))

#### What's fixed

* **misc**: Enhance NewAPI with environment variables and fix routers compatibility, closes [#9110](https://github.com/jaworldwideorg/OneJA-Bot/issues/9110) ([a66856d](https://github.com/jaworldwideorg/OneJA-Bot/commit/a66856d))
* **misc**: Fix ChatInput send command switch, closes [#9131](https://github.com/jaworldwideorg/OneJA-Bot/issues/9131) ([4d5246a](https://github.com/jaworldwideorg/OneJA-Bot/commit/4d5246a))
* **misc**: Revert V1 Mobile, closes [#9143](https://github.com/jaworldwideorg/OneJA-Bot/issues/9143) ([b385602](https://github.com/jaworldwideorg/OneJA-Bot/commit/b385602))

#### Styles

* **misc**: Update doubao-seed-1.6-vision models, closes [#9052](https://github.com/jaworldwideorg/OneJA-Bot/issues/9052) ([df2d001](https://github.com/jaworldwideorg/OneJA-Bot/commit/df2d001))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-08 10:47:48 +00:00
Jamie Stivala 9087970623 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-08 12:38:22 +02:00
lobehubbot fae21c2dd9 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-05 10:20:23 +00:00
semantic-release-bot 378cd4e092 🔖 chore(release): v1.123.0 [skip ci]
## [Version&nbsp;1.123.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.122.1...v1.123.0)
<sup>Released on **2025-09-05**</sup>

#### ♻ Code Refactoring

- **misc**: Make LobeNextAuthDBAdapter Edge Compatible.

####  Features

- **misc**: Add NewAPI as a router provider for multi-model aggregation.

#### 🐛 Bug Fixes

- **misc**: Fix mobile header title to loog not ellipsis, not use branch topic when this topic is not save.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Make LobeNextAuthDBAdapter Edge Compatible, closes [#9088](https://github.com/jaworldwideorg/OneJA-Bot/issues/9088) ([411f88e](https://github.com/jaworldwideorg/OneJA-Bot/commit/411f88e))

#### What's improved

* **misc**: Add NewAPI as a router provider for multi-model aggregation, closes [#9041](https://github.com/jaworldwideorg/OneJA-Bot/issues/9041) [/github.com/lobehub/lobe-chat/pull/9041#pullrequestreview-3183464594](https://github.com//github.com/lobehub/lobe-chat/pull/9041/issues/pullrequestreview-3183464594) ([7e291c2](https://github.com/jaworldwideorg/OneJA-Bot/commit/7e291c2))

#### What's fixed

* **misc**: Fix mobile header title to loog not ellipsis, closes [#9109](https://github.com/jaworldwideorg/OneJA-Bot/issues/9109) ([9b8435b](https://github.com/jaworldwideorg/OneJA-Bot/commit/9b8435b))
* **misc**: Not use branch topic when this topic is not save, closes [#9083](https://github.com/jaworldwideorg/OneJA-Bot/issues/9083) ([f534d19](https://github.com/jaworldwideorg/OneJA-Bot/commit/f534d19))

#### Styles

* **misc**: Update i18n, closes [#9095](https://github.com/jaworldwideorg/OneJA-Bot/issues/9095) ([1080ff3](https://github.com/jaworldwideorg/OneJA-Bot/commit/1080ff3))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-05 10:19:51 +00:00
Jamie Stivala 110d0eea05 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-09-05 12:09:41 +02:00
lobehubbot 8c35518df2 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 13:25:12 +00:00
semantic-release-bot a9728bb17f 🔖 chore(release): v1.122.1 [skip ci]
### [Version&nbsp;1.122.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.122.0...v1.122.1)
<sup>Released on **2025-09-04**</sup>

#### ♻ Code Refactoring

- **misc**: Make LobeNextAuthDBAdapter Edge Compatible.

#### 💄 Styles

- **misc**: Update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Make LobeNextAuthDBAdapter Edge Compatible, closes [#8188](https://github.com/jaworldwideorg/OneJA-Bot/issues/8188) ([f456e91](https://github.com/jaworldwideorg/OneJA-Bot/commit/f456e91))

#### Styles

* **misc**: Update i18n, closes [#9062](https://github.com/jaworldwideorg/OneJA-Bot/issues/9062) ([970ece0](https://github.com/jaworldwideorg/OneJA-Bot/commit/970ece0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-04 13:24:41 +00:00
Jamie Stivala 9aa3b2aad1 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-09-04 15:13:50 +02:00
lobehubbot fd1bd50910 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-04 08:28:04 +00:00
semantic-release-bot 99d70fcf19 🔖 chore(release): v1.122.0 [skip ci]
## [Version&nbsp;1.122.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.121.0...v1.122.0)
<sup>Released on **2025-09-04**</sup>

####  Features

- **misc**: Refactor to speed up send message in server mode.

#### 🐛 Bug Fixes

- **modelProvider**: Add lmstudio to provider whitelist to enable fetchOnClient toggle.
- **misc**: Support base64 image from markdown image syntax.

#### 💄 Styles

- **misc**: Update the price of the o3 model in OpenRouter.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Refactor to speed up send message in server mode, closes [#9046](https://github.com/jaworldwideorg/OneJA-Bot/issues/9046) ([4813b6d](https://github.com/jaworldwideorg/OneJA-Bot/commit/4813b6d))

#### What's fixed

* **modelProvider**: Add lmstudio to provider whitelist to enable fetchOnClient toggle, closes [#9067](https://github.com/jaworldwideorg/OneJA-Bot/issues/9067) ([e58864f](https://github.com/jaworldwideorg/OneJA-Bot/commit/e58864f))
* **misc**: Support base64 image from markdown image syntax, closes [#9054](https://github.com/jaworldwideorg/OneJA-Bot/issues/9054) ([d013a16](https://github.com/jaworldwideorg/OneJA-Bot/commit/d013a16))

#### Styles

* **misc**: Update the price of the o3 model in OpenRouter, closes [#9075](https://github.com/jaworldwideorg/OneJA-Bot/issues/9075) ([43ef47c](https://github.com/jaworldwideorg/OneJA-Bot/commit/43ef47c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-04 08:27:32 +00:00
Jamie Stivala 683d0dc50d Merge remote-tracking branch 'origin/main' 2025-09-04 10:18:02 +02:00
Jamie Stivala 0f815847d3 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-04 10:16:52 +02:00
lobehubbot 1f92b737a2 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-03 12:34:44 +00:00
semantic-release-bot df6eceec5e 🔖 chore(release): v1.121.0 [skip ci]
## [Version&nbsp;1.121.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.120.0...v1.121.0)
<sup>Released on **2025-09-03**</sup>

####  Features

- **misc**: Add nano banana Chinese prompt notify.

#### 🐛 Bug Fixes

- **misc**: Fix socks5 proxy not work problem, fix virtuaso minheight was null.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add nano banana Chinese prompt notify, closes [#9038](https://github.com/jaworldwideorg/OneJA-Bot/issues/9038) ([58e19f8](https://github.com/jaworldwideorg/OneJA-Bot/commit/58e19f8))

#### What's fixed

* **misc**: Fix socks5 proxy not work problem, closes [#9053](https://github.com/jaworldwideorg/OneJA-Bot/issues/9053) ([b13563c](https://github.com/jaworldwideorg/OneJA-Bot/commit/b13563c))
* **misc**: Fix virtuaso minheight was null, closes [#9055](https://github.com/jaworldwideorg/OneJA-Bot/issues/9055) ([ef79721](https://github.com/jaworldwideorg/OneJA-Bot/commit/ef79721))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-03 12:34:18 +00:00
Jamie Stivala 67834d75a1 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-09-03 14:24:19 +02:00
lobehubbot 9fd19cf1ee 📝 docs(bot): Auto sync agents & plugin to readme 2025-09-02 09:39:19 +00:00
semantic-release-bot 96e48022d5 🔖 chore(release): v1.120.0 [skip ci]
## [Version&nbsp;1.120.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.119.1...v1.120.0)
<sup>Released on **2025-09-02**</sup>

#### ♻ Code Refactoring

- **model-runtime**: Refactor model-runtime dependencies and clean code.
- **misc**: Remove base path, remove webrtc sync feature flag.

####  Features

- **misc**: Added support for Azure OpenAI Image Generation, rename Gemini 2.5 flash image to Nano Banana.

#### 🐛 Bug Fixes

- **ai-image**: Save config.imageUrl with fullUrl instead of key.
- **misc**: Update enableStreaming name.

#### 💄 Styles

- **misc**: Add upload hint for non-visual model, adjust ControlsForm component to adapt to mobile phone display, Support new provider Nebius, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **model-runtime**: Refactor model-runtime dependencies and clean code, closes [#8997](https://github.com/jaworldwideorg/OneJA-Bot/issues/8997) ([9f7677d](https://github.com/jaworldwideorg/OneJA-Bot/commit/9f7677d))
* **misc**: Remove base path, closes [#9015](https://github.com/jaworldwideorg/OneJA-Bot/issues/9015) ([2a5f8d7](https://github.com/jaworldwideorg/OneJA-Bot/commit/2a5f8d7))
* **misc**: Remove webrtc sync feature flag, closes [#9002](https://github.com/jaworldwideorg/OneJA-Bot/issues/9002) ([0924d98](https://github.com/jaworldwideorg/OneJA-Bot/commit/0924d98))

#### What's improved

* **misc**: Added support for Azure OpenAI Image Generation, closes [#8898](https://github.com/jaworldwideorg/OneJA-Bot/issues/8898) ([6042340](https://github.com/jaworldwideorg/OneJA-Bot/commit/6042340))
* **misc**: Rename Gemini 2.5 flash image to Nano Banana, closes [#9004](https://github.com/jaworldwideorg/OneJA-Bot/issues/9004) ([dac5a6f](https://github.com/jaworldwideorg/OneJA-Bot/commit/dac5a6f))

#### What's fixed

* **ai-image**: Save config.imageUrl with fullUrl instead of key, closes [#9016](https://github.com/jaworldwideorg/OneJA-Bot/issues/9016) ([bad009a](https://github.com/jaworldwideorg/OneJA-Bot/commit/bad009a))
* **misc**: Update enableStreaming name, closes [#8995](https://github.com/jaworldwideorg/OneJA-Bot/issues/8995) ([7c7de40](https://github.com/jaworldwideorg/OneJA-Bot/commit/7c7de40))

#### Styles

* **misc**: Add upload hint for non-visual model, closes [#7969](https://github.com/jaworldwideorg/OneJA-Bot/issues/7969) ([1224f4e](https://github.com/jaworldwideorg/OneJA-Bot/commit/1224f4e))
* **misc**: Adjust ControlsForm component to adapt to mobile phone display, closes [#9013](https://github.com/jaworldwideorg/OneJA-Bot/issues/9013) ([c6038c0](https://github.com/jaworldwideorg/OneJA-Bot/commit/c6038c0))
* **misc**: Support new provider Nebius, closes [#8903](https://github.com/jaworldwideorg/OneJA-Bot/issues/8903) ([c15791d](https://github.com/jaworldwideorg/OneJA-Bot/commit/c15791d))
* **misc**: Update i18n, closes [#9033](https://github.com/jaworldwideorg/OneJA-Bot/issues/9033) ([650e552](https://github.com/jaworldwideorg/OneJA-Bot/commit/650e552))
* **misc**: Update i18n, closes [#9005](https://github.com/jaworldwideorg/OneJA-Bot/issues/9005) ([63760f9](https://github.com/jaworldwideorg/OneJA-Bot/commit/63760f9))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-09-02 09:38:37 +00:00
Jamie Stivala 407dfdefb7 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
#	packages/model-bank/src/aiModels/azure.ts
#	packages/model-runtime/src/azureOpenai/index.ts
2025-09-02 11:27:59 +02:00
lobehubbot a7402f065a 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-30 09:28:51 +00:00
semantic-release-bot 6ef3dfb09b 🔖 chore(release): v1.119.1 [skip ci]
### [Version&nbsp;1.119.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.119.0...v1.119.1)
<sup>Released on **2025-08-30**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the `model-bank` package from `src/config/aiModels`.

#### 🐛 Bug Fixes

- **misc**: Correct totalOutputTokens calculation for XAI provider.

#### 💄 Styles

- **misc**: Add Grok Code Fast 1 model, fix chat session part switch theme issue, fix clerk scrollBox style, ModelFetcher support getting prices, support non-stream mode, update DeepSeek V3.1 & Gemini 2.5 Flash Image Preview models, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the `model-bank` package from `src/config/aiModels`, closes [#8983](https://github.com/jaworldwideorg/OneJA-Bot/issues/8983) ([c65eb09](https://github.com/jaworldwideorg/OneJA-Bot/commit/c65eb09))

#### What's fixed

* **misc**: Correct totalOutputTokens calculation for XAI provider, closes [#8984](https://github.com/jaworldwideorg/OneJA-Bot/issues/8984) ([09ce90a](https://github.com/jaworldwideorg/OneJA-Bot/commit/09ce90a))

#### Styles

* **misc**: Add Grok Code Fast 1 model, closes [#8982](https://github.com/jaworldwideorg/OneJA-Bot/issues/8982) ([dbcec3d](https://github.com/jaworldwideorg/OneJA-Bot/commit/dbcec3d))
* **misc**: Fix chat session part switch theme issue, closes [#8987](https://github.com/jaworldwideorg/OneJA-Bot/issues/8987) ([b7111be](https://github.com/jaworldwideorg/OneJA-Bot/commit/b7111be))
* **misc**: Fix clerk scrollBox style, closes [#8989](https://github.com/jaworldwideorg/OneJA-Bot/issues/8989) ([b25b5a0](https://github.com/jaworldwideorg/OneJA-Bot/commit/b25b5a0))
* **misc**: ModelFetcher support getting prices, closes [#8985](https://github.com/jaworldwideorg/OneJA-Bot/issues/8985) ([58b73ec](https://github.com/jaworldwideorg/OneJA-Bot/commit/58b73ec))
* **misc**: Support non-stream mode, closes [#8751](https://github.com/jaworldwideorg/OneJA-Bot/issues/8751) ([ce623bb](https://github.com/jaworldwideorg/OneJA-Bot/commit/ce623bb))
* **misc**: Update DeepSeek V3.1 & Gemini 2.5 Flash Image Preview models, closes [#8878](https://github.com/jaworldwideorg/OneJA-Bot/issues/8878) ([5d538a2](https://github.com/jaworldwideorg/OneJA-Bot/commit/5d538a2))
* **misc**: Update i18n, closes [#8990](https://github.com/jaworldwideorg/OneJA-Bot/issues/8990) ([136bc5a](https://github.com/jaworldwideorg/OneJA-Bot/commit/136bc5a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-30 09:28:18 +00:00
Jamie Stivala f752aafb12 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	changelog/v1.json
2025-08-30 11:16:55 +02:00
Jamie Stivala d3cc5065c3 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-30 11:16:31 +02:00
lobehubbot 087383e6dd 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-29 11:37:31 +00:00
semantic-release-bot 5a78c6d6ec 🔖 chore(release): v1.119.0 [skip ci]
## [Version&nbsp;1.119.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.118.2...v1.119.0)
<sup>Released on **2025-08-29**</sup>

#### ♻ Code Refactoring

- **misc**: Move chat item into chat.

####  Features

- **misc**: Add new provider AkashChat, ai image support Gemini 2.5 Flash Image, Support Gemini 2.5 Flash Image Preview in OpenRouter.

#### 🐛 Bug Fixes

- **misc**: Add Content-Security-Policy env.

#### 💄 Styles

- **misc**: Support Gemini URL context tool, support html preview, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move chat item into chat, closes [#8970](https://github.com/jaworldwideorg/OneJA-Bot/issues/8970) ([e09817e](https://github.com/jaworldwideorg/OneJA-Bot/commit/e09817e))

#### What's improved

* **misc**: Add new provider AkashChat, closes [#8923](https://github.com/jaworldwideorg/OneJA-Bot/issues/8923) ([2f3bf0f](https://github.com/jaworldwideorg/OneJA-Bot/commit/2f3bf0f))
* **misc**: Ai image support Gemini 2.5 Flash Image, closes [#8966](https://github.com/jaworldwideorg/OneJA-Bot/issues/8966) ([64b969e](https://github.com/jaworldwideorg/OneJA-Bot/commit/64b969e))
* **misc**: Support Gemini 2.5 Flash Image Preview in OpenRouter, closes [#8944](https://github.com/jaworldwideorg/OneJA-Bot/issues/8944) ([23dcf4c](https://github.com/jaworldwideorg/OneJA-Bot/commit/23dcf4c))

#### What's fixed

* **misc**: Add Content-Security-Policy env, closes [#8752](https://github.com/jaworldwideorg/OneJA-Bot/issues/8752) ([9250540](https://github.com/jaworldwideorg/OneJA-Bot/commit/9250540))

#### Styles

* **misc**: Support Gemini URL context tool, closes [#8731](https://github.com/jaworldwideorg/OneJA-Bot/issues/8731) ([5d4ed11](https://github.com/jaworldwideorg/OneJA-Bot/commit/5d4ed11))
* **misc**: Support html preview, closes [#8969](https://github.com/jaworldwideorg/OneJA-Bot/issues/8969) ([82abf6d](https://github.com/jaworldwideorg/OneJA-Bot/commit/82abf6d))
* **misc**: Update i18n, closes [#8975](https://github.com/jaworldwideorg/OneJA-Bot/issues/8975) ([6872798](https://github.com/jaworldwideorg/OneJA-Bot/commit/6872798))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-29 11:36:55 +00:00
Jamie Stivala 05de4f03ea Merge remote-tracking branch 'origin/main'
# Conflicts:
#	changelog/v1.json
2025-08-29 13:25:04 +02:00
Jamie Stivala 645c2bc27b Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-29 13:24:42 +02:00
lobehubbot 6ce5725ba4 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-28 12:28:21 +00:00
semantic-release-bot 13dad4712c 🔖 chore(release): v1.118.2 [skip ci]
### [Version&nbsp;1.118.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.118.1...v1.118.2)
<sup>Released on **2025-08-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop route error.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix desktop route error, closes [#8962](https://github.com/jaworldwideorg/OneJA-Bot/issues/8962) ([27a4b34](https://github.com/jaworldwideorg/OneJA-Bot/commit/27a4b34))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-28 12:27:57 +00:00
Jamie Stivala 999e646b34 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-28 14:16:10 +02:00
lobehubbot ebb2316842 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-28 08:54:51 +00:00
semantic-release-bot ea54d84135 🔖 chore(release): v1.118.1 [skip ci]
### [Version&nbsp;1.118.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.118.0...v1.118.1)
<sup>Released on **2025-08-28**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-28 08:54:21 +00:00
Jamie Stivala 0dfa55b2ec Merge remote-tracking branch 'origin/main' 2025-08-28 10:41:48 +02:00
Jamie Stivala 987752ea8a Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-28 10:41:38 +02:00
lobehubbot 7ac9077680 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-27 09:21:30 +00:00
semantic-release-bot f46fe0828d 🔖 chore(release): v1.118.0 [skip ci]
## [Version&nbsp;1.118.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.117.1...v1.118.0)
<sup>Released on **2025-08-27**</sup>

####  Features

- **image**: Polish ai image.
- **misc**: Add gemini 2.5 flash image for vertex ai.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **image**: Polish ai image, closes [#8915](https://github.com/jaworldwideorg/OneJA-Bot/issues/8915) ([0efe28d](https://github.com/jaworldwideorg/OneJA-Bot/commit/0efe28d))
* **misc**: Add gemini 2.5 flash image for vertex ai, closes [#8943](https://github.com/jaworldwideorg/OneJA-Bot/issues/8943) ([74d9bb5](https://github.com/jaworldwideorg/OneJA-Bot/commit/74d9bb5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-27 09:20:58 +00:00
Jamie Stivala ebf0e015af Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-27 11:08:48 +02:00
Jamie Stivala b4156b2321 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-08-26 11:50:34 +02:00
lobehubbot dc2bae3b72 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-25 08:32:44 +00:00
semantic-release-bot 448ebfed4d 🔖 chore(release): v1.117.1 [skip ci]
### [Version&nbsp;1.117.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.117.0...v1.117.1)
<sup>Released on **2025-08-25**</sup>

#### 🐛 Bug Fixes

- **files**: Remove force-static rendering to enable session access.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **files**: Remove force-static rendering to enable session access, closes [#8900](https://github.com/jaworldwideorg/OneJA-Bot/issues/8900) ([6100d21](https://github.com/jaworldwideorg/OneJA-Bot/commit/6100d21))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-25 08:32:14 +00:00
Jamie Stivala fd41ff3328 Merge remote-tracking branch 'origin/main' 2025-08-25 10:21:18 +02:00
Jamie Stivala eed9a8c987 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-25 10:21:05 +02:00
lobehubbot 855ec8a294 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-22 11:22:08 +00:00
semantic-release-bot 643413ff47 🔖 chore(release): v1.117.0 [skip ci]
## [Version&nbsp;1.117.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.116.0...v1.117.0)
<sup>Released on **2025-08-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move database to packages.

####  Features

- **misc**: Add Azure image generation models to configuration, Add support for Azure OpenAI image generation and editing, Enhance error logging for Azure Image API response handling, Improve Azure image generation response handling and logging, Update Azure model configs with 'auto' size default and fix deployment IDs.

#### 💄 Styles

- **misc**: Update mistral model vision ability.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move database to packages, closes [#8874](https://github.com/jaworldwideorg/OneJA-Bot/issues/8874) ([af1f715](https://github.com/jaworldwideorg/OneJA-Bot/commit/af1f715))

#### What's improved

* **misc**: Add Azure image generation models to configuration ([c0ba087](https://github.com/jaworldwideorg/OneJA-Bot/commit/c0ba087))
* **misc**: Add support for Azure OpenAI image generation and editing ([65547bb](https://github.com/jaworldwideorg/OneJA-Bot/commit/65547bb))
* **misc**: Enhance error logging for Azure Image API response handling ([2c17743](https://github.com/jaworldwideorg/OneJA-Bot/commit/2c17743))
* **misc**: Improve Azure image generation response handling and logging ([8b384ed](https://github.com/jaworldwideorg/OneJA-Bot/commit/8b384ed))
* **misc**: Update Azure model configs with 'auto' size default and fix deployment IDs ([700b027](https://github.com/jaworldwideorg/OneJA-Bot/commit/700b027))

#### Styles

* **misc**: Update mistral model vision ability, closes [#8885](https://github.com/jaworldwideorg/OneJA-Bot/issues/8885) ([915c0ff](https://github.com/jaworldwideorg/OneJA-Bot/commit/915c0ff))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-22 11:21:37 +00:00
Jamie Stivala 7eff0843df Merge branch 'feat/azure-image-gen'
# Conflicts:
#	packages/model-runtime/src/azureOpenai/index.ts
#	src/config/aiModels/azure.ts
2025-08-22 13:11:04 +02:00
Jamie Stivala 44f9863f4c Merge branch 'feat/local-development'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-08-22 13:10:42 +02:00
Jamie Stivala fa87c28902 📝 docs: document development mode setup using Docker Compose, including PostgreSQL, MinIO, and SearxNG 2025-08-22 13:10:13 +02:00
Jamie Stivala 2c17743acb feat: Enhance error logging for Azure Image API response handling
- Add truncation for lengthy raw responses in error logs
- Include raw response details when parsing failures occur
- Improve error messages for missing or invalid data arrays
2025-08-22 13:01:14 +02:00
Jamie Stivala 63aba035ab 🔨 chore: Add comprehensive tests for createImage in Azure OpenAI integration
- Covers various response scenarios (e.g., JSON, bodyAsText, b64_json)
- Adds error handling tests for invalid responses (e.g., empty data, missing fields)
- Includes tests for editing images and handling multiple image URLs
2025-08-22 12:55:47 +02:00
Jamie Stivala 8b384edc08 feat: Improve Azure image generation response handling and logging
- Replace `debug` instance with a dedicated `azureImageLogger`
- Add detailed error handling to parse Azure Image API JSON responses
- Normalize and validate API response shapes to ensure consistency
2025-08-22 12:40:57 +02:00
Jamie Stivala 0ce02d7cc2 Merge branch 'lobehub:main' into feat/local-development 2025-08-22 11:16:01 +02:00
Jamie Stivala 700b02777c feat: Update Azure model configs with 'auto' size default and fix deployment IDs 2025-08-22 11:13:01 +02:00
Jamie Stivala c0ba087c29 feat: Add Azure image generation models to configuration 2025-08-22 11:07:10 +02:00
Jamie Stivala 39652787be Merge remote-tracking branch 'upstream/main' into feat/azure-image-gen 2025-08-22 10:46:03 +02:00
lobehubbot d5d48af83e 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-21 16:46:29 +00:00
semantic-release-bot eca8ce4027 🔖 chore(release): v1.116.0 [skip ci]
## [Version&nbsp;1.116.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.115.0...v1.116.0)
<sup>Released on **2025-08-21**</sup>

####  Features

- **misc**: Add support for Azure image models and implement `createImage` API method.

#### 🐛 Bug Fixes

- **misc**: Can't load custom provider config.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add support for Azure image models and implement `createImage` API method ([c3ae413](https://github.com/jaworldwideorg/OneJA-Bot/commit/c3ae413))

#### What's fixed

* **misc**: Can't load custom provider config, closes [#8880](https://github.com/jaworldwideorg/OneJA-Bot/issues/8880) ([9ec3315](https://github.com/jaworldwideorg/OneJA-Bot/commit/9ec3315))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-21 16:45:55 +00:00
Jamie Stivala 65547bb683 feat: Add support for Azure OpenAI image generation and editing 2025-08-21 18:26:05 +02:00
Jamie Stivala 07c4936770 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-21 18:22:39 +02:00
Jamie Stivala c3ae4138e3 feat: add support for Azure image models and implement createImage API method 2025-08-21 18:20:34 +02:00
Jamie Stivala 920d277108 Merge branch 'feat/local-development' 2025-08-21 15:49:00 +02:00
Jamie Stivala 0da00bb3ab 🔧 chore: add NEXT_PUBLIC_ENABLE_NEXT_AUTH to .env.example for development setup 2025-08-21 15:48:48 +02:00
Jamie Stivala 0b012e06fb Merge branch 'feat/local-development' 2025-08-21 15:45:12 +02:00
Jamie Stivala 131b6487a9 Merge remote-tracking branch 'origin/feat/local-development' into feat/local-development
# Conflicts:
#	docker-compose/setup.sh
2025-08-21 15:41:53 +02:00
Jamie Stivala ee0f763748 🔧 chore: update S3 configuration in .env.example and enhance setup.sh to ensure MinIO variables are set correctly 2025-08-21 15:40:55 +02:00
Jamie Stivala b08d9236cb Merge branch 'feat/local-development' 2025-08-21 15:20:57 +02:00
Jamie Stivala 3489daa515 🔧 chore: update S3 configuration in .env.example and enhance setup.sh to ensure MinIO variables are set correctly 2025-08-21 15:20:24 +02:00
Jamie Stivala 24e92a69b7 Merge remote-tracking branch 'origin/main' 2025-08-21 14:49:26 +02:00
Jamie Stivala a306818ed8 Merge branch 'feat/local-development' 2025-08-21 14:49:19 +02:00
Jamie Stivala 56c0092705 🔧 chore: update default development ports in .env.example for Lobe app and auth URL 2025-08-21 14:49:03 +02:00
lobehubbot e2389b6895 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-21 12:41:16 +00:00
semantic-release-bot 9fe6493348 🔖 chore(release): v1.115.0 [skip ci]
## [Version&nbsp;1.115.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.114.0...v1.115.0)
<sup>Released on **2025-08-21**</sup>

#### ♻ Code Refactoring

- **misc**: Move chain into `@lobechat/prompts`.

####  Features

- **misc**: Add development Docker Compose setup with PostgreSQL, MinIO, and SearxNG services.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move chain into `@lobechat/prompts`, closes [#8875](https://github.com/jaworldwideorg/OneJA-Bot/issues/8875) ([c576b97](https://github.com/jaworldwideorg/OneJA-Bot/commit/c576b97))

#### What's improved

* **misc**: Add development Docker Compose setup with PostgreSQL, MinIO, and SearxNG services ([ce5332a](https://github.com/jaworldwideorg/OneJA-Bot/commit/ce5332a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-21 12:40:46 +00:00
Jamie Stivala 87a76cda0d 🔥 chore: Remove unused development database Dockerfile.dev.database 2025-08-21 14:25:25 +02:00
Jamie Stivala 7e0b44263a Merge branch 'feat/local-development'
# Conflicts:
#	CHANGELOG.md
#	docker-compose/development/.env.example
#	docker-compose/development/docker-compose.yml
2025-08-21 14:24:24 +02:00
Jamie Stivala 15149341e1 Merge remote-tracking branch 'upstream/main' into feat/local-development 2025-08-21 14:00:51 +02:00
Jamie Stivala ce5332ada1 feat: Add development Docker Compose setup with PostgreSQL, MinIO, and SearxNG services 2025-08-21 13:57:49 +02:00
Jamie Stivala ecca8bd982 Merge remote-tracking branch 'upstream/main' 2025-08-20 11:36:46 +02:00
semantic-release-bot 388f529940 🔖 chore(release): v1.114.0 [skip ci]
## [Version&nbsp;1.114.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.113.1...v1.114.0)
<sup>Released on **2025-08-19**</sup>

####  Features

- **models**: Add Qwen Image Edit model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **models**: Add Qwen Image Edit model, closes [#8851](https://github.com/jaworldwideorg/OneJA-Bot/issues/8851) ([4d7a060](https://github.com/jaworldwideorg/OneJA-Bot/commit/4d7a060))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-19 15:53:01 +00:00
Jamie Stivala 7ee9c23434 Merge remote-tracking branch 'origin/main' 2025-08-19 17:36:52 +02:00
Jamie Stivala 85cea19f7e Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-19 17:36:15 +02:00
semantic-release-bot b991c5360e 🔖 chore(release): v1.113.1 [skip ci]
### [Version&nbsp;1.113.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.113.0...v1.113.1)
<sup>Released on **2025-08-19**</sup>

#### 🐛 Bug Fixes

- **mcp**: Use customParams for environment settings fallback.
- **misc**: Support Grok thinking models in AiHubMix, The 'stream_options' parameter is only allowed when 'stream' is enabled.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **mcp**: Use customParams for environment settings fallback, closes [#8814](https://github.com/jaworldwideorg/OneJA-Bot/issues/8814) ([ab043d4](https://github.com/jaworldwideorg/OneJA-Bot/commit/ab043d4))
* **misc**: Support Grok thinking models in AiHubMix, closes [#8713](https://github.com/jaworldwideorg/OneJA-Bot/issues/8713) ([ffa9b1b](https://github.com/jaworldwideorg/OneJA-Bot/commit/ffa9b1b))
* **misc**: The 'stream_options' parameter is only allowed when 'stream' is enabled, closes [#8778](https://github.com/jaworldwideorg/OneJA-Bot/issues/8778) ([fcc32d5](https://github.com/jaworldwideorg/OneJA-Bot/commit/fcc32d5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-19 08:52:55 +00:00
Jamie Stivala c79541bacc Merge remote-tracking branch 'origin/main' 2025-08-19 10:37:30 +02:00
Jamie Stivala 377002cb3c Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-19 10:36:43 +02:00
lobehubbot 2ac167a912 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-18 04:45:09 +00:00
semantic-release-bot dc767d7fee 🔖 chore(release): v1.113.0 [skip ci]
## [Version&nbsp;1.113.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.112.0...v1.113.0)
<sup>Released on **2025-08-18**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor const folder to a new package, refactor prompts folder to the `@lobechat/prompts` pacakge, 重构ArgsInput组件.

####  Features

- **provider**: Add BFL provider support for image generation.

#### 🐛 Bug Fixes

- **db**: Desktop local db can't vectorization.
- **misc**: Improve mcp tracing with user config.

#### 💄 Styles

- **misc**: Add Imagen 4 GA models, style improve auth sign in box loading.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor const folder to a new package, closes [#8756](https://github.com/jaworldwideorg/OneJA-Bot/issues/8756) ([30a4734](https://github.com/jaworldwideorg/OneJA-Bot/commit/30a4734))
* **misc**: Refactor prompts folder to the `@lobechat/prompts` pacakge, closes [#8810](https://github.com/jaworldwideorg/OneJA-Bot/issues/8810) ([d82e7bb](https://github.com/jaworldwideorg/OneJA-Bot/commit/d82e7bb))
* **misc**: 重构 ArgsInput 组件, closes [#8765](https://github.com/jaworldwideorg/OneJA-Bot/issues/8765) ([0905559](https://github.com/jaworldwideorg/OneJA-Bot/commit/0905559))

#### What's improved

* **provider**: Add BFL provider support for image generation, closes [#8806](https://github.com/jaworldwideorg/OneJA-Bot/issues/8806) ([519e03e](https://github.com/jaworldwideorg/OneJA-Bot/commit/519e03e))

#### What's fixed

* **db**: Desktop local db can't vectorization, closes [#8830](https://github.com/jaworldwideorg/OneJA-Bot/issues/8830) ([a00fd9d](https://github.com/jaworldwideorg/OneJA-Bot/commit/a00fd9d))
* **misc**: Improve mcp tracing with user config, closes [#8827](https://github.com/jaworldwideorg/OneJA-Bot/issues/8827) ([5cab2ee](https://github.com/jaworldwideorg/OneJA-Bot/commit/5cab2ee))

#### Styles

* **misc**: Add Imagen 4 GA models, closes [#8799](https://github.com/jaworldwideorg/OneJA-Bot/issues/8799) ([2e9ad20](https://github.com/jaworldwideorg/OneJA-Bot/commit/2e9ad20))
* **misc**: Style improve auth sign in box loading, closes [#8805](https://github.com/jaworldwideorg/OneJA-Bot/issues/8805) ([62f5a1b](https://github.com/jaworldwideorg/OneJA-Bot/commit/62f5a1b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-18 04:44:34 +00:00
Jamie Stivala e1d1d8e20f Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-18 06:25:56 +02:00
semantic-release-bot 4114d12be6 🔖 chore(release): v1.112.0 [skip ci]
## [Version&nbsp;1.112.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.111.11...v1.112.0)
<sup>Released on **2025-08-15**</sup>

####  Features

- **feature-flags**: Add ai_image flag to control AI painting UI.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **feature-flags**: Add ai_image flag to control AI painting UI, closes [#8797](https://github.com/jaworldwideorg/OneJA-Bot/issues/8797) ([a1c66c8](https://github.com/jaworldwideorg/OneJA-Bot/commit/a1c66c8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-15 09:45:56 +00:00
Jamie Stivala 45dc85e4e8 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-08-15 11:30:53 +02:00
Jamie Stivala 226a56b7b7 Merge remote-tracking branch 'upstream/main' 2025-08-14 11:29:57 +02:00
GH Action - Upstream Sync 23f141d7b8 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-08-14 06:10:12 +00:00
lobehubbot 676f35b9e0 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-13 11:04:00 +00:00
semantic-release-bot 098d1c5fab 🔖 chore(release): v1.106.2 [skip ci]
### [Version&nbsp;1.106.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.106.1...v1.106.2)
<sup>Released on **2025-08-13**</sup>

#### 💄 Styles

- **misc**: Update Mistral AI models & Optimize many model providers fetching.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Update Mistral AI models & Optimize many model providers fetching, closes [#8644](https://github.com/jaworldwideorg/OneJA-Bot/issues/8644) ([1d466e5](https://github.com/jaworldwideorg/OneJA-Bot/commit/1d466e5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-13 11:03:33 +00:00
Jamie Stivala 36e539b31f Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-08-13 12:48:38 +02:00
Jamie Stivala 76eedda9dd Updated the branding to OneAI reflecting marketing changes 2025-08-13 12:46:26 +02:00
GH Action - Upstream Sync 4eb2510471 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-08-12 18:09:34 +00:00
GH Action - Upstream Sync 9886517312 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-08-12 12:11:39 +00:00
lobehubbot 25a34de6a7 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-12 08:12:20 +00:00
semantic-release-bot 846a0f5f74 🔖 chore(release): v1.106.1 [skip ci]
### [Version&nbsp;1.106.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.106.0...v1.106.1)
<sup>Released on **2025-08-12**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor model-runtime to a seperated package.

#### 💄 Styles

- **misc**: Adjust near bottom size on thinking scroll, improve Gemini error display with promptFeedback, Support new GPT-5 Verbosity params.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor model-runtime to a seperated package, closes [#8763](https://github.com/jaworldwideorg/OneJA-Bot/issues/8763) ([e5eb7a2](https://github.com/jaworldwideorg/OneJA-Bot/commit/e5eb7a2))

#### Styles

* **misc**: Adjust near bottom size on thinking scroll, closes [#8772](https://github.com/jaworldwideorg/OneJA-Bot/issues/8772) ([1fae490](https://github.com/jaworldwideorg/OneJA-Bot/commit/1fae490))
* **misc**: Improve Gemini error display with promptFeedback, closes [#8707](https://github.com/jaworldwideorg/OneJA-Bot/issues/8707) ([51ad399](https://github.com/jaworldwideorg/OneJA-Bot/commit/51ad399))
* **misc**: Support new GPT-5 Verbosity params, closes [#8715](https://github.com/jaworldwideorg/OneJA-Bot/issues/8715) ([0a724aa](https://github.com/jaworldwideorg/OneJA-Bot/commit/0a724aa))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-12 08:11:51 +00:00
Jamie Stivala a3fe6e6408 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-08-12 09:56:36 +02:00
lobehubbot 91ef9bacfa 📝 docs(bot): Auto sync agents & plugin to readme 2025-08-11 07:18:52 +00:00
semantic-release-bot f9479344b4 🔖 chore(release): v1.106.0 [skip ci]
## [Version&nbsp;1.106.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.105.2...v1.106.0)
<sup>Released on **2025-08-11**</sup>

#### ♻ Code Refactoring

- **pricing**: Introduce new pricing system.
- **misc**: Move types to separate package, refactor trace type.

####  Features

- **misc**: Add GPT-5 series models, support 302ai provider, support aihubmix provider, support gpt-oss in ollama provider, support mcp plugin install from web.

#### 🐛 Bug Fixes

- **desktop**: Settings window can't exit when fullscreen.
- **pricing**: Adjust cachedInput values for GPT-5 models.
- **misc**: Aihubmix provider request headers, Break line for Gemini Artifacts, fix fail to fetch aihubmix model on client mode, fix ollama model output without thinking, fix remote avatar broken in desktop, fix remote avatar broken in desktop again, missing languages it-IT, pl-PL, nl-NL, Optimize Gemini error message display & Filter empty messages, provider config checker uses outdated API key, Solve the cache problem caused by the same dom id when sharing pictures, when s3 files not exist , global files should delete.

#### 💄 Styles

- **misc**: Add Claude Opus 4.1 model, add context menu for desktop, Add descriptions for the FLUX.1 Krea and Qwen Image, Add mask effect to thinking scroll, fix provider setting page hydration error, improve thinking auto scroll style, support different model tabs, Support session switch shortcut key, update i18n, update i18n, update i18n, update i18n, Update mask style, update models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **pricing**: Introduce new pricing system, closes [#8681](https://github.com/jaworldwideorg/OneJA-Bot/issues/8681) ([96b7508](https://github.com/jaworldwideorg/OneJA-Bot/commit/96b7508))
* **misc**: Move types to separate package, closes [#8635](https://github.com/jaworldwideorg/OneJA-Bot/issues/8635) ([3cc4a54](https://github.com/jaworldwideorg/OneJA-Bot/commit/3cc4a54))
* **misc**: Refactor trace type, closes [#8699](https://github.com/jaworldwideorg/OneJA-Bot/issues/8699) ([4e71af7](https://github.com/jaworldwideorg/OneJA-Bot/commit/4e71af7))

#### What's improved

* **misc**: Add GPT-5 series models, closes [#8711](https://github.com/jaworldwideorg/OneJA-Bot/issues/8711) ([600c29b](https://github.com/jaworldwideorg/OneJA-Bot/commit/600c29b))
* **misc**: Support 302ai provider, closes [#8362](https://github.com/jaworldwideorg/OneJA-Bot/issues/8362) ([e172055](https://github.com/jaworldwideorg/OneJA-Bot/commit/e172055))
* **misc**: Support aihubmix provider, closes [#8038](https://github.com/jaworldwideorg/OneJA-Bot/issues/8038) ([4db6485](https://github.com/jaworldwideorg/OneJA-Bot/commit/4db6485))
* **misc**: Support gpt-oss in ollama provider, closes [#8682](https://github.com/jaworldwideorg/OneJA-Bot/issues/8682) ([6e0c386](https://github.com/jaworldwideorg/OneJA-Bot/commit/6e0c386))
* **misc**: Support mcp plugin install from web, closes [#8680](https://github.com/jaworldwideorg/OneJA-Bot/issues/8680) ([022d858](https://github.com/jaworldwideorg/OneJA-Bot/commit/022d858))

#### What's fixed

* **desktop**: Settings window can't exit when fullscreen, closes [#8633](https://github.com/jaworldwideorg/OneJA-Bot/issues/8633) ([954eb2c](https://github.com/jaworldwideorg/OneJA-Bot/commit/954eb2c))
* **pricing**: Adjust cachedInput values for GPT-5 models, closes [#8723](https://github.com/jaworldwideorg/OneJA-Bot/issues/8723) ([652bf08](https://github.com/jaworldwideorg/OneJA-Bot/commit/652bf08))
* **misc**: Aihubmix provider request headers, closes [#8654](https://github.com/jaworldwideorg/OneJA-Bot/issues/8654) ([af07101](https://github.com/jaworldwideorg/OneJA-Bot/commit/af07101))
* **misc**: Break line for Gemini Artifacts, closes [#8627](https://github.com/jaworldwideorg/OneJA-Bot/issues/8627) ([65609dd](https://github.com/jaworldwideorg/OneJA-Bot/commit/65609dd))
* **misc**: Fix fail to fetch aihubmix model on client mode, closes [#8689](https://github.com/jaworldwideorg/OneJA-Bot/issues/8689) ([3dcc5da](https://github.com/jaworldwideorg/OneJA-Bot/commit/3dcc5da))
* **misc**: Fix ollama model output without thinking, closes [#8686](https://github.com/jaworldwideorg/OneJA-Bot/issues/8686) ([d95c7f4](https://github.com/jaworldwideorg/OneJA-Bot/commit/d95c7f4))
* **misc**: Fix remote avatar broken in desktop, closes [#8673](https://github.com/jaworldwideorg/OneJA-Bot/issues/8673) ([7eae430](https://github.com/jaworldwideorg/OneJA-Bot/commit/7eae430))
* **misc**: Fix remote avatar broken in desktop again, closes [#8688](https://github.com/jaworldwideorg/OneJA-Bot/issues/8688) ([41b4363](https://github.com/jaworldwideorg/OneJA-Bot/commit/41b4363))
* **misc**: Missing languages it-IT, pl-PL, nl-NL, closes [#8710](https://github.com/jaworldwideorg/OneJA-Bot/issues/8710) ([b46fa8e](https://github.com/jaworldwideorg/OneJA-Bot/commit/b46fa8e))
* **misc**: Optimize Gemini error message display & Filter empty messages, closes [#8489](https://github.com/jaworldwideorg/OneJA-Bot/issues/8489) ([5b409cc](https://github.com/jaworldwideorg/OneJA-Bot/commit/5b409cc))
* **misc**: Provider config checker uses outdated API key, closes [#8666](https://github.com/jaworldwideorg/OneJA-Bot/issues/8666) ([3a3e73e](https://github.com/jaworldwideorg/OneJA-Bot/commit/3a3e73e))
* **misc**: Solve the cache problem caused by the same dom id when sharing pictures, closes [#8704](https://github.com/jaworldwideorg/OneJA-Bot/issues/8704) ([68aad95](https://github.com/jaworldwideorg/OneJA-Bot/commit/68aad95))
* **misc**: When s3 files not exist , global files should delete ([7c1ca41](https://github.com/jaworldwideorg/OneJA-Bot/commit/7c1ca41))

#### Styles

* **misc**: Add Claude Opus 4.1 model, closes [#8683](https://github.com/jaworldwideorg/OneJA-Bot/issues/8683) ([ceb5289](https://github.com/jaworldwideorg/OneJA-Bot/commit/ceb5289))
* **misc**: Add context menu for desktop, closes [#8691](https://github.com/jaworldwideorg/OneJA-Bot/issues/8691) ([0b30d05](https://github.com/jaworldwideorg/OneJA-Bot/commit/0b30d05))
* **misc**: Add descriptions for the FLUX.1 Krea and Qwen Image, closes [#8678](https://github.com/jaworldwideorg/OneJA-Bot/issues/8678) ([769fda0](https://github.com/jaworldwideorg/OneJA-Bot/commit/769fda0))
* **misc**: Add mask effect to thinking scroll, closes [#8729](https://github.com/jaworldwideorg/OneJA-Bot/issues/8729) ([4cefafd](https://github.com/jaworldwideorg/OneJA-Bot/commit/4cefafd))
* **misc**: Fix provider setting page hydration error, closes [#8695](https://github.com/jaworldwideorg/OneJA-Bot/issues/8695) ([88e7d2a](https://github.com/jaworldwideorg/OneJA-Bot/commit/88e7d2a))
* **misc**: Improve thinking auto scroll style, closes [#8719](https://github.com/jaworldwideorg/OneJA-Bot/issues/8719) ([acec55f](https://github.com/jaworldwideorg/OneJA-Bot/commit/acec55f))
* **misc**: Support different model tabs, closes [#8693](https://github.com/jaworldwideorg/OneJA-Bot/issues/8693) ([6d531d7](https://github.com/jaworldwideorg/OneJA-Bot/commit/6d531d7))
* **misc**: Support session switch shortcut key, closes [#8626](https://github.com/jaworldwideorg/OneJA-Bot/issues/8626) ([efc7eaf](https://github.com/jaworldwideorg/OneJA-Bot/commit/efc7eaf))
* **misc**: Update i18n, closes [#8734](https://github.com/jaworldwideorg/OneJA-Bot/issues/8734) ([327a564](https://github.com/jaworldwideorg/OneJA-Bot/commit/327a564))
* **misc**: Update i18n, closes [#8725](https://github.com/jaworldwideorg/OneJA-Bot/issues/8725) ([d9642fc](https://github.com/jaworldwideorg/OneJA-Bot/commit/d9642fc))
* **misc**: Update i18n, closes [#8684](https://github.com/jaworldwideorg/OneJA-Bot/issues/8684) ([926fa9a](https://github.com/jaworldwideorg/OneJA-Bot/commit/926fa9a))
* **misc**: Update i18n, closes [#8629](https://github.com/jaworldwideorg/OneJA-Bot/issues/8629) ([3b87fe7](https://github.com/jaworldwideorg/OneJA-Bot/commit/3b87fe7))
* **misc**: Update mask style, closes [#8555](https://github.com/jaworldwideorg/OneJA-Bot/issues/8555) ([b4ac89d](https://github.com/jaworldwideorg/OneJA-Bot/commit/b4ac89d))
* **misc**: Update models, closes [#8657](https://github.com/jaworldwideorg/OneJA-Bot/issues/8657) ([904ee13](https://github.com/jaworldwideorg/OneJA-Bot/commit/904ee13))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-08-11 07:17:39 +00:00
Jamie Stivala d46d5ed298 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
2025-08-11 09:02:42 +02:00
lobehubbot 3658d6fd24 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-31 12:39:14 +00:00
semantic-release-bot 31f9635ad2 🔖 chore(release): v1.105.2 [skip ci]
### [Version&nbsp;1.105.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.105.1...v1.105.2)
<sup>Released on **2025-07-31**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix oidc oauth callback pages 404.

#### 💄 Styles

- **misc**: Improve mcp plugin calling and display, Support SenseNova V6.5 models, update Aliyun Bailian models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix oidc oauth callback pages 404, closes [#8620](https://github.com/jaworldwideorg/OneJA-Bot/issues/8620) ([d136b6e](https://github.com/jaworldwideorg/OneJA-Bot/commit/d136b6e))

#### Styles

* **misc**: Improve mcp plugin calling and display, closes [#8619](https://github.com/jaworldwideorg/OneJA-Bot/issues/8619) ([14c41c4](https://github.com/jaworldwideorg/OneJA-Bot/commit/14c41c4))
* **misc**: Support SenseNova V6.5 models, closes [#8569](https://github.com/jaworldwideorg/OneJA-Bot/issues/8569) ([411ed7e](https://github.com/jaworldwideorg/OneJA-Bot/commit/411ed7e))
* **misc**: Update Aliyun Bailian models, closes [#8612](https://github.com/jaworldwideorg/OneJA-Bot/issues/8612) ([433e679](https://github.com/jaworldwideorg/OneJA-Bot/commit/433e679))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-31 12:38:43 +00:00
Jamie Stivala 56e4223892 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-31 14:22:50 +02:00
lobehubbot b060cbc2d0 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-30 16:25:02 +00:00
semantic-release-bot ef4a5c253a 🔖 chore(release): v1.105.1 [skip ci]
### [Version&nbsp;1.105.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.105.0...v1.105.1)
<sup>Released on **2025-07-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop auth redirect url error, fix mcp calling missing array content, moonshot assistant messages must not be empty.

#### 💄 Styles

- **misc**: Add volcengine kimi-k2 model, Add Zhipu GLM-4.5 models, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix desktop auth redirect url error, closes [#8597](https://github.com/jaworldwideorg/OneJA-Bot/issues/8597) ([0ed7368](https://github.com/jaworldwideorg/OneJA-Bot/commit/0ed7368))
* **misc**: Fix mcp calling missing array content, closes [#8615](https://github.com/jaworldwideorg/OneJA-Bot/issues/8615) ([b7f8e6e](https://github.com/jaworldwideorg/OneJA-Bot/commit/b7f8e6e))
* **misc**: Moonshot assistant messages must not be empty, closes [#8419](https://github.com/jaworldwideorg/OneJA-Bot/issues/8419) ([a796495](https://github.com/jaworldwideorg/OneJA-Bot/commit/a796495))

#### Styles

* **misc**: Add volcengine kimi-k2 model, closes [#8591](https://github.com/jaworldwideorg/OneJA-Bot/issues/8591) ([9630167](https://github.com/jaworldwideorg/OneJA-Bot/commit/9630167))
* **misc**: Add Zhipu GLM-4.5 models, closes [#8590](https://github.com/jaworldwideorg/OneJA-Bot/issues/8590) ([4f4620c](https://github.com/jaworldwideorg/OneJA-Bot/commit/4f4620c))
* **misc**: Update i18n, closes [#8609](https://github.com/jaworldwideorg/OneJA-Bot/issues/8609) ([21cac39](https://github.com/jaworldwideorg/OneJA-Bot/commit/21cac39))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-30 16:24:33 +00:00
Jamie Stivala 57e98a56ca Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-30 18:07:30 +02:00
lobehubbot 6156c48db7 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 16:10:00 +00:00
semantic-release-bot e875c4699e 🔖 chore(release): v1.105.0 [skip ci]
## [Version&nbsp;1.105.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.104.1...v1.105.0)
<sup>Released on **2025-07-29**</sup>

####  Features

- **misc**: Add support for Okta Authentication.

#### 🐛 Bug Fixes

- **misc**: Fix subscription plan tag display, reorder AppTheme and Locale to fix modal i18n, revert jose to ^5 to fix auth issue on desktop.

#### 💄 Styles

- **misc**: Open new topic by tap Just Chat again, support Minimax T2I models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add support for Okta Authentication, closes [#8547](https://github.com/jaworldwideorg/OneJA-Bot/issues/8547) ([67abdfe](https://github.com/jaworldwideorg/OneJA-Bot/commit/67abdfe))

#### What's fixed

* **misc**: Fix subscription plan tag display, closes [#8599](https://github.com/jaworldwideorg/OneJA-Bot/issues/8599) ([2a3754a](https://github.com/jaworldwideorg/OneJA-Bot/commit/2a3754a))
* **misc**: Reorder AppTheme and Locale to fix modal i18n, closes [#8600](https://github.com/jaworldwideorg/OneJA-Bot/issues/8600) ([3264cf2](https://github.com/jaworldwideorg/OneJA-Bot/commit/3264cf2))
* **misc**: Revert jose to ^5 to fix auth issue on desktop, closes [#8603](https://github.com/jaworldwideorg/OneJA-Bot/issues/8603) ([57118b0](https://github.com/jaworldwideorg/OneJA-Bot/commit/57118b0))

#### Styles

* **misc**: Open new topic by tap Just Chat again, closes [#8426](https://github.com/jaworldwideorg/OneJA-Bot/issues/8426) ([018ca75](https://github.com/jaworldwideorg/OneJA-Bot/commit/018ca75))
* **misc**: Support Minimax T2I models, closes [#8583](https://github.com/jaworldwideorg/OneJA-Bot/issues/8583) ([f8a01aa](https://github.com/jaworldwideorg/OneJA-Bot/commit/f8a01aa))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-29 16:09:25 +00:00
Jamie Stivala 2b60ee21a6 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-29 17:50:56 +02:00
lobehubbot 815594eabb 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-29 08:56:18 +00:00
semantic-release-bot 283bd18f1f 🔖 chore(release): v1.104.1 [skip ci]
### [Version&nbsp;1.104.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.104.0...v1.104.1)
<sup>Released on **2025-07-29**</sup>

#### ♻ Code Refactoring

- **misc**: Clean mcp sitemap, refactor jose-JWT to xor obfuscation.

#### 💄 Styles

- **misc**: Add more OpenAI SDK Text2Image providers, support more Text2Image from Qwen, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Clean mcp sitemap, closes [#8596](https://github.com/jaworldwideorg/OneJA-Bot/issues/8596) ([b9e3e66](https://github.com/jaworldwideorg/OneJA-Bot/commit/b9e3e66))
* **misc**: Refactor jose-JWT to xor obfuscation, closes [#8595](https://github.com/jaworldwideorg/OneJA-Bot/issues/8595) ([be98d56](https://github.com/jaworldwideorg/OneJA-Bot/commit/be98d56))

#### Styles

* **misc**: Add more OpenAI SDK Text2Image providers, closes [#8573](https://github.com/jaworldwideorg/OneJA-Bot/issues/8573) ([403aebd](https://github.com/jaworldwideorg/OneJA-Bot/commit/403aebd))
* **misc**: Support more Text2Image from Qwen, closes [#8574](https://github.com/jaworldwideorg/OneJA-Bot/issues/8574) ([b8c0e2d](https://github.com/jaworldwideorg/OneJA-Bot/commit/b8c0e2d))
* **misc**: Update i18n, closes [#8593](https://github.com/jaworldwideorg/OneJA-Bot/issues/8593) ([356cf0c](https://github.com/jaworldwideorg/OneJA-Bot/commit/356cf0c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-29 08:55:47 +00:00
Jamie Stivala 0ba6109d2b Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-29 10:39:37 +02:00
lobehubbot 8153bf871b 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-28 09:39:19 +00:00
semantic-release-bot cc963d0371 🔖 chore(release): v1.104.0 [skip ci]
## [Version&nbsp;1.104.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.103.3...v1.104.0)
<sup>Released on **2025-07-28**</sup>

####  Features

- **misc**: Implement API Key management functionality, support custom hotkey on desktop.

#### 🐛 Bug Fixes

- **misc**: Fix update hotkey invalid when input mod in desktop, update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider.

#### 💄 Styles

- **misc**: Add Gemini 2.5 Flash-Lite GA model, fix setting window layout size, fix setting window layout when in desktop was disappear, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Implement API Key management functionality, closes [#8535](https://github.com/jaworldwideorg/OneJA-Bot/issues/8535) ([fdaa725](https://github.com/jaworldwideorg/OneJA-Bot/commit/fdaa725))
* **misc**: Support custom hotkey on desktop, closes [#8559](https://github.com/jaworldwideorg/OneJA-Bot/issues/8559) ([b50f121](https://github.com/jaworldwideorg/OneJA-Bot/commit/b50f121))

#### What's fixed

* **misc**: Fix update hotkey invalid when input mod in desktop, closes [#8572](https://github.com/jaworldwideorg/OneJA-Bot/issues/8572) ([07f3e6a](https://github.com/jaworldwideorg/OneJA-Bot/commit/07f3e6a))
* **misc**: Update convertUsage to handle XAI provider and adjust OpenAIStream to pass provider, closes [#8557](https://github.com/jaworldwideorg/OneJA-Bot/issues/8557) ([d1e4a54](https://github.com/jaworldwideorg/OneJA-Bot/commit/d1e4a54))

#### Styles

* **misc**: Add Gemini 2.5 Flash-Lite GA model, closes [#8539](https://github.com/jaworldwideorg/OneJA-Bot/issues/8539) ([404ac21](https://github.com/jaworldwideorg/OneJA-Bot/commit/404ac21))
* **misc**: Fix setting window layout size, closes [#8483](https://github.com/jaworldwideorg/OneJA-Bot/issues/8483) ([4902341](https://github.com/jaworldwideorg/OneJA-Bot/commit/4902341))
* **misc**: Fix setting window layout when in desktop was disappear, closes [#8585](https://github.com/jaworldwideorg/OneJA-Bot/issues/8585) ([74ab822](https://github.com/jaworldwideorg/OneJA-Bot/commit/74ab822))
* **misc**: Update i18n, closes [#8579](https://github.com/jaworldwideorg/OneJA-Bot/issues/8579) ([2eccbc7](https://github.com/jaworldwideorg/OneJA-Bot/commit/2eccbc7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-28 09:38:46 +00:00
Jamie Stivala 0169deb880 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-28 11:23:19 +02:00
Jamie Stivala 0b39093e5a Merge branch 'feat/okta' 2025-07-24 13:39:13 +02:00
Jamie Stivala e9b66bdb3a Added Okta to SSO providers list 2025-07-24 13:38:52 +02:00
Jamie Stivala c0742491f4 Merge branch 'feat/okta' 2025-07-24 13:36:30 +02:00
Jamie Stivala 8a46d41d60 Reverted a micro-change which was changed during some testing (back to original) 2025-07-24 13:36:13 +02:00
Jamie Stivala 8f5b2eb141 Removed Okta references from auth envs (deprecated) 2025-07-24 13:28:55 +02:00
Jamie Stivala 77bea167b1 Merge branch 'feat/okta' 2025-07-24 13:26:46 +02:00
Jamie Stivala c57074d725 Removed Okta Test 2025-07-24 13:23:41 +02:00
Jamie Stivala cb6861ef04 Added Okta as SSO Provider 2025-07-24 13:12:01 +02:00
Jamie Stivala 5f367e1242 Removed deprecated env variables 2025-07-24 13:11:14 +02:00
Jamie Stivala 27917bcca5 Added documentation 2025-07-24 13:07:05 +02:00
lobehubbot 3f8b1dde09 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-24 09:56:37 +00:00
semantic-release-bot 7189d8a81c 🔖 chore(release): v1.103.2 [skip ci]
### [Version&nbsp;1.103.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.103.1...v1.103.2)
<sup>Released on **2025-07-24**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix chat stream in desktop and update shortcut.

#### 💄 Styles

- **misc**: Add cached token count to usage of GoogleAI and VertexAI, fix desktop titlebar style in window, fix sub topic width in md responsive.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix chat stream in desktop and update shortcut, closes [#8520](https://github.com/jaworldwideorg/OneJA-Bot/issues/8520) ([0192140](https://github.com/jaworldwideorg/OneJA-Bot/commit/0192140))

#### Styles

* **misc**: Add cached token count to usage of GoogleAI and VertexAI, closes [#8545](https://github.com/jaworldwideorg/OneJA-Bot/issues/8545) ([66dbb24](https://github.com/jaworldwideorg/OneJA-Bot/commit/66dbb24))
* **misc**: Fix desktop titlebar style in window, closes [#8439](https://github.com/jaworldwideorg/OneJA-Bot/issues/8439) ([fd7662c](https://github.com/jaworldwideorg/OneJA-Bot/commit/fd7662c))
* **misc**: Fix sub topic width in md responsive, closes [#8443](https://github.com/jaworldwideorg/OneJA-Bot/issues/8443) ([9bae13b](https://github.com/jaworldwideorg/OneJA-Bot/commit/9bae13b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-24 09:56:10 +00:00
Jamie Stivala 7767bbbedc Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-24 11:39:49 +02:00
semantic-release-bot a6127a9d82 🔖 chore(release): v1.101.0 [skip ci]
## [Version&nbsp;1.101.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.100.1...v1.101.0)
<sup>Released on **2025-07-23**</sup>

#### ♻ Code Refactoring

- **misc**: Add badge and improve document.

####  Features

- **misc**: Add image generation capabilities using Google AI Imagen API, add Qwen image generation capabilities.

#### 🐛 Bug Fixes

- **groq**: Enable streaming for tool calls and add Kimi K2 model.
- **misc**: Remove debug logging from ModelRuntime and async caller.

#### 💄 Styles

- **misc**: Add notification for desktop, fix lobehub provider `/chat` in desktop, modal list header sticky style, update i18n, Update tray icon.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Add badge and improve document, closes [#8528](https://github.com/jaworldwideorg/OneJA-Bot/issues/8528) ([9fb4b0d](https://github.com/jaworldwideorg/OneJA-Bot/commit/9fb4b0d))

#### What's improved

* **misc**: Add image generation capabilities using Google AI Imagen API, closes [#8503](https://github.com/jaworldwideorg/OneJA-Bot/issues/8503) ([cef8208](https://github.com/jaworldwideorg/OneJA-Bot/commit/cef8208))
* **misc**: Add Qwen image generation capabilities, closes [#8534](https://github.com/jaworldwideorg/OneJA-Bot/issues/8534) ([7e8e5ef](https://github.com/jaworldwideorg/OneJA-Bot/commit/7e8e5ef))

#### What's fixed

* **groq**: Enable streaming for tool calls and add Kimi K2 model, closes [#8510](https://github.com/jaworldwideorg/OneJA-Bot/issues/8510) ([60739bc](https://github.com/jaworldwideorg/OneJA-Bot/commit/60739bc))
* **misc**: Remove debug logging from ModelRuntime and async caller, closes [#8525](https://github.com/jaworldwideorg/OneJA-Bot/issues/8525) ([dd1a635](https://github.com/jaworldwideorg/OneJA-Bot/commit/dd1a635))

#### Styles

* **misc**: Add notification for desktop, closes [#8523](https://github.com/jaworldwideorg/OneJA-Bot/issues/8523) ([4917d17](https://github.com/jaworldwideorg/OneJA-Bot/commit/4917d17))
* **misc**: Fix lobehub provider `/chat` in desktop, closes [#8508](https://github.com/jaworldwideorg/OneJA-Bot/issues/8508) ([c801f9c](https://github.com/jaworldwideorg/OneJA-Bot/commit/c801f9c))
* **misc**: Modal list header sticky style, closes [#8514](https://github.com/jaworldwideorg/OneJA-Bot/issues/8514) ([75273d5](https://github.com/jaworldwideorg/OneJA-Bot/commit/75273d5))
* **misc**: Update i18n, closes [#8537](https://github.com/jaworldwideorg/OneJA-Bot/issues/8537) ([b16f19b](https://github.com/jaworldwideorg/OneJA-Bot/commit/b16f19b))
* **misc**: Update tray icon, closes [#8530](https://github.com/jaworldwideorg/OneJA-Bot/issues/8530) ([2696de4](https://github.com/jaworldwideorg/OneJA-Bot/commit/2696de4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-23 14:25:29 +00:00
GitHub Actions ca841b9fc8 Merge branch 'fix/dynamic-test' 2025-07-23 16:07:24 +02:00
GitHub Actions a506e60458 Merge remote-tracking branch 'origin/main' 2025-07-23 16:00:30 +02:00
GitHub Actions 8a1c21f216 Remove custom git sync script and .gitattributes, switch to using Fork-Sync-With-Upstream GitHub Action in workflow 2025-07-23 16:00:14 +02:00
GitHub Actions 06a1cc2adf Update plugin action tests to use DEFAULT_INBOX_AVATAR constant instead of hardcoded path 2025-07-23 15:53:25 +02:00
semantic-release-bot b5616f0581 🔖 chore(release): v1.101.0 [skip ci]
## [Version&nbsp;1.101.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.100.1...v1.101.0)
<sup>Released on **2025-07-23**</sup>

#### ♻ Code Refactoring

- **misc**: Add badge and improve document.

####  Features

- **misc**: Add image generation capabilities using Google AI Imagen API, add Qwen image generation capabilities.

#### 🐛 Bug Fixes

- **groq**: Enable streaming for tool calls and add Kimi K2 model.
- **misc**: Remove debug logging from ModelRuntime and async caller.

#### 💄 Styles

- **misc**: Add notification for desktop, fix lobehub provider `/chat` in desktop, modal list header sticky style, update i18n, Update tray icon.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Add badge and improve document, closes [#8528](https://github.com/jaworldwideorg/OneJA-Bot/issues/8528) ([9fb4b0d](https://github.com/jaworldwideorg/OneJA-Bot/commit/9fb4b0d))

#### What's improved

* **misc**: Add image generation capabilities using Google AI Imagen API, closes [#8503](https://github.com/jaworldwideorg/OneJA-Bot/issues/8503) ([cef8208](https://github.com/jaworldwideorg/OneJA-Bot/commit/cef8208))
* **misc**: Add Qwen image generation capabilities, closes [#8534](https://github.com/jaworldwideorg/OneJA-Bot/issues/8534) ([7e8e5ef](https://github.com/jaworldwideorg/OneJA-Bot/commit/7e8e5ef))

#### What's fixed

* **groq**: Enable streaming for tool calls and add Kimi K2 model, closes [#8510](https://github.com/jaworldwideorg/OneJA-Bot/issues/8510) ([60739bc](https://github.com/jaworldwideorg/OneJA-Bot/commit/60739bc))
* **misc**: Remove debug logging from ModelRuntime and async caller, closes [#8525](https://github.com/jaworldwideorg/OneJA-Bot/issues/8525) ([dd1a635](https://github.com/jaworldwideorg/OneJA-Bot/commit/dd1a635))

#### Styles

* **misc**: Add notification for desktop, closes [#8523](https://github.com/jaworldwideorg/OneJA-Bot/issues/8523) ([4917d17](https://github.com/jaworldwideorg/OneJA-Bot/commit/4917d17))
* **misc**: Fix lobehub provider `/chat` in desktop, closes [#8508](https://github.com/jaworldwideorg/OneJA-Bot/issues/8508) ([c801f9c](https://github.com/jaworldwideorg/OneJA-Bot/commit/c801f9c))
* **misc**: Modal list header sticky style, closes [#8514](https://github.com/jaworldwideorg/OneJA-Bot/issues/8514) ([75273d5](https://github.com/jaworldwideorg/OneJA-Bot/commit/75273d5))
* **misc**: Update i18n, closes [#8537](https://github.com/jaworldwideorg/OneJA-Bot/issues/8537) ([b16f19b](https://github.com/jaworldwideorg/OneJA-Bot/commit/b16f19b))
* **misc**: Update tray icon, closes [#8530](https://github.com/jaworldwideorg/OneJA-Bot/issues/8530) ([2696de4](https://github.com/jaworldwideorg/OneJA-Bot/commit/2696de4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-23 13:52:23 +00:00
GitHub Actions b39eaf2686 Merge branch 'fix/dynamic-test' 2025-07-23 15:37:17 +02:00
GitHub Actions 78176978cd Update tests to replace hardcoded avatar paths with constants for inbox and user avatars 2025-07-23 15:34:38 +02:00
semantic-release-bot a7bac06436 🔖 chore(release): v1.101.0 [skip ci]
## [Version&nbsp;1.101.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.100.1...v1.101.0)
<sup>Released on **2025-07-23**</sup>

#### ♻ Code Refactoring

- **misc**: Add badge and improve document.

####  Features

- **misc**: Add image generation capabilities using Google AI Imagen API, add Qwen image generation capabilities.

#### 🐛 Bug Fixes

- **groq**: Enable streaming for tool calls and add Kimi K2 model.
- **misc**: Remove debug logging from ModelRuntime and async caller.

#### 💄 Styles

- **misc**: Add notification for desktop, fix lobehub provider `/chat` in desktop, modal list header sticky style, update i18n, Update tray icon.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Add badge and improve document, closes [#8528](https://github.com/jaworldwideorg/OneJA-Bot/issues/8528) ([9fb4b0d](https://github.com/jaworldwideorg/OneJA-Bot/commit/9fb4b0d))

#### What's improved

* **misc**: Add image generation capabilities using Google AI Imagen API, closes [#8503](https://github.com/jaworldwideorg/OneJA-Bot/issues/8503) ([cef8208](https://github.com/jaworldwideorg/OneJA-Bot/commit/cef8208))
* **misc**: Add Qwen image generation capabilities, closes [#8534](https://github.com/jaworldwideorg/OneJA-Bot/issues/8534) ([7e8e5ef](https://github.com/jaworldwideorg/OneJA-Bot/commit/7e8e5ef))

#### What's fixed

* **groq**: Enable streaming for tool calls and add Kimi K2 model, closes [#8510](https://github.com/jaworldwideorg/OneJA-Bot/issues/8510) ([60739bc](https://github.com/jaworldwideorg/OneJA-Bot/commit/60739bc))
* **misc**: Remove debug logging from ModelRuntime and async caller, closes [#8525](https://github.com/jaworldwideorg/OneJA-Bot/issues/8525) ([dd1a635](https://github.com/jaworldwideorg/OneJA-Bot/commit/dd1a635))

#### Styles

* **misc**: Add notification for desktop, closes [#8523](https://github.com/jaworldwideorg/OneJA-Bot/issues/8523) ([4917d17](https://github.com/jaworldwideorg/OneJA-Bot/commit/4917d17))
* **misc**: Fix lobehub provider `/chat` in desktop, closes [#8508](https://github.com/jaworldwideorg/OneJA-Bot/issues/8508) ([c801f9c](https://github.com/jaworldwideorg/OneJA-Bot/commit/c801f9c))
* **misc**: Modal list header sticky style, closes [#8514](https://github.com/jaworldwideorg/OneJA-Bot/issues/8514) ([75273d5](https://github.com/jaworldwideorg/OneJA-Bot/commit/75273d5))
* **misc**: Update i18n, closes [#8537](https://github.com/jaworldwideorg/OneJA-Bot/issues/8537) ([b16f19b](https://github.com/jaworldwideorg/OneJA-Bot/commit/b16f19b))
* **misc**: Update tray icon, closes [#8530](https://github.com/jaworldwideorg/OneJA-Bot/issues/8530) ([2696de4](https://github.com/jaworldwideorg/OneJA-Bot/commit/2696de4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-23 13:08:53 +00:00
GitHub Actions bbc161db30 Merge branch 'fix/dynamic-test' 2025-07-23 14:53:06 +02:00
GitHub Actions 33f838a59b Update tests to use BRANDING_NAME constant instead of hardcoded 'LobeChat' and update avatar icon path in chat message tests 2025-07-23 14:52:14 +02:00
GitHub Actions e8a7edea76 Update test data for plugin action to use avatar icon path (rather than hard coded) 2025-07-23 14:40:50 +02:00
GitHub Actions e3766e94d0 Update dependencies, replace vi-canvas-mock with vitest-canvas-mock, and refine test assertions in knowledgeBase and aiProvider models. 2025-07-23 14:39:04 +02:00
GitHub Actions 76ff1f6da4 Add Okta support to auth config and tests 2025-07-23 14:29:56 +02:00
GitHub Actions 2f1f3a846e Remove unused schemas, tests, documentation, and references related to the deprecated meta-schema, ModelParamsSchema, and associated configurations. 2025-07-23 14:24:16 +02:00
GitHub Actions 0ffa190d2b Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/app/[variants]/(main)/image/@menu/components/SeedNumberInput/index.tsx
2025-07-23 14:15:40 +02:00
GitHub Actions 89253d1e5c Simplify SeedNumberInput by removing unused props (min, max, step). 2025-07-23 14:15:20 +02:00
GitHub Actions 21f997fc0e Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-23 12:12:16 +00:00
GitHub Actions 883982754f Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	src/app/[variants]/(main)/image/@menu/components/SeedNumberInput/index.tsx
2025-07-23 14:11:55 +02:00
GitHub Actions 80b72bb2ee Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-21 00:34:24 +00:00
lobehubbot 87ea15bba5 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-20 18:23:10 +00:00
GitHub Actions 7c1b1cefed Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-20 18:08:23 +00:00
lobehubbot 5b64c3be3c 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-20 12:26:04 +00:00
GitHub Actions 7e391d8a57 Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-20 12:10:56 +00:00
lobehubbot 1aa1484c25 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-20 06:24:51 +00:00
GitHub Actions 8cb9e0d542 Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-20 06:09:41 +00:00
lobehubbot ce9f766cde 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-20 00:50:35 +00:00
GitHub Actions c250721b69 Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-20 00:35:40 +00:00
lobehubbot 8c9b8b5f3c 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-19 18:23:41 +00:00
semantic-release-bot cc77ca3ff7 🔖 chore(release): v1.100.1 [skip ci]
### [Version&nbsp;1.100.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.100.0...v1.100.1)
<sup>Released on **2025-07-19**</sup>

#### 🐛 Bug Fixes

- **misc**: Try fix authorization code exchange & pin next-auto to `beta.29`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Try fix authorization code exchange & pin next-auto to `beta.29`, closes [#8496](https://github.com/jaworldwideorg/OneJA-Bot/issues/8496) ([27c4881](https://github.com/jaworldwideorg/OneJA-Bot/commit/27c4881))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-19 18:23:15 +00:00
GitHub Actions 098654742b Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-19 18:08:18 +00:00
lobehubbot ffc21dc86e 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-19 12:25:43 +00:00
GitHub Actions 262fcf2945 Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-19 12:10:46 +00:00
lobehubbot 7cf5922a15 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-19 06:24:22 +00:00
GitHub Actions 5bb2514e4f Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-19 06:09:24 +00:00
lobehubbot 886cb69436 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-19 00:46:29 +00:00
GitHub Actions 4596d2ce32 Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-19 00:31:27 +00:00
lobehubbot 171fcd7a48 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-18 18:24:57 +00:00
semantic-release-bot 5be34ff5ae 🔖 chore(release): v1.100.0 [skip ci]
## [Version&nbsp;1.100.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.99.2...v1.100.0)
<sup>Released on **2025-07-18**</sup>

####  Features

- **misc**: Add zhipu cogview4.

#### 🐛 Bug Fixes

- **misc**: Some ai image bugs.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add zhipu cogview4, closes [#8486](https://github.com/jaworldwideorg/OneJA-Bot/issues/8486) ([0b1557d](https://github.com/jaworldwideorg/OneJA-Bot/commit/0b1557d))

#### What's fixed

* **misc**: Some ai image bugs, closes [#8490](https://github.com/jaworldwideorg/OneJA-Bot/issues/8490) ([5d852be](https://github.com/jaworldwideorg/OneJA-Bot/commit/5d852be))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-18 18:24:30 +00:00
GitHub Actions 4c6630a6d8 Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-18 18:09:09 +00:00
lobehubbot a6486d41f6 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-18 12:27:34 +00:00
GitHub Actions abac12f89f Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-18 12:12:31 +00:00
lobehubbot ea90b4cedb 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-18 10:29:09 +00:00
semantic-release-bot d8d3e98e74 🔖 chore(release): v1.99.2 [skip ci]
### [Version&nbsp;1.99.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.99.1...v1.99.2)
<sup>Released on **2025-07-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix webapi proxy with clerk.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix webapi proxy with clerk, closes [#8479](https://github.com/jaworldwideorg/OneJA-Bot/issues/8479) ([7dd65f0](https://github.com/jaworldwideorg/OneJA-Bot/commit/7dd65f0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-18 10:28:42 +00:00
GitHub Actions 5136e7a7ee Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-18 10:13:16 +00:00
GitHub Actions 54ba981bd4 Enhance sync-upstream script with advanced conflict resolution and detailed logging:
- Implement `.gitattributes` parsing for dynamic merge strategies.
- Add functions for automatic conflict resolution based on merge strategies.
- Improve error handling and diagnostics for troubleshooting.
- Ensure cross-environment compatibility using portable shell commands.
2025-07-18 12:10:45 +02:00
GitHub Actions d774d39066 Merge upstream changes from lobehub/lobe-chat/main with automatic conflict resolution 2025-07-18 12:08:23 +02:00
Jamie Stivala 468a507d74 Improve sync-upstream script: fetch specific branch, handle unrelated histories, honor .gitattributes 2025-07-18 11:56:36 +02:00
Jamie Stivala cafbba3e25 Replace Fork-Sync-With-Upstream action with custom sync script [skip-ci] 2025-07-18 11:52:00 +02:00
Jamie Stivala 9da0e6bad8 Merge README.md and keep theirs [skip-ci] 2025-07-18 11:45:35 +02:00
semantic-release-bot 651a899c87 🔖 chore(release): v1.99.1 [skip ci]
### [Version&nbsp;1.99.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.99.0...v1.99.1)
<sup>Released on **2025-07-17**</sup>

#### 🐛 Bug Fixes

- **misc**: Use server env config image models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Use server env config image models, closes [#8478](https://github.com/jaworldwideorg/OneJA-Bot/issues/8478) ([768ee2b](https://github.com/jaworldwideorg/OneJA-Bot/commit/768ee2b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-17 19:27:28 +00:00
Jamie Stivala a31531fd91 Update sync.yml
On Sync finish, trigger release workflow
2025-07-17 21:12:03 +02:00
GH Action - Upstream Sync 75b084cee3 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-07-17 19:09:38 +00:00
semantic-release-bot 02354c9eda 🔖 chore(release): v1.99.0 [skip ci]
## [Version&nbsp;1.99.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.98.1...v1.99.0)
<sup>Released on **2025-07-17**</sup>

####  Features

- **misc**: Refactor desktop oauth and use JWTs token to support remote chat.

#### 🐛 Bug Fixes

- **misc**: Desktop local db can't upload image, fix apikey issue on server log, fix page error when url is not defined in web search plugin.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Refactor desktop oauth and use JWTs token to support remote chat, closes [#8446](https://github.com/jaworldwideorg/OneJA-Bot/issues/8446) ([054ca5f](https://github.com/jaworldwideorg/OneJA-Bot/commit/054ca5f))

#### What's fixed

* **misc**: Desktop local db can't upload image, closes [#8459](https://github.com/jaworldwideorg/OneJA-Bot/issues/8459) ([25bfc80](https://github.com/jaworldwideorg/OneJA-Bot/commit/25bfc80))
* **misc**: Fix apikey issue on server log, closes [#8457](https://github.com/jaworldwideorg/OneJA-Bot/issues/8457) ([43be2d1](https://github.com/jaworldwideorg/OneJA-Bot/commit/43be2d1))
* **misc**: Fix page error when url is not defined in web search plugin, closes [#8441](https://github.com/jaworldwideorg/OneJA-Bot/issues/8441) ([a55b65b](https://github.com/jaworldwideorg/OneJA-Bot/commit/a55b65b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-17 10:17:28 +00:00
Jamie Stivala 8ecbbe7899 Configure Git merge strategies for changelog and package.json files in sync workflow 2025-07-17 12:02:11 +02:00
Jamie Stivala 9884510fa3 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-17 11:55:05 +02:00
Jamie Stivala dff27b0ac0 Remove custom package.json merge handling from sync workflow
- Delete the `mergePackageJson.js` script and its associated tests.
- Simplify workflow by removing logic for backing up and restoring files.
- Streamline sync workflow inputs and steps for improved maintainability.
2025-07-17 11:54:57 +02:00
lobehubbot 6046d755ad 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-16 12:26:34 +00:00
semantic-release-bot 17bf2990b0 🔖 chore(release): v1.98.1 [skip ci]
### [Version&nbsp;1.98.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.98.0...v1.98.1)
<sup>Released on **2025-07-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Chat model list should not show image model, some ai image generation feedback issues.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Chat model list should not show image model, closes [#8448](https://github.com/jaworldwideorg/OneJA-Bot/issues/8448) ([2bb1506](https://github.com/jaworldwideorg/OneJA-Bot/commit/2bb1506))
* **misc**: Some ai image generation feedback issues, closes [#8440](https://github.com/jaworldwideorg/OneJA-Bot/issues/8440) ([bc41329](https://github.com/jaworldwideorg/OneJA-Bot/commit/bc41329))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-16 12:26:06 +00:00
Jamie Stivala a3c2cf5223 Add custom package.json merge handling during sync workflow
- Implement logic to back up `package.json` for special handling during sync.
- Introduce a script for merging `package.json` with custom dependencies preserved.
- Add tests to validate `package.json` merge logic.
2025-07-16 14:10:57 +02:00
Jamie Stivala 768b401ceb Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-07-16 14:01:25 +02:00
lobehubbot d987b81f0c 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-15 08:26:39 +00:00
semantic-release-bot d914b7cd00 🔖 chore(release): v1.98.0 [skip ci]
## [Version&nbsp;1.98.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.97.0...v1.98.0)
<sup>Released on **2025-07-15**</sup>

####  Features

- **plugin**: Support Streamable HTTP MCP Server Auth.
- **misc**:  support AI Image.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **plugin**: Support Streamable HTTP MCP Server Auth, closes [#8425](https://github.com/jaworldwideorg/OneJA-Bot/issues/8425) ([853a09a](https://github.com/jaworldwideorg/OneJA-Bot/commit/853a09a))
* **misc**:  support AI Image, closes [#8312](https://github.com/jaworldwideorg/OneJA-Bot/issues/8312) ([095de57](https://github.com/jaworldwideorg/OneJA-Bot/commit/095de57))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-15 08:26:14 +00:00
Jamie Stivala c37027c07f Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-07-15 10:10:47 +02:00
semantic-release-bot a884dad265 🔖 chore(release): v1.97.0 [skip ci]
## [Version&nbsp;1.97.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.96.3...v1.97.0)
<sup>Released on **2025-07-14**</sup>

####  Features

- **misc**: Add network proxy for desktop.

#### 🐛 Bug Fixes

- **misc**: Add vision support to Grok 4, Revert "💄 style: Open new topic by tap Just Chat again".

#### 💄 Styles

- **misc**: Add Kimi K2 model, fix discover translation, Support Hunyuan A13B thinking model, Support new Doubao thinking models, update i18n, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add network proxy for desktop, closes [#7848](https://github.com/jaworldwideorg/OneJA-Bot/issues/7848) ([46d2509](https://github.com/jaworldwideorg/OneJA-Bot/commit/46d2509))

#### What's fixed

* **misc**: Add vision support to Grok 4, closes [#8386](https://github.com/jaworldwideorg/OneJA-Bot/issues/8386) ([8512f5a](https://github.com/jaworldwideorg/OneJA-Bot/commit/8512f5a))
* **misc**: Revert "💄 style: Open new topic by tap Just Chat again", closes [#8402](https://github.com/jaworldwideorg/OneJA-Bot/issues/8402) ([55462b9](https://github.com/jaworldwideorg/OneJA-Bot/commit/55462b9))

#### Styles

* **misc**: Add Kimi K2 model, closes [#8401](https://github.com/jaworldwideorg/OneJA-Bot/issues/8401) ([4cb1a18](https://github.com/jaworldwideorg/OneJA-Bot/commit/4cb1a18))
* **misc**: Fix discover translation, closes [#8423](https://github.com/jaworldwideorg/OneJA-Bot/issues/8423) ([15ae35c](https://github.com/jaworldwideorg/OneJA-Bot/commit/15ae35c))
* **misc**: Support Hunyuan A13B thinking model, closes [#8278](https://github.com/jaworldwideorg/OneJA-Bot/issues/8278) ([09ca978](https://github.com/jaworldwideorg/OneJA-Bot/commit/09ca978))
* **misc**: Support new Doubao thinking models, closes [#8174](https://github.com/jaworldwideorg/OneJA-Bot/issues/8174) ([637d75c](https://github.com/jaworldwideorg/OneJA-Bot/commit/637d75c))
* **misc**: Update i18n, closes [#8422](https://github.com/jaworldwideorg/OneJA-Bot/issues/8422) ([5b89ec8](https://github.com/jaworldwideorg/OneJA-Bot/commit/5b89ec8))
* **misc**: Update i18n, closes [#8410](https://github.com/jaworldwideorg/OneJA-Bot/issues/8410) ([2515875](https://github.com/jaworldwideorg/OneJA-Bot/commit/2515875))
* **misc**: Update i18n, closes [#8400](https://github.com/jaworldwideorg/OneJA-Bot/issues/8400) ([790eeb8](https://github.com/jaworldwideorg/OneJA-Bot/commit/790eeb8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-14 14:34:04 +00:00
Jamie Stivala 53975efcab Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-14 10:31:52 +02:00
lobehubbot fbb92a667f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-11 09:09:37 +00:00
semantic-release-bot 5cf2e3c6fd 🔖 chore(release): v1.96.3 [skip ci]
### [Version&nbsp;1.96.3](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.96.2...v1.96.3)
<sup>Released on **2025-07-11**</sup>

#### 🐛 Bug Fixes

- **misc**: Grok-4 reasoning model universal matching.

#### 💄 Styles

- **misc**: Open new topic by tap Just Chat again, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Grok-4 reasoning model universal matching, closes [#8390](https://github.com/jaworldwideorg/OneJA-Bot/issues/8390) ([d6f17f8](https://github.com/jaworldwideorg/OneJA-Bot/commit/d6f17f8))

#### Styles

* **misc**: Open new topic by tap Just Chat again, closes [#8311](https://github.com/jaworldwideorg/OneJA-Bot/issues/8311) ([7e2f4ce](https://github.com/jaworldwideorg/OneJA-Bot/commit/7e2f4ce))
* **misc**: Update i18n, closes [#8387](https://github.com/jaworldwideorg/OneJA-Bot/issues/8387) ([00215c0](https://github.com/jaworldwideorg/OneJA-Bot/commit/00215c0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-11 09:09:11 +00:00
Jamie Stivala dcb29ab16c Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-07-11 10:55:24 +02:00
lobehubbot 5604704d0a 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 12:33:22 +00:00
semantic-release-bot 08949c5757 🔖 chore(release): v1.96.2 [skip ci]
### [Version&nbsp;1.96.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.96.1...v1.96.2)
<sup>Released on **2025-07-10**</sup>

#### ♻ Code Refactoring

- **misc**: Replace `utility-types` with `type-fest`.

#### 💄 Styles

- **misc**: Add google search grounding for Vertex AI, fix: solve the loading was strange spin when switch show, integrate Amazon Cognito for user authentication.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Replace `utility-types` with `type-fest`, closes [#8370](https://github.com/jaworldwideorg/OneJA-Bot/issues/8370) ([a072b53](https://github.com/jaworldwideorg/OneJA-Bot/commit/a072b53))

#### Styles

* **misc**: Add google search grounding for Vertex AI, closes [#8313](https://github.com/jaworldwideorg/OneJA-Bot/issues/8313) ([afd5900](https://github.com/jaworldwideorg/OneJA-Bot/commit/afd5900))
* **misc**: Fix: solve the loading was strange spin when switch show, closes [#8333](https://github.com/jaworldwideorg/OneJA-Bot/issues/8333) ([07197e7](https://github.com/jaworldwideorg/OneJA-Bot/commit/07197e7))
* **misc**: Integrate Amazon Cognito for user authentication, closes [#7472](https://github.com/jaworldwideorg/OneJA-Bot/issues/7472) ([56f4e98](https://github.com/jaworldwideorg/OneJA-Bot/commit/56f4e98))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-10 12:32:53 +00:00
Jamie Stivala 23710714c1 Add Cognito as a new SSO provider to ssoProviders array 2025-07-10 14:18:51 +02:00
Jamie Stivala 41d1b45549 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	src/libs/next-auth/sso-providers/index.ts
2025-07-10 14:18:13 +02:00
lobehubbot 7b9f36aba5 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-10 08:50:04 +00:00
semantic-release-bot 8c44806b31 🔖 chore(release): v1.96.1 [skip ci]
### [Version&nbsp;1.96.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.96.0...v1.96.1)
<sup>Released on **2025-07-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix locale hydration error in SSR.

#### 💄 Styles

- **misc**: Add `grok-4-0709` model from xAI, fix theme issue in desktop, implement data analytics event tracking framework.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix locale hydration error in SSR, closes [#8365](https://github.com/jaworldwideorg/OneJA-Bot/issues/8365) ([63f482a](https://github.com/jaworldwideorg/OneJA-Bot/commit/63f482a))

#### Styles

* **misc**: Add `grok-4-0709` model from xAI, closes [#8379](https://github.com/jaworldwideorg/OneJA-Bot/issues/8379) ([b7ca447](https://github.com/jaworldwideorg/OneJA-Bot/commit/b7ca447))
* **misc**: Fix theme issue in desktop, closes [#8380](https://github.com/jaworldwideorg/OneJA-Bot/issues/8380) ([c7ae78b](https://github.com/jaworldwideorg/OneJA-Bot/commit/c7ae78b))
* **misc**: Implement data analytics event tracking framework, closes [#8352](https://github.com/jaworldwideorg/OneJA-Bot/issues/8352) ([f433aca](https://github.com/jaworldwideorg/OneJA-Bot/commit/f433aca))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-10 08:49:34 +00:00
Jamie Stivala 5dd6cf9bff Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-10 10:35:06 +02:00
GH Action - Upstream Sync bb4668038b Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-07-09 12:11:57 +00:00
GH Action - Upstream Sync ed0b98cc5b Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-07-09 06:10:11 +00:00
lobehubbot f57cb2f6f3 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-08 12:52:37 +00:00
semantic-release-bot 297216961a 🔖 chore(release): v1.96.0 [skip ci]
## [Version&nbsp;1.96.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.95.2...v1.96.0)
<sup>Released on **2025-07-08**</sup>

####  Features

- **misc**: Add MCP marketplace and mcp plugin one-click installation in desktop.

#### 💄 Styles

- **misc**: Add `MCP_TOOL_TIMEOUT` env and improve debug usage guide.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add MCP marketplace and mcp plugin one-click installation in desktop, closes [#8334](https://github.com/jaworldwideorg/OneJA-Bot/issues/8334) ([416a4b1](https://github.com/jaworldwideorg/OneJA-Bot/commit/416a4b1))

#### Styles

* **misc**: Add `MCP_TOOL_TIMEOUT` env and improve debug usage guide, closes [#8357](https://github.com/jaworldwideorg/OneJA-Bot/issues/8357) ([d4baae5](https://github.com/jaworldwideorg/OneJA-Bot/commit/d4baae5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-08 12:52:13 +00:00
Jamie Stivala fdc239c2c7 Merge remote-tracking branch 'origin/main' 2025-07-08 14:37:47 +02:00
Jamie Stivala 39809f92bb Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-08 14:37:38 +02:00
lobehubbot 650514421f 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-07 09:44:24 +00:00
semantic-release-bot c980dd1c41 🔖 chore(release): v1.95.2 [skip ci]
### [Version&nbsp;1.95.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.95.1...v1.95.2)
<sup>Released on **2025-07-07**</sup>

#### 🐛 Bug Fixes

- **misc**: Change the wrong github checkmodel name, pin `officeparser@5.1.1` to fix server error.

#### 💄 Styles

- **misc**: Files hello pages should scroll.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Change the wrong github checkmodel name, closes [#8339](https://github.com/jaworldwideorg/OneJA-Bot/issues/8339) ([f07d912](https://github.com/jaworldwideorg/OneJA-Bot/commit/f07d912))
* **misc**: Pin `officeparser@5.1.1` to fix server error, closes [#8354](https://github.com/jaworldwideorg/OneJA-Bot/issues/8354) ([3f4e935](https://github.com/jaworldwideorg/OneJA-Bot/commit/3f4e935))

#### Styles

* **misc**: Files hello pages should scroll, closes [#8340](https://github.com/jaworldwideorg/OneJA-Bot/issues/8340) ([df9b7df](https://github.com/jaworldwideorg/OneJA-Bot/commit/df9b7df))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-07 09:43:59 +00:00
Jamie Stivala 06b2b76963 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-07-07 11:29:58 +02:00
lobehubbot cd9f7848c1 📝 docs(bot): Auto sync agents & plugin to readme 2025-07-03 12:41:02 +00:00
semantic-release-bot c5dbde3912 🔖 chore(release): v1.95.1 [skip ci]
### [Version&nbsp;1.95.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.95.0...v1.95.1)
<sup>Released on **2025-07-03**</sup>

#### ♻ Code Refactoring

- **misc**: Migrate to `@google/genai` SDK for Google Gemini API and Vertex AI.

#### 🐛 Bug Fixes

- **mermaid**: Firefox mermaid show error.
- **misc**: Fix desktop chunk issue, pin `antd@5.26.2` to fix build error, Wrong Gemini 2.5 Pro thinkbudget.

#### 💄 Styles

- **misc**: Add DeepResearch models from OpenAI, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Migrate to `@google/genai` SDK for Google Gemini API and Vertex AI, closes [#7884](https://github.com/jaworldwideorg/OneJA-Bot/issues/7884) ([fef3e5f](https://github.com/jaworldwideorg/OneJA-Bot/commit/fef3e5f))

#### What's fixed

* **mermaid**: Firefox mermaid show error, closes [#8270](https://github.com/jaworldwideorg/OneJA-Bot/issues/8270) ([d9c5e7b](https://github.com/jaworldwideorg/OneJA-Bot/commit/d9c5e7b))
* **misc**: Fix desktop chunk issue, closes [#8280](https://github.com/jaworldwideorg/OneJA-Bot/issues/8280) ([c193e65](https://github.com/jaworldwideorg/OneJA-Bot/commit/c193e65))
* **misc**: Pin `antd@5.26.2` to fix build error, closes [#8303](https://github.com/jaworldwideorg/OneJA-Bot/issues/8303) ([44b6b01](https://github.com/jaworldwideorg/OneJA-Bot/commit/44b6b01))
* **misc**: Wrong Gemini 2.5 Pro thinkbudget, closes [#8296](https://github.com/jaworldwideorg/OneJA-Bot/issues/8296) ([18920c5](https://github.com/jaworldwideorg/OneJA-Bot/commit/18920c5))

#### Styles

* **misc**: Add DeepResearch models from OpenAI, closes [#8291](https://github.com/jaworldwideorg/OneJA-Bot/issues/8291) ([87a5cbc](https://github.com/jaworldwideorg/OneJA-Bot/commit/87a5cbc))
* **misc**: Update i18n, closes [#8322](https://github.com/jaworldwideorg/OneJA-Bot/issues/8322) ([0c6b885](https://github.com/jaworldwideorg/OneJA-Bot/commit/0c6b885))
* **misc**: Update i18n, closes [#8306](https://github.com/jaworldwideorg/OneJA-Bot/issues/8306) ([80aad1d](https://github.com/jaworldwideorg/OneJA-Bot/commit/80aad1d))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-07-03 12:40:36 +00:00
Jamie Stivala 786331d3f4 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-07-03 14:25:28 +02:00
Jamie Stivala 378dceefa4 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-06-30 11:21:04 +02:00
lobehubbot 809a60d90c 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-25 11:50:43 +00:00
semantic-release-bot 24f47f83f9 🔖 chore(release): v1.95.0 [skip ci]
## [Version&nbsp;1.95.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.94.5...v1.95.0)
<sup>Released on **2025-06-25**</sup>

####  Features

- **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider, add v0 (Vercel) provider support.

#### 🐛 Bug Fixes

- **misc**: Fix `MiniMax-M1` reasoning tag missing, fix inputTemplate behavior, Google Gemini tools declarations, Remove unsupported parameters of Hunyuan.

#### 💄 Styles

- **openrouter**: Add stable versions of Gemini 2.5 models.
- **misc**: Add `blockAds` & `stealth` params for Browserless, Optimized Gemini thinkingBudget configuration, update i18n, update i18n.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider, closes [#8172](https://github.com/jaworldwideorg/OneJA-Bot/issues/8172) ([16ae521](https://github.com/jaworldwideorg/OneJA-Bot/commit/16ae521))
* **misc**: Add v0 (Vercel) provider support, closes [#8235](https://github.com/jaworldwideorg/OneJA-Bot/issues/8235) ([5842a18](https://github.com/jaworldwideorg/OneJA-Bot/commit/5842a18))

#### What's fixed

* **misc**: Fix `MiniMax-M1` reasoning tag missing, closes [#8240](https://github.com/jaworldwideorg/OneJA-Bot/issues/8240) ([ea76c11](https://github.com/jaworldwideorg/OneJA-Bot/commit/ea76c11))
* **misc**: Fix inputTemplate behavior, closes [#8204](https://github.com/jaworldwideorg/OneJA-Bot/issues/8204) ([61c2c3c](https://github.com/jaworldwideorg/OneJA-Bot/commit/61c2c3c))
* **misc**: Google Gemini tools declarations, closes [#8256](https://github.com/jaworldwideorg/OneJA-Bot/issues/8256) ([08f5d73](https://github.com/jaworldwideorg/OneJA-Bot/commit/08f5d73))
* **misc**: Remove unsupported parameters of Hunyuan, closes [#8247](https://github.com/jaworldwideorg/OneJA-Bot/issues/8247) ([826d724](https://github.com/jaworldwideorg/OneJA-Bot/commit/826d724))

#### Styles

* **openrouter**: Add stable versions of Gemini 2.5 models, closes [#8239](https://github.com/jaworldwideorg/OneJA-Bot/issues/8239) ([d34ecab](https://github.com/jaworldwideorg/OneJA-Bot/commit/d34ecab))
* **misc**: Add `blockAds` & `stealth` params for Browserless, closes [#8255](https://github.com/jaworldwideorg/OneJA-Bot/issues/8255) ([2ff3efa](https://github.com/jaworldwideorg/OneJA-Bot/commit/2ff3efa))
* **misc**: Optimized Gemini thinkingBudget configuration, closes [#8224](https://github.com/jaworldwideorg/OneJA-Bot/issues/8224) ([03625e8](https://github.com/jaworldwideorg/OneJA-Bot/commit/03625e8))
* **misc**: Update i18n, closes [#8253](https://github.com/jaworldwideorg/OneJA-Bot/issues/8253) ([b86dc9b](https://github.com/jaworldwideorg/OneJA-Bot/commit/b86dc9b))
* **misc**: Update i18n, closes [#8242](https://github.com/jaworldwideorg/OneJA-Bot/issues/8242) ([2d1babc](https://github.com/jaworldwideorg/OneJA-Bot/commit/2d1babc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-25 11:50:11 +00:00
Jamie Stivala c3d386691a Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
#	src/app/[variants]/(auth)/next-auth/signin/AuthSignInBox.tsx
2025-06-25 13:34:22 +02:00
lobehubbot 139323ffc1 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-20 10:45:55 +00:00
semantic-release-bot c9019f23bf 🔖 chore(release): v1.94.5 [skip ci]
### [Version&nbsp;1.94.5](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.94.4...v1.94.5)
<sup>Released on **2025-06-20**</sup>

#### 🐛 Bug Fixes

- **misc**: Correctly pass `reasoning.summary`.

#### 💄 Styles

- **misc**: Add MiniMax-M1 model, Update Gemini 2.5 Pro, Flash GA models. Add Gemini 2.5 Flash-Lite Preview model, update i18n, update i18n, update model card for Gemini 2.5 Pro via OpenRouter.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Correctly pass `reasoning.summary`, closes [#8221](https://github.com/jaworldwideorg/OneJA-Bot/issues/8221) ([da79815](https://github.com/jaworldwideorg/OneJA-Bot/commit/da79815))

#### Styles

* **misc**: Add MiniMax-M1 model, closes [#8209](https://github.com/jaworldwideorg/OneJA-Bot/issues/8209) ([41a0178](https://github.com/jaworldwideorg/OneJA-Bot/commit/41a0178))
* **misc**: Update Gemini 2.5 Pro, Flash GA models. Add Gemini 2.5 Flash-Lite Preview model, closes [#8213](https://github.com/jaworldwideorg/OneJA-Bot/issues/8213) ([39ef8be](https://github.com/jaworldwideorg/OneJA-Bot/commit/39ef8be))
* **misc**: Update i18n, closes [#8233](https://github.com/jaworldwideorg/OneJA-Bot/issues/8233) ([88c4362](https://github.com/jaworldwideorg/OneJA-Bot/commit/88c4362))
* **misc**: Update i18n, closes [#8225](https://github.com/jaworldwideorg/OneJA-Bot/issues/8225) ([53e1784](https://github.com/jaworldwideorg/OneJA-Bot/commit/53e1784))
* **misc**: Update model card for Gemini 2.5 Pro via OpenRouter, closes [#8129](https://github.com/jaworldwideorg/OneJA-Bot/issues/8129) ([c96d9ef](https://github.com/jaworldwideorg/OneJA-Bot/commit/c96d9ef))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-20 10:45:30 +00:00
Jamie Stivala 8cf8c418bc Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
2025-06-20 18:30:42 +08:00
semantic-release-bot 51ba55dfb4 🔖 chore(release): v1.94.4 [skip ci]
### [Version&nbsp;1.94.4](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.94.3...v1.94.4)
<sup>Released on **2025-06-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Enhance the multi-display window opening experience.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Enhance the multi-display window opening experience, closes [#8176](https://github.com/jaworldwideorg/OneJA-Bot/issues/8176) ([b132e66](https://github.com/jaworldwideorg/OneJA-Bot/commit/b132e66))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-18 09:25:52 +00:00
Jamie Stivala 0db1f753a0 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-06-18 16:50:32 +08:00
semantic-release-bot 624ab716e6 🔖 chore(release): v1.94.3 [skip ci]
### [Version&nbsp;1.94.3](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.94.2...v1.94.3)
<sup>Released on **2025-06-16**</sup>

#### 🐛 Bug Fixes

- **misc**: Correctly handle `reasoning_effort`, improve chat selectors and enhance topic handling logic.

#### 💄 Styles

- **misc**: Add `kimi-thinking-preview` model from Moonshot.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Correctly handle `reasoning_effort`, closes [#8180](https://github.com/jaworldwideorg/OneJA-Bot/issues/8180) ([1c04736](https://github.com/jaworldwideorg/OneJA-Bot/commit/1c04736))
* **misc**: Improve chat selectors and enhance topic handling logic, closes [#8133](https://github.com/jaworldwideorg/OneJA-Bot/issues/8133) [#8117](https://github.com/jaworldwideorg/OneJA-Bot/issues/8117) ([15b24f1](https://github.com/jaworldwideorg/OneJA-Bot/commit/15b24f1))

#### Styles

* **misc**: Add `kimi-thinking-preview` model from Moonshot, closes [#8171](https://github.com/jaworldwideorg/OneJA-Bot/issues/8171) ([93d677c](https://github.com/jaworldwideorg/OneJA-Bot/commit/93d677c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-16 10:32:37 +00:00
Jamie Stivala e148fd9c97 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-06-16 18:17:32 +08:00
semantic-release-bot b652a8fb0a 🔖 chore(release): v1.94.2 [skip ci]
### [Version&nbsp;1.94.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.94.1...v1.94.2)
<sup>Released on **2025-06-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Abort the Gemini request correctly & Add openai o3-pro.

#### 💄 Styles

- **misc**: Add Doubao Seed 1.6 model.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Abort the Gemini request correctly & Add openai o3-pro, closes [#8135](https://github.com/jaworldwideorg/OneJA-Bot/issues/8135) ([c79f1b9](https://github.com/jaworldwideorg/OneJA-Bot/commit/c79f1b9))

#### Styles

* **misc**: Add Doubao Seed 1.6 model, closes [#8167](https://github.com/jaworldwideorg/OneJA-Bot/issues/8167) ([bdfa44b](https://github.com/jaworldwideorg/OneJA-Bot/commit/bdfa44b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-13 01:20:57 +00:00
Jamie Stivala 62dd97b688 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-06-13 08:57:20 +08:00
lobehubbot 6481f0bb7a 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-12 14:06:53 +00:00
semantic-release-bot 0e39773557 🔖 chore(release): v1.94.1 [skip ci]
### [Version&nbsp;1.94.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.94.0...v1.94.1)
<sup>Released on **2025-06-12**</sup>

#### 🐛 Bug Fixes

- **chat**: Improve response animation merging logic.
- **misc**: Update Gemini range of thinkingBudget.

#### 💄 Styles

- **ModelSelect**: Improve mobile layout and text overflow handling.
- **misc**: Support `web_search_preview` & fix some bug form OpenAI Response API, Transition animation switch, update pplx abilities tags, support `vision`.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **chat**: Improve response animation merging logic, closes [#8160](https://github.com/jaworldwideorg/OneJA-Bot/issues/8160) ([9d81cdc](https://github.com/jaworldwideorg/OneJA-Bot/commit/9d81cdc))
* **misc**: Update Gemini range of thinkingBudget, closes [#8122](https://github.com/jaworldwideorg/OneJA-Bot/issues/8122) ([7331e8a](https://github.com/jaworldwideorg/OneJA-Bot/commit/7331e8a))

#### Styles

* **ModelSelect**: Improve mobile layout and text overflow handling, closes [#8118](https://github.com/jaworldwideorg/OneJA-Bot/issues/8118) ([d97aa49](https://github.com/jaworldwideorg/OneJA-Bot/commit/d97aa49))
* **misc**: Support `web_search_preview` & fix some bug form OpenAI Response API, closes [#8131](https://github.com/jaworldwideorg/OneJA-Bot/issues/8131) ([b2983f0](https://github.com/jaworldwideorg/OneJA-Bot/commit/b2983f0))
* **misc**: Transition animation switch, closes [#7981](https://github.com/jaworldwideorg/OneJA-Bot/issues/7981) ([dd4ab3f](https://github.com/jaworldwideorg/OneJA-Bot/commit/dd4ab3f))
* **misc**: Update pplx abilities tags, support `vision`, closes [#8119](https://github.com/jaworldwideorg/OneJA-Bot/issues/8119) ([5c2e5f7](https://github.com/jaworldwideorg/OneJA-Bot/commit/5c2e5f7))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-12 14:06:25 +00:00
Jamie Stivala e58affe613 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-06-12 21:41:47 +08:00
Jamie Stivala 0797fac217 Merge remote-tracking branch 'upstream/main' 2025-06-12 21:41:08 +08:00
lobehubbot adbd822851 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-10 12:27:22 +00:00
semantic-release-bot a31f6167bb 🔖 chore(release): v1.94.0 [skip ci]
## [Version&nbsp;1.94.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.93.2...v1.94.0)
<sup>Released on **2025-06-10**</sup>

####  Features

- **misc**: Support google sso as auth provider.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support google sso as auth provider, closes [#8074](https://github.com/jaworldwideorg/OneJA-Bot/issues/8074) ([43ab03a](https://github.com/jaworldwideorg/OneJA-Bot/commit/43ab03a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-10 12:27:02 +00:00
Jamie Stivala 6ce07b21be Add Okta as a new SSO provider to ssoProviders array 2025-06-10 20:12:25 +08:00
Jamie Stivala 908b4be918 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
#	src/libs/next-auth/sso-providers/index.ts
2025-06-10 20:10:53 +08:00
Jamie Stivala 50c7570440 Auto-redirect the user to the SSO Provider login page if one provider 2025-06-10 19:58:01 +08:00
lobehubbot a021d0ee0e 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-10 08:45:53 +00:00
semantic-release-bot 72925ecd0c 🔖 chore(release): v1.93.2 [skip ci]
### [Version&nbsp;1.93.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.93.1...v1.93.2)
<sup>Released on **2025-06-10**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor `<think>` & `</think>` handling, refactor branding info.

#### 🐛 Bug Fixes

- **misc**: Restore reasoningEffort in setting.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor `<think>` & `</think>` handling, closes [#8121](https://github.com/jaworldwideorg/OneJA-Bot/issues/8121) ([04ac353](https://github.com/jaworldwideorg/OneJA-Bot/commit/04ac353))
* **misc**: Refactor branding info, closes [#8134](https://github.com/jaworldwideorg/OneJA-Bot/issues/8134) ([3baa966](https://github.com/jaworldwideorg/OneJA-Bot/commit/3baa966))

#### What's fixed

* **misc**: Restore reasoningEffort in setting, closes [#8123](https://github.com/jaworldwideorg/OneJA-Bot/issues/8123) ([3be609c](https://github.com/jaworldwideorg/OneJA-Bot/commit/3be609c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-10 08:45:32 +00:00
Jamie Stivala 0633286211 Updated branding 2025-06-10 16:30:53 +08:00
Jamie Stivala e93d27b14d Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-06-10 16:26:01 +08:00
Jamie Stivala e7c0372191 Removed unused LobeChat import from AuthSignInBox.tsx. 2025-06-09 17:57:25 +08:00
lobehubbot 45eae70926 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-09 08:45:54 +00:00
semantic-release-bot 7cec77ae2c 🔖 chore(release): v1.92.0 [skip ci]
## [Version&nbsp;1.92.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.91.3...v1.92.0)
<sup>Released on **2025-06-09**</sup>

####  Features

- **misc**: Support OpenAI Responses API mode, support placeholder variables in prompts and input.

#### 🐛 Bug Fixes

- **misc**: Fix client s3 getObject throw error, fix openai default Responses API issue.

#### 💄 Styles

- **ModelSelect**: Add responsive layout for mobile devices.
- **misc**: Add support to azureopenai embedding, improve `{{username}}` placeholder variable, Support OpenRouter Claude 4 reasoning, Update Gemini & Qwen models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support OpenAI Responses API mode, closes [#8048](https://github.com/jaworldwideorg/OneJA-Bot/issues/8048) ([5bf0921](https://github.com/jaworldwideorg/OneJA-Bot/commit/5bf0921))
* **misc**: Support placeholder variables in prompts and input, closes [#8060](https://github.com/jaworldwideorg/OneJA-Bot/issues/8060) ([3752739](https://github.com/jaworldwideorg/OneJA-Bot/commit/3752739))

#### What's fixed

* **misc**: Fix client s3 getObject throw error, closes [#8009](https://github.com/jaworldwideorg/OneJA-Bot/issues/8009) ([b91ca8c](https://github.com/jaworldwideorg/OneJA-Bot/commit/b91ca8c))
* **misc**: Fix openai default Responses API issue, closes [#8124](https://github.com/jaworldwideorg/OneJA-Bot/issues/8124) ([7f6ccf2](https://github.com/jaworldwideorg/OneJA-Bot/commit/7f6ccf2))

#### Styles

* **ModelSelect**: Add responsive layout for mobile devices, closes [#7960](https://github.com/jaworldwideorg/OneJA-Bot/issues/7960) ([cb84c3e](https://github.com/jaworldwideorg/OneJA-Bot/commit/cb84c3e))
* **misc**: Add support to azureopenai embedding, closes [#8075](https://github.com/jaworldwideorg/OneJA-Bot/issues/8075) ([0725f94](https://github.com/jaworldwideorg/OneJA-Bot/commit/0725f94))
* **misc**: Improve `{{username}}` placeholder variable, closes [#8100](https://github.com/jaworldwideorg/OneJA-Bot/issues/8100) ([95fd588](https://github.com/jaworldwideorg/OneJA-Bot/commit/95fd588))
* **misc**: Support OpenRouter Claude 4 reasoning, closes [#8087](https://github.com/jaworldwideorg/OneJA-Bot/issues/8087) ([039be1d](https://github.com/jaworldwideorg/OneJA-Bot/commit/039be1d))
* **misc**: Update Gemini & Qwen models, closes [#8083](https://github.com/jaworldwideorg/OneJA-Bot/issues/8083) ([6308237](https://github.com/jaworldwideorg/OneJA-Bot/commit/6308237))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-09 08:45:27 +00:00
Jamie Stivala f7ef381bbb Replaced hardcoded username with dynamic branding constant in auth selectors test. 2025-06-09 16:30:44 +08:00
Jamie Stivala 19edff11d7 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.md
#	README.zh-CN.md
#	changelog/v1.json
2025-06-09 16:10:32 +08:00
Jamie Stivala 7cbea6da8a Merge remote-tracking branch 'origin/main' 2025-06-09 16:10:18 +08:00
semantic-release-bot 65259e566c 🔖 chore(release): v1.91.3 [skip ci]
### [Version&nbsp;1.91.3](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.91.2...v1.91.3)
<sup>Released on **2025-06-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Some web search bugs.

#### 💄 Styles

- **misc**: Support Vertex AI thought summaries.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Some web search bugs, closes [#8068](https://github.com/jaworldwideorg/OneJA-Bot/issues/8068) ([bebe7a3](https://github.com/jaworldwideorg/OneJA-Bot/commit/bebe7a3))

#### Styles

* **misc**: Support Vertex AI thought summaries, closes [#8090](https://github.com/jaworldwideorg/OneJA-Bot/issues/8090) ([1355a2e](https://github.com/jaworldwideorg/OneJA-Bot/commit/1355a2e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-06 12:25:30 +00:00
GH Action - Upstream Sync 09592304f8 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-06-06 12:11:19 +00:00
Jamie Stivala 19ab3fef16 Replaced static branding elements with dynamic values sourced from constants. 2025-06-06 18:51:34 +08:00
Jamie Stivala 4884f26ec5 Merge remote-tracking branch 'origin/main' 2025-06-06 18:26:27 +08:00
Jamie Stivala b07803d6a8 Fixed the issue with auto login being looped 2025-06-06 18:26:16 +08:00
lobehubbot 3925d15fa2 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-06 08:56:01 +00:00
semantic-release-bot 010280afdd 🔖 chore(release): v1.91.2 [skip ci]
### [Version&nbsp;1.91.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.91.1...v1.91.2)
<sup>Released on **2025-06-06**</sup>

#### 🐛 Bug Fixes

- **misc**: Correct deepseek R1 fc support display.

#### 💄 Styles

- **misc**: Add openAI websearch and claude 4 to modelproviders.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Correct deepseek R1 fc support display, closes [#8069](https://github.com/jaworldwideorg/OneJA-Bot/issues/8069) ([ed5bb5f](https://github.com/jaworldwideorg/OneJA-Bot/commit/ed5bb5f))

#### Styles

* **misc**: Add openAI websearch and claude 4 to modelproviders, closes [#7988](https://github.com/jaworldwideorg/OneJA-Bot/issues/7988) ([95994f4](https://github.com/jaworldwideorg/OneJA-Bot/commit/95994f4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-06 08:55:42 +00:00
Jamie Stivala f2e79fe809 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-06-06 16:38:37 +08:00
lobehubbot cde421edc7 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-05 12:26:00 +00:00
semantic-release-bot f1ac9bf38c 🔖 chore(release): v1.91.1 [skip ci]
### [Version&nbsp;1.91.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.91.0...v1.91.1)
<sup>Released on **2025-06-05**</sup>

#### 💄 Styles

- **misc**: Add Volcengine & OpenAI-like Provider (e.g. oneapi) model fetch support, improve loading state.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add Volcengine & OpenAI-like Provider (e.g. oneapi) model fetch support, closes [#8064](https://github.com/jaworldwideorg/OneJA-Bot/issues/8064) ([d3dafe1](https://github.com/jaworldwideorg/OneJA-Bot/commit/d3dafe1))
* **misc**: Improve loading state, closes [#8072](https://github.com/jaworldwideorg/OneJA-Bot/issues/8072) ([f0a7193](https://github.com/jaworldwideorg/OneJA-Bot/commit/f0a7193))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-05 12:25:41 +00:00
GH Action - Upstream Sync 8ae66242b5 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-06-05 12:11:48 +00:00
GH Action - Upstream Sync b9c489a115 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-06-05 06:09:48 +00:00
GH Action - Upstream Sync 62f83a6230 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-06-04 18:09:01 +00:00
lobehubbot abcc820239 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-04 14:46:31 +00:00
Jamie Stivala 17f56df3cf Auto-triggered sign-in for single SSO provider using useLayoutEffect instead of useEffect. 2025-06-04 22:31:55 +08:00
Jamie Stivala 66c6e506dc Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-06-04 21:52:33 +08:00
Jamie Stivala 9ad33bdc6e Added searxng-settings.yml for development environment in Docker Compose configuration. 2025-06-03 22:49:12 +08:00
Jamie Stivala 86bac0654c Removed auto-triggered sign-in behavior for single SSO provider. 2025-06-03 22:47:55 +08:00
lobehubbot a4281e53ef 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-03 14:07:58 +00:00
semantic-release-bot a9ed1a634d 🔖 chore(release): v1.89.0 [skip ci]
## [Version&nbsp;1.89.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.88.0...v1.89.0)
<sup>Released on **2025-06-03**</sup>

#### ♻ Code Refactoring

- **misc**: Rename the createOpenAICompatibleRuntime.

####  Features

- **misc**: Add more provider support for search & crawl.

#### 🐛 Bug Fixes

- **misc**: Update the clerk middleware to support route protection.

#### 💄 Styles

- **misc**: Update modelscope models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Rename the createOpenAICompatibleRuntime, closes [#8049](https://github.com/jaworldwideorg/OneJA-Bot/issues/8049) ([ee660d6](https://github.com/jaworldwideorg/OneJA-Bot/commit/ee660d6))

#### What's improved

* **misc**: Add more provider support for search & crawl, closes [#8033](https://github.com/jaworldwideorg/OneJA-Bot/issues/8033) ([23fade3](https://github.com/jaworldwideorg/OneJA-Bot/commit/23fade3))

#### What's fixed

* **misc**: Update the clerk middleware to support route protection, closes [#8044](https://github.com/jaworldwideorg/OneJA-Bot/issues/8044) ([309f973](https://github.com/jaworldwideorg/OneJA-Bot/commit/309f973))

#### Styles

* **misc**: Update modelscope models, closes [#8057](https://github.com/jaworldwideorg/OneJA-Bot/issues/8057) ([3e02c25](https://github.com/jaworldwideorg/OneJA-Bot/commit/3e02c25))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-03 14:07:37 +00:00
Jamie Stivala 16dcf8edcd Merge remote-tracking branch 'upstream/main' 2025-06-03 21:53:03 +08:00
Jamie Stivala 8aeb49fd2d Updated vitest-canvas-mock to vi-canvas-mock in package.json. 2025-06-03 21:52:30 +08:00
Jamie Stivala 946cd085ac Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
#	package.json
2025-06-03 21:36:25 +08:00
Jamie Stivala 6ba03bf8c3 Auto-triggered sign-in for single SSO provider using useEffect. 2025-06-03 21:35:08 +08:00
lobehubbot 9e532232d7 📝 docs(bot): Auto sync agents & plugin to readme 2025-06-02 09:57:17 +00:00
semantic-release-bot e76ade32e3 🔖 chore(release): v1.88.0 [skip ci]
## [Version&nbsp;1.88.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.87.2...v1.88.0)
<sup>Released on **2025-06-02**</sup>

####  Features

- **misc**:  Support ModelScope Provider, support protect page.

#### 🐛 Bug Fixes

- **misc**: Agent automatic completion meta not working error, disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics, fix DeepSeek new R1 Search error.

#### 💄 Styles

- **misc**:  `+` in the welcome message can be clicked to create an assistant, Enable deploymentName for Aliyun Bailian, Enhanced reasoning_effort Slider Component, support `web_search` tool for MiniMax & Zhipu, support 01.ai proxy url, Update Hunyuan models & deepseek-r1-0528, use default deployment name when parseModelString doesn't contain deployment name.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**:  Support ModelScope Provider, closes [#8026](https://github.com/jaworldwideorg/OneJA-Bot/issues/8026) ([7b91dfd](https://github.com/jaworldwideorg/OneJA-Bot/commit/7b91dfd))
* **misc**: Support protect page, closes [#8024](https://github.com/jaworldwideorg/OneJA-Bot/issues/8024) ([d61a9f5](https://github.com/jaworldwideorg/OneJA-Bot/commit/d61a9f5))

#### What's fixed

* **misc**: Agent automatic completion meta not working error, closes [#8003](https://github.com/jaworldwideorg/OneJA-Bot/issues/8003) ([c5307bf](https://github.com/jaworldwideorg/OneJA-Bot/commit/c5307bf))
* **misc**: Disable LaTeX and Mermaid rendering in SystemRoleContent to prevent lag caused by massive rendering tasks when switching topics, closes [#8034](https://github.com/jaworldwideorg/OneJA-Bot/issues/8034) ([5b42ee2](https://github.com/jaworldwideorg/OneJA-Bot/commit/5b42ee2))
* **misc**: Fix DeepSeek new R1 Search error, closes [#8035](https://github.com/jaworldwideorg/OneJA-Bot/issues/8035) ([cf58628](https://github.com/jaworldwideorg/OneJA-Bot/commit/cf58628))

#### Styles

* **misc**:  `+` in the welcome message can be clicked to create an assistant, closes [#7984](https://github.com/jaworldwideorg/OneJA-Bot/issues/7984) ([9f07e4c](https://github.com/jaworldwideorg/OneJA-Bot/commit/9f07e4c))
* **misc**: Enable deploymentName for Aliyun Bailian, closes [#7576](https://github.com/jaworldwideorg/OneJA-Bot/issues/7576) ([169e598](https://github.com/jaworldwideorg/OneJA-Bot/commit/169e598))
* **misc**: Enhanced reasoning_effort Slider Component, closes [#7998](https://github.com/jaworldwideorg/OneJA-Bot/issues/7998) ([750b26a](https://github.com/jaworldwideorg/OneJA-Bot/commit/750b26a))
* **misc**: Support `web_search` tool for MiniMax & Zhipu, closes [#7980](https://github.com/jaworldwideorg/OneJA-Bot/issues/7980) ([28cdafb](https://github.com/jaworldwideorg/OneJA-Bot/commit/28cdafb))
* **misc**: Support 01.ai proxy url, closes [#8025](https://github.com/jaworldwideorg/OneJA-Bot/issues/8025) ([e0442b8](https://github.com/jaworldwideorg/OneJA-Bot/commit/e0442b8))
* **misc**: Update Hunyuan models & deepseek-r1-0528, closes [#7993](https://github.com/jaworldwideorg/OneJA-Bot/issues/7993) ([2eb198c](https://github.com/jaworldwideorg/OneJA-Bot/commit/2eb198c))
* **misc**: Use default deployment name when parseModelString doesn't contain deployment name, closes [#7719](https://github.com/jaworldwideorg/OneJA-Bot/issues/7719) ([aef19f4](https://github.com/jaworldwideorg/OneJA-Bot/commit/aef19f4))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-06-02 09:56:48 +00:00
Jamie Stivala a7b89493e4 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
2025-06-02 17:19:20 +08:00
lobehubbot bcc9c54356 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-30 06:56:51 +00:00
semantic-release-bot e53a8db7c9 🔖 chore(release): v1.87.2 [skip ci]
### [Version&nbsp;1.87.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.87.1...v1.87.2)
<sup>Released on **2025-05-30**</sup>

#### 💄 Styles

- **misc**: Support Web Search Tools and Beta Header from Anthropic.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Support Web Search Tools and Beta Header from Anthropic, closes [#7964](https://github.com/jaworldwideorg/OneJA-Bot/issues/7964) ([a47ddc5](https://github.com/jaworldwideorg/OneJA-Bot/commit/a47ddc5))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-30 06:56:31 +00:00
Jamie Stivala e2ad515379 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-05-30 14:41:52 +08:00
Jamie Stivala f542b49955 Merge remote-tracking branch 'origin/main' 2025-05-30 13:50:39 +08:00
Jamie Stivala 77259e2245 Updated test to reflect JA Logo change 2025-05-30 13:50:17 +08:00
Jamie Stivala d0385e25f1 Updated test to reflect JA Logo change 2025-05-30 13:48:48 +08:00
Jamie Stivala bd9c6e37fc Fixed issue with JA Worldwide logo not loading properly 2025-05-30 13:23:51 +08:00
lobehubbot 0df9aff7db 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-30 04:13:45 +00:00
semantic-release-bot 8a000ac0d8 🔖 chore(release): v1.87.1 [skip ci]
### [Version&nbsp;1.87.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.87.0...v1.87.1)
<sup>Released on **2025-05-30**</sup>

#### 🐛 Bug Fixes

- **misc**: Close historySummary correctly, cmd + click chat tab not open new tab, Enable thinking output only for supported Gemini thinking models.

#### 💄 Styles

- **misc**: Add fc ability to deepseek-reasoner model, increase the history limit, Update GitHub models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Close historySummary correctly, closes [#7010](https://github.com/jaworldwideorg/OneJA-Bot/issues/7010) ([90a6f68](https://github.com/jaworldwideorg/OneJA-Bot/commit/90a6f68))
* **misc**: Cmd + click chat tab not open new tab, closes [#8001](https://github.com/jaworldwideorg/OneJA-Bot/issues/8001) ([d6d2129](https://github.com/jaworldwideorg/OneJA-Bot/commit/d6d2129))
* **misc**: Enable thinking output only for supported Gemini thinking models, closes [#7987](https://github.com/jaworldwideorg/OneJA-Bot/issues/7987) ([f503c53](https://github.com/jaworldwideorg/OneJA-Bot/commit/f503c53))

#### Styles

* **misc**: Add fc ability to deepseek-reasoner model, closes [#8006](https://github.com/jaworldwideorg/OneJA-Bot/issues/8006) ([1511c75](https://github.com/jaworldwideorg/OneJA-Bot/commit/1511c75))
* **misc**: Increase the history limit, closes [#8007](https://github.com/jaworldwideorg/OneJA-Bot/issues/8007) ([5ec7c8d](https://github.com/jaworldwideorg/OneJA-Bot/commit/5ec7c8d))
* **misc**: Update GitHub models, closes [#8002](https://github.com/jaworldwideorg/OneJA-Bot/issues/8002) ([7b8f533](https://github.com/jaworldwideorg/OneJA-Bot/commit/7b8f533))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-30 04:13:22 +00:00
Jamie Stivala 77f82a37a0 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-05-30 11:58:31 +08:00
Jamie Stivala 4ceb2ec3ab Merge remote-tracking branch 'upstream/main' 2025-05-29 16:54:36 +08:00
lobehubbot 554fa612b5 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-28 10:17:05 +00:00
semantic-release-bot f9f994f9ff 🔖 chore(release): v1.87.0 [skip ci]
## [Version&nbsp;1.87.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.86.1...v1.87.0)
<sup>Released on **2025-05-28**</sup>

####  Features

- **misc**: Add claude 4 series.

#### 🐛 Bug Fixes

- **docs**: Rename and update Google Gemini documentation.
- **DragUpload**: Resolve issue with pasting clipboard images in Safari.
- **misc**: Auto sync theme mode in desktop, cant invoke the application after OIDC authorization in Windows 11, fix chat header in the desktop, fix draggable issue with agent header, fix message refresh 401 on desktop, fix missing email field to user, update agent config of client db will override old config, user nickName & username selector in desktop.

#### 💄 Styles

- **DevPanel**: Improve json display.
- **misc**: Add gemini & hunyuan & Claude models, add live search support for xAI, Allow `SliderWithInput` to have no input limit, correct model name `SenseChat-5-1202`, fix a few typos in the model tooltips, improve thread flicker when first-time loading, resolve InputNumber display overlap issue, support adjust thinkingBudget in gemini 2.5 flash, Support Gemini 2.5 thought reasoning, support share single message.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add claude 4 series, closes [#7939](https://github.com/jaworldwideorg/OneJA-Bot/issues/7939) ([9b4f950](https://github.com/jaworldwideorg/OneJA-Bot/commit/9b4f950))

#### What's fixed

* **docs**: Rename and update Google Gemini documentation, closes [#7957](https://github.com/jaworldwideorg/OneJA-Bot/issues/7957) ([432c28d](https://github.com/jaworldwideorg/OneJA-Bot/commit/432c28d))
* **DragUpload**: Resolve issue with pasting clipboard images in Safari, closes [#7961](https://github.com/jaworldwideorg/OneJA-Bot/issues/7961) ([3c3cc75](https://github.com/jaworldwideorg/OneJA-Bot/commit/3c3cc75))
* **misc**: Auto sync theme mode in desktop, closes [#7970](https://github.com/jaworldwideorg/OneJA-Bot/issues/7970) ([a16fa02](https://github.com/jaworldwideorg/OneJA-Bot/commit/a16fa02))
* **misc**: Cant invoke the application after OIDC authorization in Windows 11, closes [#7900](https://github.com/jaworldwideorg/OneJA-Bot/issues/7900) ([585e386](https://github.com/jaworldwideorg/OneJA-Bot/commit/585e386))
* **misc**: Fix chat header in the desktop, closes [#7973](https://github.com/jaworldwideorg/OneJA-Bot/issues/7973) ([63c3a71](https://github.com/jaworldwideorg/OneJA-Bot/commit/63c3a71))
* **misc**: Fix draggable issue with agent header, closes [#7968](https://github.com/jaworldwideorg/OneJA-Bot/issues/7968) ([cd84241](https://github.com/jaworldwideorg/OneJA-Bot/commit/cd84241))
* **misc**: Fix message refresh 401 on desktop, closes [#7958](https://github.com/jaworldwideorg/OneJA-Bot/issues/7958) ([b4b426f](https://github.com/jaworldwideorg/OneJA-Bot/commit/b4b426f))
* **misc**: Fix missing email field to user, closes [#7913](https://github.com/jaworldwideorg/OneJA-Bot/issues/7913) ([d314130](https://github.com/jaworldwideorg/OneJA-Bot/commit/d314130))
* **misc**: Update agent config of client db will override old config, closes [#7918](https://github.com/jaworldwideorg/OneJA-Bot/issues/7918) ([f7cda68](https://github.com/jaworldwideorg/OneJA-Bot/commit/f7cda68))
* **misc**: User nickName & username selector in desktop, closes [#7899](https://github.com/jaworldwideorg/OneJA-Bot/issues/7899) ([bf51746](https://github.com/jaworldwideorg/OneJA-Bot/commit/bf51746))

#### Styles

* **DevPanel**: Improve json display, closes [#7978](https://github.com/jaworldwideorg/OneJA-Bot/issues/7978) ([db800d2](https://github.com/jaworldwideorg/OneJA-Bot/commit/db800d2))
* **misc**: Add gemini & hunyuan & Claude models, closes [#7908](https://github.com/jaworldwideorg/OneJA-Bot/issues/7908) ([5244f22](https://github.com/jaworldwideorg/OneJA-Bot/commit/5244f22))
* **misc**: Add live search support for xAI, closes [#7907](https://github.com/jaworldwideorg/OneJA-Bot/issues/7907) ([dff4b7b](https://github.com/jaworldwideorg/OneJA-Bot/commit/dff4b7b))
* **misc**: Allow `SliderWithInput` to have no input limit, closes [#7708](https://github.com/jaworldwideorg/OneJA-Bot/issues/7708) ([bdb02b2](https://github.com/jaworldwideorg/OneJA-Bot/commit/bdb02b2))
* **misc**: Correct model name `SenseChat-5-1202`, closes [#7979](https://github.com/jaworldwideorg/OneJA-Bot/issues/7979) ([d9e1336](https://github.com/jaworldwideorg/OneJA-Bot/commit/d9e1336))
* **misc**: Fix a few typos in the model tooltips, closes [#7952](https://github.com/jaworldwideorg/OneJA-Bot/issues/7952) ([8416fec](https://github.com/jaworldwideorg/OneJA-Bot/commit/8416fec))
* **misc**: Improve thread flicker when first-time loading, closes [#7963](https://github.com/jaworldwideorg/OneJA-Bot/issues/7963) ([4cacacd](https://github.com/jaworldwideorg/OneJA-Bot/commit/4cacacd))
* **misc**: Resolve InputNumber display overlap issue, closes [#7892](https://github.com/jaworldwideorg/OneJA-Bot/issues/7892) ([5486663](https://github.com/jaworldwideorg/OneJA-Bot/commit/5486663))
* **misc**: Support adjust thinkingBudget in gemini 2.5 flash, closes [#7947](https://github.com/jaworldwideorg/OneJA-Bot/issues/7947) ([a9db548](https://github.com/jaworldwideorg/OneJA-Bot/commit/a9db548))
* **misc**: Support Gemini 2.5 thought reasoning, closes [#7686](https://github.com/jaworldwideorg/OneJA-Bot/issues/7686) ([f34c4de](https://github.com/jaworldwideorg/OneJA-Bot/commit/f34c4de))
* **misc**: Support share single message, closes [#7967](https://github.com/jaworldwideorg/OneJA-Bot/issues/7967) ([660a5ad](https://github.com/jaworldwideorg/OneJA-Bot/commit/660a5ad))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-28 10:16:25 +00:00
Jamie Stivala 3fa2cc1ec2 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
2025-05-28 18:01:44 +08:00
lobehubbot 6e83440d68 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-22 18:23:40 +00:00
semantic-release-bot 9f1ae50f71 🔖 chore(release): v1.86.1 [skip ci]
### [Version&nbsp;1.86.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.86.0...v1.86.1)
<sup>Released on **2025-05-22**</sup>

#### 🐛 Bug Fixes

- **misc**: 'top_p' is not supported with o4-mini, bump  @lobehub/ui to 2.1.7, pin zustand version to avoid type error.

#### 💄 Styles

- **misc**: Improve tools display.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: 'top_p' is not supported with o4-mini, closes [#7747](https://github.com/jaworldwideorg/OneJA-Bot/issues/7747) ([4e04399](https://github.com/jaworldwideorg/OneJA-Bot/commit/4e04399))
* **misc**: Bump  @lobehub/ui to 2.1.7, closes [#7912](https://github.com/jaworldwideorg/OneJA-Bot/issues/7912) ([457b645](https://github.com/jaworldwideorg/OneJA-Bot/commit/457b645))
* **misc**: Pin zustand version to avoid type error, closes [#7929](https://github.com/jaworldwideorg/OneJA-Bot/issues/7929) ([4f6e286](https://github.com/jaworldwideorg/OneJA-Bot/commit/4f6e286))

#### Styles

* **misc**: Improve tools display, closes [#7906](https://github.com/jaworldwideorg/OneJA-Bot/issues/7906) ([af8a05b](https://github.com/jaworldwideorg/OneJA-Bot/commit/af8a05b))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-22 18:23:19 +00:00
GH Action - Upstream Sync e1c4a934dc Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-05-22 18:08:52 +00:00
GH Action - Upstream Sync d8d1cc6ddd Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-05-22 06:09:50 +00:00
Jamie Stivala 05c70c6388 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-05-21 18:06:43 +07:00
lobehubbot 0758d68d74 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-20 12:38:28 +00:00
semantic-release-bot 26d3c3eabd 🔖 chore(release): v1.86.0 [skip ci]
## [Version&nbsp;1.86.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.85.2...v1.86.0)
<sup>Released on **2025-05-20**</sup>

#### ♻ Code Refactoring

- **misc**: Clean code with new antd api, refactor agent runtime to model runtime.

####  Features

- **misc**: Add Qiniu Provider, support custom language and Mermaid Appearance.

#### 🐛 Bug Fixes

- **misc**: Fix desktop open issue on linux like Fedora42, fix oidc redirect url, supported SenseNova v6 models correctly & update Gemini models.

#### 💄 Styles

- **misc**: Support Doubao 1.5 Thinking Vision Pro model, update internlm model list, add  series, update Spark X1 model list & fix build-in search params.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Clean code with new antd api, closes [#7870](https://github.com/jaworldwideorg/OneJA-Bot/issues/7870) ([c543884](https://github.com/jaworldwideorg/OneJA-Bot/commit/c543884))
* **misc**: Refactor agent runtime to model runtime, closes [#7846](https://github.com/jaworldwideorg/OneJA-Bot/issues/7846) ([a3b9448](https://github.com/jaworldwideorg/OneJA-Bot/commit/a3b9448))

#### What's improved

* **misc**: Add Qiniu Provider, closes [#7649](https://github.com/jaworldwideorg/OneJA-Bot/issues/7649) ([c9b8e9f](https://github.com/jaworldwideorg/OneJA-Bot/commit/c9b8e9f))
* **misc**: Support custom language and Mermaid Appearance, closes [#7850](https://github.com/jaworldwideorg/OneJA-Bot/issues/7850) ([bee2b2d](https://github.com/jaworldwideorg/OneJA-Bot/commit/bee2b2d))

#### What's fixed

* **misc**: Fix desktop open issue on linux like Fedora42, closes [#7883](https://github.com/jaworldwideorg/OneJA-Bot/issues/7883) ([5b0154f](https://github.com/jaworldwideorg/OneJA-Bot/commit/5b0154f))
* **misc**: Fix oidc redirect url, closes [#7855](https://github.com/jaworldwideorg/OneJA-Bot/issues/7855) ([3156538](https://github.com/jaworldwideorg/OneJA-Bot/commit/3156538))
* **misc**: Supported SenseNova v6 models correctly & update Gemini models, closes [#7778](https://github.com/jaworldwideorg/OneJA-Bot/issues/7778) ([e2b5ed3](https://github.com/jaworldwideorg/OneJA-Bot/commit/e2b5ed3))

#### Styles

* **misc**: Support Doubao 1.5 Thinking Vision Pro model, closes [#7784](https://github.com/jaworldwideorg/OneJA-Bot/issues/7784) ([9cf0d6f](https://github.com/jaworldwideorg/OneJA-Bot/commit/9cf0d6f))
* **misc**: Update internlm model list, add  series, closes [#7566](https://github.com/jaworldwideorg/OneJA-Bot/issues/7566) ([4eaddf4](https://github.com/jaworldwideorg/OneJA-Bot/commit/4eaddf4))
* **misc**: Update Spark X1 model list & fix build-in search params, closes [#7480](https://github.com/jaworldwideorg/OneJA-Bot/issues/7480) ([7050c81](https://github.com/jaworldwideorg/OneJA-Bot/commit/7050c81))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-20 12:37:58 +00:00
Jamie Stivala ef2e2dd1c0 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-05-20 19:23:07 +07:00
Jamie Stivala d4b7668823 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	package.json
2025-05-20 19:22:21 +07:00
lobehubbot 0adcf550d9 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-14 18:23:51 +00:00
semantic-release-bot 5a5484b145 🔖 chore(release): v1.85.2 [skip ci]
### [Version&nbsp;1.85.2](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.85.1...v1.85.2)
<sup>Released on **2025-05-14**</sup>

#### 💄 Styles

- **misc**: Improve smoothing on completion, update electron style on windows.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve smoothing on completion, closes [#7833](https://github.com/jaworldwideorg/OneJA-Bot/issues/7833) ([6434686](https://github.com/jaworldwideorg/OneJA-Bot/commit/6434686))
* **misc**: Update electron style on windows, closes [#7839](https://github.com/jaworldwideorg/OneJA-Bot/issues/7839) ([474de56](https://github.com/jaworldwideorg/OneJA-Bot/commit/474de56))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-14 18:23:31 +00:00
GH Action - Upstream Sync 558eac8c21 Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-05-14 18:08:54 +00:00
Jamie Stivala 1c67cf3e05 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	changelog/v1.json
2025-05-14 21:12:42 +07:00
semantic-release-bot 8b6fac26d4 🔖 chore(release): v1.85.1 [skip ci]
### [Version&nbsp;1.85.1](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.85.0...v1.85.1)
<sup>Released on **2025-05-14**</sup>

#### 🐛 Bug Fixes

- **misc**: Redirect unauthorized next-auth user to signin page.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Redirect unauthorized next-auth user to signin page, closes [#7813](https://github.com/jaworldwideorg/OneJA-Bot/issues/7813) ([6160784](https://github.com/jaworldwideorg/OneJA-Bot/commit/6160784))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-14 06:23:49 +00:00
GH Action - Upstream Sync e1d318f56d Merge branch 'main' of https://github.com/lobehub/lobe-chat 2025-05-14 06:09:34 +00:00
lobehubbot 632d687b63 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-12 18:23:27 +00:00
semantic-release-bot 7e721ba86d 🔖 chore(release): v1.85.0 [skip ci]
## [Version&nbsp;1.85.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.84.16...v1.85.0)
<sup>Released on **2025-05-12**</sup>

#### ♻ Code Refactoring

- **misc**: Add perf stat support for openai factory, Remove doubao Provider, upgrade anthropic sdk.

####  Features

- **misc**: Support upload files direct into chat context.

#### 🐛 Bug Fixes

- **misc**: Fix changelog issue on desktop app, fix config import issue in the desktop version, fix desktop upload image on macOS, fix electron state init on window, fix nothing return when reset the client db, fix streamable http url valid and refactor local files to local system, fix window close issue and release Window/Linux beta, remove mcp client cache.

#### 💄 Styles

- **misc**: Add new gemini & Mistral models, add qwen3 for ollama, add Qwen3 models for infiniai, add reasoning tokens and token usage statistics for Google Gemini, add write file tool to local-file plugin, add Xiaohongshu crawler rules, fix init state of loading, improve pdf and xlsx file content parser, Show Aliyun Bailian tokens usage tracking.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Add perf stat support for openai factory, closes [#7677](https://github.com/jaworldwideorg/OneJA-Bot/issues/7677) ([40464d1](https://github.com/jaworldwideorg/OneJA-Bot/commit/40464d1))
* **misc**: Remove doubao Provider, closes [#7573](https://github.com/jaworldwideorg/OneJA-Bot/issues/7573) ([0cf3bcc](https://github.com/jaworldwideorg/OneJA-Bot/commit/0cf3bcc))
* **misc**: Upgrade anthropic sdk, closes [#7773](https://github.com/jaworldwideorg/OneJA-Bot/issues/7773) ([39e871f](https://github.com/jaworldwideorg/OneJA-Bot/commit/39e871f))

#### What's improved

* **misc**: Support upload files direct into chat context, closes [#7751](https://github.com/jaworldwideorg/OneJA-Bot/issues/7751) ([39b790e](https://github.com/jaworldwideorg/OneJA-Bot/commit/39b790e))

#### What's fixed

* **misc**: Fix changelog issue on desktop app, closes [#7740](https://github.com/jaworldwideorg/OneJA-Bot/issues/7740) ([f0a12af](https://github.com/jaworldwideorg/OneJA-Bot/commit/f0a12af))
* **misc**: Fix config import issue in the desktop version, closes [#7800](https://github.com/jaworldwideorg/OneJA-Bot/issues/7800) ([2cb8635](https://github.com/jaworldwideorg/OneJA-Bot/commit/2cb8635))
* **misc**: Fix desktop upload image on macOS, closes [#7741](https://github.com/jaworldwideorg/OneJA-Bot/issues/7741) ([07d5374](https://github.com/jaworldwideorg/OneJA-Bot/commit/07d5374))
* **misc**: Fix electron state init on window, closes [#7707](https://github.com/jaworldwideorg/OneJA-Bot/issues/7707) ([ef05b49](https://github.com/jaworldwideorg/OneJA-Bot/commit/ef05b49))
* **misc**: Fix nothing return when reset the client db, closes [#7738](https://github.com/jaworldwideorg/OneJA-Bot/issues/7738) ([90efb13](https://github.com/jaworldwideorg/OneJA-Bot/commit/90efb13))
* **misc**: Fix streamable http url valid and refactor local files to local system, closes [#7794](https://github.com/jaworldwideorg/OneJA-Bot/issues/7794) ([37fd5fe](https://github.com/jaworldwideorg/OneJA-Bot/commit/37fd5fe))
* **misc**: Fix window close issue and release Window/Linux beta, closes [#7780](https://github.com/jaworldwideorg/OneJA-Bot/issues/7780) ([82c48b9](https://github.com/jaworldwideorg/OneJA-Bot/commit/82c48b9))
* **misc**: Remove mcp client cache, closes [#7776](https://github.com/jaworldwideorg/OneJA-Bot/issues/7776) ([0582134](https://github.com/jaworldwideorg/OneJA-Bot/commit/0582134))

#### Styles

* **misc**: Add new gemini & Mistral models, closes [#7730](https://github.com/jaworldwideorg/OneJA-Bot/issues/7730) ([b7753e2](https://github.com/jaworldwideorg/OneJA-Bot/commit/b7753e2))
* **misc**: Add qwen3 for ollama, closes [#7746](https://github.com/jaworldwideorg/OneJA-Bot/issues/7746) ([806d905](https://github.com/jaworldwideorg/OneJA-Bot/commit/806d905))
* **misc**: Add Qwen3 models for infiniai, closes [#7657](https://github.com/jaworldwideorg/OneJA-Bot/issues/7657) ([edd1732](https://github.com/jaworldwideorg/OneJA-Bot/commit/edd1732))
* **misc**: Add reasoning tokens and token usage statistics for Google Gemini, closes [#7501](https://github.com/jaworldwideorg/OneJA-Bot/issues/7501) ([b466b42](https://github.com/jaworldwideorg/OneJA-Bot/commit/b466b42))
* **misc**: Add write file tool to local-file plugin, closes [#7684](https://github.com/jaworldwideorg/OneJA-Bot/issues/7684) ([e22e932](https://github.com/jaworldwideorg/OneJA-Bot/commit/e22e932))
* **misc**: Add Xiaohongshu crawler rules, closes [#7717](https://github.com/jaworldwideorg/OneJA-Bot/issues/7717) ([cc3724d](https://github.com/jaworldwideorg/OneJA-Bot/commit/cc3724d))
* **misc**: Fix init state of loading, closes [#7694](https://github.com/jaworldwideorg/OneJA-Bot/issues/7694) ([1d97a68](https://github.com/jaworldwideorg/OneJA-Bot/commit/1d97a68))
* **misc**: Improve pdf and xlsx file content parser, closes [#7783](https://github.com/jaworldwideorg/OneJA-Bot/issues/7783) ([0376870](https://github.com/jaworldwideorg/OneJA-Bot/commit/0376870))
* **misc**: Show Aliyun Bailian tokens usage tracking, closes [#7660](https://github.com/jaworldwideorg/OneJA-Bot/issues/7660) ([3ef0542](https://github.com/jaworldwideorg/OneJA-Bot/commit/3ef0542))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-12 18:22:39 +00:00
Jamie Stivala a8ffdefcdd Updated sync to also ignore changelog/* 2025-05-13 01:09:01 +07:00
Jamie Stivala 58f4e0ed8d Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
#	README.zh-CN.md
#	changelog/v1.json
2025-05-13 01:03:00 +07:00
Jamie Stivala 3b48bf4551 Updated upstream sync repo 2025-05-13 00:59:47 +07:00
Jamie Stivala 48d0e01434 Changed ACR 2025-05-13 00:56:13 +07:00
Jamie Stivala 7d82bb16b9 Running upstream sync should trigger release.yml 2025-05-13 00:49:06 +07:00
lobehubbot 9923a38d84 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-02 02:34:14 +00:00
semantic-release-bot 97588e6cf4 🔖 chore(release): v1.84.16 [skip ci]
### [Version&nbsp;1.84.16](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.84.15...v1.84.16)
<sup>Released on **2025-05-02**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix desktop quiting with reopen window.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Fix desktop quiting with reopen window, closes [#7675](https://github.com/jaworldwideorg/OneJA-Bot/issues/7675) ([edeabcf](https://github.com/jaworldwideorg/OneJA-Bot/commit/edeabcf))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-05-02 02:33:56 +00:00
Jamie Stivala acfe5ea8b0 On sync, added the ability to ignore files such as CHANGELOG.md 2025-05-02 09:20:18 +07:00
Jamie Stivala ef6651e305 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	CHANGELOG.md
2025-05-02 09:09:07 +07:00
Jamie Stivala 059e78ba2c Target sync branch to main. 2025-05-02 09:07:25 +07:00
Jamie Stivala 765198e00f Merge remote-tracking branch 'origin/main' 2025-05-02 01:07:27 +07:00
lobehubbot 2cda3e77bc 📝 docs(bot): Auto sync agents & plugin to readme 2025-05-01 18:06:40 +00:00
Jamie Stivala 6d9278a018 Target sync branch to upstream still. 2025-05-02 01:03:44 +07:00
Jamie Stivala e118e0fa7f Update repository url on release to use JA Worldwide One-JA Bot 2025-05-02 01:02:31 +07:00
Jamie Stivala 7687b21ff0 Sync directly into main branch 2025-05-02 01:01:09 +07:00
Jamie Stivala 387ac1e778 Readded vi-canvas-mock 2025-05-02 00:52:33 +07:00
Jamie Stivala 6e444c6e5e Removed depricated npmrc files 2025-05-02 00:46:49 +07:00
Jamie Stivala 3d29f8324a Changed precommit file 2025-05-02 00:46:35 +07:00
Jamie Stivala 9d04179123 Merge branch 'upstream'
# Conflicts:
#	CHANGELOG.md
#	package.json
#	src/libs/next-auth/sso-providers/index.ts
2025-05-02 00:45:55 +07:00
Jamie Stivala d598f68313 Attempt to fix upstream syncing 2025-05-02 00:18:07 +07:00
Jamie Stivala 1cec875a8d Added test mode 2025-04-02 17:25:56 -04:00
semantic-release-bot 336957ec63 🔖 chore(release): v1.73.0 [skip ci]
## [Version&nbsp;1.73.0](https://github.com/jaworldwideorg/OneJA-Bot/compare/v1.72.3...v1.73.0)
<sup>Released on **2025-03-20**</sup>

####  Features

- **misc**: Add Cohere provider support, add search1api crawler implementation for WeChat Sogou links.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add Cohere provider support, closes [#7016](https://github.com/jaworldwideorg/OneJA-Bot/issues/7016) ([2a4e2ed](https://github.com/jaworldwideorg/OneJA-Bot/commit/2a4e2ed))
* **misc**: Add search1api crawler implementation for WeChat Sogou links, closes [#7036](https://github.com/jaworldwideorg/OneJA-Bot/issues/7036) ([7327138](https://github.com/jaworldwideorg/OneJA-Bot/commit/7327138))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2025-03-20 16:20:40 +00:00
Jamie Stivala e678340e57 Merge pull request #53 from jaworldwideorg/feat/branding
 feat: Updated branding to be inline with JA Worldwide
2025-03-20 17:10:55 +01:00
Jamie Stivala 8905367222 Updated dependencies 2025-03-20 16:55:44 +01:00
Jamie Stivala 76f3dddf85 Removed vite-canvas-mock and added vi-canvas-mock 2025-03-20 16:55:17 +01:00
Jamie Stivala 5eac228e01 Updated tests to reference branding_name 2025-03-20 14:50:20 +01:00
Jamie Stivala 76d546305b Updated favicon and touch icon 2025-03-20 14:26:30 +01:00
Jamie Stivala da928c78dc Updated branding to reflect JA 2025-03-20 14:21:16 +01:00
Jamie Stivala 52c2fdb6db Mounting local file system 2025-03-20 14:12:18 +01:00
Jamie Stivala 2dd5a72ccd Updated dockerfile 2025-03-20 13:09:21 +01:00
Jamie Stivala f3ab6b8bd7 Added COHERE Environment to testing docker file 2025-03-20 13:08:09 +01:00
Jamie Stivala 5ecf59e7e7 Merge branch 'upstream' into feat/branding
# Conflicts:
#	package.json
2025-03-20 13:05:20 +01:00
Jamie Stivala d0ea7aa45c Fixed dockerfile location 2025-03-20 13:03:48 +01:00
Jamie Stivala f8ab18d8da Merge pull request #47 from jaworldwideorg/test/includes
🔨 tests - Updated tests to use deep array matching
2025-03-19 13:50:09 +01:00
Jamie Stivala 965d2829eb Updated tests to use deep array matching 2025-03-19 13:37:31 +01:00
Jamie Stivala 33e9767c16 Merge pull request #44 from jaworldwideorg/chore/ci-updates
📝 docs & 🔨 chore: Added a way to run Docker Local Development and Fixed CI/CD to work with Azure ACR
2025-03-19 11:58:55 +01:00
Jamie Stivala 70e54c98bf Updated package.json reference 2025-03-19 11:56:36 +01:00
Jamie Stivala 49f1b97b67 Merge pull request #43 from jaworldwideorg/feat/okta-oidc
 feat - Added Okta as an OIDC Provider
2025-03-19 11:52:52 +01:00
Jamie Stivala 0ed5a6b5ec Updated Lighthouse repo branch 2025-03-19 11:48:13 +01:00
Jamie Stivala bec44875f7 Updated docker-database builder location 2025-03-19 11:47:53 +01:00
Jamie Stivala f849d0e102 Fixed syncing upstream branch 2025-03-19 11:47:35 +01:00
Jamie Stivala 15102da85d Remove NPM from Semantic Release 2025-03-19 11:47:04 +01:00
Jamie Stivala 7eee6d1cb2 Added a way to run local development 2025-03-19 11:42:22 +01:00
Jamie Stivala b0e8c4fbb8 Updated documentation 2025-03-19 11:15:23 +01:00
Jamie Stivala f1468b7d5a Added Okta as an SSO Provider 2025-03-19 11:14:41 +01:00
3518 changed files with 139349 additions and 106579 deletions
@@ -0,0 +1,959 @@
# createStaticStyles 迁移指南
## 📖 概述
`createStaticStyles``antd-style` 提供的静态样式创建函数,相比 `createStyles`(hook 方案)具有零运行时开销的优势。样式在模块加载时计算一次,而不是每次组件渲染时计算。
## 🎯 适用场景
### ✅ 可以优化的场景
1. **纯静态样式**:不依赖运行时动态值
2. **使用标准 token**:所有 token 都在 `cssVar.json` 中有对应项
3. **简单的条件逻辑**:可以通过静态样式拆分处理
### ❌ 无法优化的场景
1. **JS 计算函数**`readableColor()`, `chroma()`, `mix()`, `calc()` 中使用 token 数值
2. **复杂的动态 props**:需要运行时计算的复杂逻辑
3. **动态 prefixCls**:需要运行时传入的类名前缀(但可以硬编码为 `'ant'`
## 🔄 基本转换步骤
### 1. 样式文件转换
**之前(createStyles):**
```typescript
import { createStyles } from 'antd-style';
export const useStyles = createStyles(({ css, token }) => {
return {
root: css`
color: ${token.colorText};
font-size: ${token.fontSize}px;
`,
};
});
```
**之后(createStaticStyles):**
```typescript
import { createStaticStyles } from 'antd-style';
export const styles = createStaticStyles(({ css, cssVar }) => {
return {
root: css`
color: ${cssVar.colorText};
font-size: ${cssVar.fontSize};
`,
};
});
```
### 2. 组件文件转换
**之前:**
```typescript
import { useStyles } from './style';
const Component = () => {
const { styles, cx } = useStyles();
return <div className={cx(styles.root, className)} />;
};
```
**之后:**
```typescript
import { cx } from 'antd-style';
import { styles } from './style';
const Component = () => {
return <div className={cx(styles.root, className)} />;
};
```
## 🛠️ 常见场景处理
### 场景 1: Token 转换
**规则:**
- `token.xxx``cssVar.xxx`
- 注意:`cssVar.fontSize` 已经包含 `px` 单位,不需要再加 `px`
**示例:**
```typescript
// ❌ 错误
font-size: ${cssVar.fontSize}px; // cssVar.fontSize 已经是 "14px"
// ✅ 正确
font-size: ${cssVar.fontSize}; // 直接使用
```
**特殊情况 - calc ()**
```typescript
// ❌ 错误
calc(${token.fontSize}px * 2.5)
// ✅ 正确
calc(${cssVar.fontSize} * 2.5) // cssVar.fontSize 已经包含单位
```
### 场景 2: 动态 Props → CSS 变量
**适用:** 数值、字符串类型的 props
**步骤:**
1. 在样式文件中使用 CSS 变量(带默认值)
2. 在组件中通过 `style` prop 设置 CSS 变量
**示例:**
**样式文件:**
```typescript
export const styles = createStaticStyles(({ css }) => {
return {
root: css`
width: var(--component-size, 24px);
height: var(--component-size, 24px);
`,
};
});
```
**组件文件:**
```typescript
import { useMemo } from 'react';
const Component = ({ size = 24, style, ...rest }) => {
const cssVariables = useMemo<Record<string, string>>(
() => ({
'--component-size': `${size}px`,
}),
[size],
);
return (
<div
className={styles.root}
style={{
...cssVariables,
...style,
}}
{...rest}
/>
);
};
```
**已优化示例:**
- `Video`: `maxHeight`, `maxWidth`, `minHeight`, `minWidth`
- `ScrollShadow`: `size`
- `MaskShadow`: `size`
- `ColorSwatches`: `size`
- `Grid`: `rows`, `maxItemWidth`, `gap`
- `Layout`: `headerHeight`
- `Footer`: `contentMaxWidth`
### 场景 3: 布尔值 Props → 静态样式拆分
**适用:** 简单的布尔值 props(2-3 个)
**步骤:**
1. 创建所有可能的组合样式
2. 运行时使用 `cx` 组合
**示例:**
**样式文件:**
```typescript
export const styles = createStaticStyles(({ css }) => {
return {
root: css`
/* base styles */
`,
root_closable_true: css`
/* closable styles */
`,
root_closable_false: css`
/* no closable styles */
`,
root_hasTitle_true: css`
/* has title styles */
`,
root_hasTitle_false: css`
/* no title styles */
`,
};
});
```
**组件文件:**
```typescript
const Component = ({ closable, hasTitle }) => {
const className = cx(
styles.root,
styles[`root_closable_${!!closable}`],
styles[`root_hasTitle_${!!hasTitle}`],
);
return <div className={className} />;
};
```
**已优化示例:**
- `Alert`: `closable`, `hasTitle`, `showIcon` → 8 个组合(2×2×2
- `Image`: `alwaysShowActions` → 2 个样式
- `StoryBook`: `noPadding` → 2 个样式
### 场景 4: isDarkMode → 静态样式拆分
**适用:** 依赖 `isDarkMode` 的条件样式
**有两种处理方式:**
#### 方式 A: 直接条件选择(简单场景)
**步骤:**
1. 创建 `Dark``Light` 两个静态样式
2. 运行时根据 `theme.isDarkMode` 选择
**示例:**
**样式文件:**
```typescript
export const styles = createStaticStyles(({ css, cssVar }) => {
return {
rootDark: css`
background: ${cssVar.colorFillTertiary};
color: ${cssVar.colorTextLightSolid};
`,
rootLight: css`
background: ${cssVar.colorFillQuaternary};
color: ${cssVar.colorText};
`,
};
});
```
**组件文件:**
```typescript
import { useThemeMode } from 'antd-style';
const Component = () => {
const { isDarkMode } = useThemeMode();
return (
<div
className={cx(
isDarkMode ? styles.rootDark : styles.rootLight
)}
/>
);
};
```
#### 方式 B: 使用 cva 将 isDarkMode 作为 variant(推荐,适用于复杂场景)
**步骤:**
1. 创建 `Dark``Light` 两个静态样式
2.`cva` 中将 `isDarkMode` 作为 variant prop
3. 运行时直接传入 `isDarkMode`
**示例:**
**样式文件:**
```typescript
import { createStaticStyles } from 'antd-style';
import { cva } from 'class-variance-authority';
export const styles = createStaticStyles(({ css, cssVar }) => {
return {
filledDark: css`
background: ${cssVar.colorFillTertiary};
color: ${cssVar.colorTextLightSolid};
`,
filledLight: css`
background: ${cssVar.colorFillQuaternary};
color: ${cssVar.colorText};
`,
outlined: css`
border: 1px solid ${cssVar.colorBorder};
`,
root: css`
/* base styles */
`,
};
});
export const variants = cva(styles.root, {
defaultVariants: {
isDarkMode: false,
variant: 'filled',
},
variants: {
isDarkMode: {
false: null,
true: null, // isDarkMode 本身不添加样式,通过 compoundVariants 组合
},
variant: {
filled: null, // variant 本身不添加样式,通过 compoundVariants 组合
outlined: styles.outlined,
},
},
compoundVariants: [
{
class: styles.filledDark,
isDarkMode: true,
variant: 'filled',
},
{
class: styles.filledLight,
isDarkMode: false,
variant: 'filled',
},
],
});
```
**组件文件:**
```typescript
import { useThemeMode } from 'antd-style';
import { variants } from './style';
const Component = ({ variant = 'filled' }) => {
const { isDarkMode } = useThemeMode();
return (
<div
className={variants({ isDarkMode, variant })}
/>
);
};
```
**优势:**
- ✅ 不需要 `useMemo` 动态创建 variants
- ✅ 更符合 `cva` 的设计理念
- ✅ 代码更简洁,性能更好
- ✅ 类型安全,IDE 自动补全
**已优化示例:**
- `TypewriterEffect`: `textDark` / `textLight`(方式 A
- `Collapse`: `filledDark` / `filledLight`(可优化为方式 B
- `Hotkey`: `inverseThemeDark` / `inverseThemeLight`(可优化为方式 B
- `GuideCard`: `filledDark` / `filledLight`(可优化为方式 B
- `GradientButton`: `buttonDark` / `buttonLight`(方式 A
### 场景 5: responsive → 静态 responsive
**适用:** 使用响应式断点
**步骤:**
1. 导入静态 `responsive` from `antd-style`
2. 使用 `responsive.sm` 替代 `responsive.mobile`
3.`createStyles` 参数中移除 `responsive`
**示例:**
**之前:**
```typescript
import { createStyles } from 'antd-style';
export const useStyles = createStyles(({ css, responsive }) => ({
root: css`
${responsive.mobile} {
padding: 12px;
}
`,
}));
```
**之后:**
```typescript
import { createStaticStyles } from 'antd-style';
import { responsive } from 'antd-style';
export const styles = createStaticStyles(({ css }) => ({
root: css`
${responsive.sm} {
padding: 12px;
}
`,
}));
```
**注意:**
- `responsive.mobile``responsive.sm`
- 静态 `responsive` 提供:`xs`, `sm`, `md`, `lg`, `xl`, `xxl`
**已优化示例:**
- `Header`: `responsive.mobile``responsive.sm`
- `FormModal`: `responsive.mobile``responsive.sm`
- `Hero`: `responsive.mobile``responsive.sm`
### 场景 6: stylish → lobeStaticStylish
**适用:** 使用自定义 `stylish` 工具
**步骤:**
1. 导入 `lobeStaticStylish` from `@/styles`
2. 替换 `stylish.xxx``lobeStaticStylish.xxx`
**示例:**
**之前:**
```typescript
import { createStyles } from 'antd-style';
export const useStyles = createStyles(({ css, stylish }) => ({
root: css`
${stylish.blur};
${stylish.variantFilled};
`,
}));
```
**之后:**
```typescript
import { createStaticStyles } from 'antd-style';
import { lobeStaticStylish } from '@/styles';
export const styles = createStaticStyles(({ css }) => ({
root: css`
${lobeStaticStylish.blur};
${lobeStaticStylish.variantFilled};
`,
}));
```
**已优化示例:**
- `Button`: `stylish.blur``lobeStaticStylish.blur`
- `Hero`: `stylish.gradientAnimation``lobeStaticStylish.gradientAnimation`
### 场景 7: prefixCls → 硬编码
**适用:** 使用动态 `prefixCls` 参数
**步骤:**
1. 在文件顶部硬编码 `const prefixCls = 'ant'`
2.`createStyles` 参数中移除 `prefixCls`
**示例:**
**之前:**
```typescript
export const useStyles = createStyles(({ css }, prefixCls: string) => ({
root: css`
.${prefixCls}-button {
/* styles */
}
`,
}));
```
**之后:**
```typescript
const prefixCls = 'ant';
export const styles = createStaticStyles(({ css }) => ({
root: css`
.${prefixCls}-button {
/* styles */
}
`,
}));
```
**已优化示例:**
- `Alert`, `Collapse`, `FormModal`, `Image`, `Burger`, `DraggablePanel`, `DraggableSideNav`, `Toc`, `ColorSwatches`, `EmojiPicker`, `Form`, `awesome/Features`
### 场景 8: readableColor () → Token 替换
**适用:** 使用 `readableColor()` 计算对比色
**规则:**
- `readableColor(token.colorPrimary)``cssVar.colorTextLightSolid`(主色背景用白色文字)
- `readableColor(token.colorTextQuaternary)``cssVar.colorText`(浅色背景用深色文字)
**示例:**
**之前:**
```typescript
import { readableColor } from 'polished';
export const useStyles = createStyles(({ css, token }) => ({
checked: css`
background-color: ${token.colorPrimary};
color: ${readableColor(token.colorPrimary)};
`,
}));
```
**之后:**
```typescript
export const styles = createStaticStyles(({ css, cssVar }) => ({
checked: css`
background-color: ${cssVar.colorPrimary};
color: ${cssVar.colorTextLightSolid};
`,
}));
```
**已优化示例:**
- `Checkbox`: `readableColor(token.colorPrimary)``cssVar.colorTextLightSolid`
### 场景 9: rgba () → color-mix ()
**适用:** 使用 `rgba()` 设置透明度
**步骤:**
1. 使用 CSS 原生的 `color-mix()` 函数
2. 格式:`color-mix(in srgb, ${cssVar.xxx} alpha%, transparent)`
**示例:**
**之前:**
```typescript
import { rgba } from 'polished';
export const useStyles = createStyles(({ css, token }) => ({
root: css`
background-color: ${rgba(token.colorBgLayout, 0.4)};
`,
}));
```
**之后:**
```typescript
export const styles = createStaticStyles(({ css, cssVar }) => ({
root: css`
background-color: color-mix(in srgb, ${cssVar.colorBgLayout} 40%, transparent);
`,
}));
```
**已优化示例:**
- `Header`: `rgba(cssVar.colorBgLayout, 0.4)``color-mix(...)`
- `FormModal`: `rgba(cssVar.colorBgContainer, 0)``color-mix(...)`
### 场景 10: keyframes → css
**适用:** 使用 `keyframes` 创建动画
**步骤:**
1.`createStaticStyles` 外部定义 `keyframes`
2. 在样式内部使用
**示例:**
**之前:**
```typescript
export const useStyles = createStyles(({ css, keyframes }) => {
const spin = keyframes`
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
`;
return {
icon: css`
animation: ${spin} 1s linear infinite;
`,
};
});
```
**之后:**
```typescript
import { keyframes } from 'antd-style';
const spin = keyframes`
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
`;
export const styles = createStaticStyles(({ css }) => ({
icon: css`
animation: ${spin} 1s linear infinite;
`,
}));
```
**已优化示例:**
- `Icon`: `keyframes` 动画
- `Skeleton`: `keyframes` shimmer 动画
## ⚠️ 反模式:避免使用 createVariants (isDarkMode)
**不推荐的做法:**
```typescript
// ❌ 不推荐:在组件中动态创建 variants
export const createVariants = (isDarkMode: boolean) =>
cva(styles.root, {
variants: {
variant: {
filled: isDarkMode ? styles.filledDark : styles.filledLight,
},
},
});
// 组件中
const variants = useMemo(() => createVariants(isDarkMode), [isDarkMode]);
```
**推荐的做法:**
`isDarkMode` 作为 `cva` 的 variant prop(见场景 4 方式 B),这样:
- ✅ 不需要 `useMemo` 动态创建
- ✅ 更符合 `cva` 的设计理念
- ✅ 代码更简洁,性能更好
- ✅ 类型安全,IDE 自动补全
```typescript
// ✅ 推荐:将 isDarkMode 作为 variant prop
export const variants = cva(styles.root, {
variants: {
isDarkMode: {
false: null,
true: null,
},
variant: {
filled: null,
},
},
compoundVariants: [
{
class: styles.filledDark,
isDarkMode: true,
variant: 'filled',
},
{
class: styles.filledLight,
isDarkMode: false,
variant: 'filled',
},
],
});
// 组件中
const { isDarkMode } = useThemeMode();
const className = variants({ isDarkMode, variant: 'filled' });
```
## ⚠️ 无法优化的场景
### 1. JS 计算函数
**无法优化:**
- `chroma()` - 颜色计算库
- `readableColor()` - 需要运行时计算(但可以用 token 替代)
- `mix()` - 颜色混合计算
- `calc()` 中使用 token 数值进行复杂计算
**示例:**
```typescript
// ❌ 无法优化
const scale = chroma.bezier([token.colorText, backgroundColor]).scale().colors(6);
```
### 2. 复杂的动态 Props
**无法优化:**
- 需要复杂计算的 props
- 对象 / 数组类型的 props
- 函数类型的 props
### 3. useTheme Hook
**无法优化:**
- 直接使用 `useTheme()` hook 获取运行时值
- 例如:`awesome/Giscus/style.ts` 使用 `useTheme()` 获取主题值
## 📋 迁移检查清单
### 样式文件检查
- [ ] `createStyles``createStaticStyles`
- [ ] `token.xxx``cssVar.xxx`
- [ ] 移除 `px` 后缀(`cssVar` 已包含单位)
- [ ] `responsive.mobile``responsive.sm`(如果使用)
- [ ] `stylish.xxx``lobeStaticStylish.xxx`(如果使用)
- [ ] `rgba()``color-mix()`(如果使用)
- [ ] `readableColor()` → token 替换(如果使用)
- [ ] `prefixCls` 参数 → 硬编码 `const prefixCls = 'ant'`(如果使用)
- [ ] `isDarkMode` → 静态样式拆分(如果使用)
- [ ] 动态 props → CSS 变量(如果使用)
### 组件文件检查
- [ ] `useStyles()``import { styles } from './style'`
- [ ] `import { cx } from 'antd-style'`(如果需要)
- [ ] `import { useTheme } from 'antd-style'`(如果需要 `theme.isDarkMode`
- [ ] 动态 props → CSS 变量设置(如果使用)
- [ ] `isDarkMode` 条件 → `theme.isDarkMode` 判断(如果使用)
## 🎯 优化优先级
### 高优先级(简单优化)
1. ✅ 纯静态样式(无动态 props)
2.`isDarkMode` 拆分
3.`responsive.mobile``responsive.sm`
4.`stylish``lobeStaticStylish`
5.`readableColor()` → token 替换
### 中优先级(需要转换)
6. ✅ 简单的动态 props → CSS 变量(1-2 个)
7. ✅ 布尔值 props → 静态样式拆分(2-3 个)
### 低优先级(复杂优化)
8. ⚠️ 多个动态 props → CSS 变量(3+ 个)
9. ⚠️ 复杂的条件逻辑拆分
## 📚 参考示例
### 完整示例 1: 简单组件
**样式文件:**
```typescript
import { createStaticStyles } from 'antd-style';
export const styles = createStaticStyles(({ css, cssVar }) => ({
root: css`
padding: ${cssVar.padding};
color: ${cssVar.colorText};
border-radius: ${cssVar.borderRadius};
`,
}));
```
**组件文件:**
```typescript
import { cx } from 'antd-style';
import { styles } from './style';
const Component = ({ className }) => {
return <div className={cx(styles.root, className)} />;
};
```
### 完整示例 2: 带动态 Props
**样式文件:**
```typescript
import { createStaticStyles } from 'antd-style';
export const styles = createStaticStyles(({ css, cssVar }) => ({
root: css`
width: var(--component-size, 24px);
height: var(--component-size, 24px);
background: ${cssVar.colorBgContainer};
`,
}));
```
**组件文件:**
```typescript
import { cx } from 'antd-style';
import { useMemo } from 'react';
import { styles } from './style';
const Component = ({ size = 24, className, style, ...rest }) => {
const cssVariables = useMemo<Record<string, string>>(
() => ({
'--component-size': `${size}px`,
}),
[size],
);
return (
<div
className={cx(styles.root, className)}
style={{
...cssVariables,
...style,
}}
{...rest}
/>
);
};
```
### 完整示例 3: 带 isDarkMode
**样式文件:**
```typescript
import { createStaticStyles } from 'antd-style';
export const styles = createStaticStyles(({ css, cssVar }) => ({
rootDark: css`
background: ${cssVar.colorFillTertiary};
color: ${cssVar.colorTextLightSolid};
`,
rootLight: css`
background: ${cssVar.colorFillQuaternary};
color: ${cssVar.colorText};
`,
}));
```
**组件文件:**
```typescript
import { cx, useTheme } from 'antd-style';
import { styles } from './style';
const Component = ({ className }) => {
const { theme } = useTheme();
return (
<div
className={cx(
theme.isDarkMode ? styles.rootDark : styles.rootLight,
className
)}
/>
);
};
```
## 🔍 验证步骤
1. **类型检查:** `pnpm run type-check`
2. **运行时测试:** 确保视觉效果一致
3. **性能验证:** 检查样式计算是否在模块加载时完成
## 📊 优化效果
-**零运行时开销**:样式在模块加载时计算一次
-**减少重新渲染**:组件不再依赖样式 hook
-**更好的性能**:减少每次渲染的计算开销
-**代码更简洁**:直接导入样式对象
## 🔧 场景 11: useTheme () → useThemeMode () /cssVar
**适用:** 组件中只使用 `theme.isDarkMode` 或其他 token 值
**规则:**
- 如果只使用 `theme.isDarkMode`,使用 `const { isDarkMode } = useThemeMode()` 替代
- 如果使用其他 token(如 `theme.colorText`, `theme.borderRadius` 等),使用 `cssVar` 替代
- `useThemeMode()``useTheme()` 更轻量,只返回 `isDarkMode`
**示例:**
**之前:**
```typescript
import { useTheme } from 'antd-style';
const Component = () => {
const theme = useTheme();
return (
<div className={theme.isDarkMode ? styles.dark : styles.light}>
{theme.colorText}
</div>
);
};
```
**之后:**
```typescript
import { cssVar, useThemeMode } from 'antd-style';
const Component = () => {
const { isDarkMode } = useThemeMode();
return (
<div className={isDarkMode ? styles.dark : styles.light}>
{cssVar.colorText}
</div>
);
};
```
**已优化示例:**
- `AuroraBackground`, `Select`, `Input`, `Button`, `DatePicker`, `AutoComplete`, `InputNumber`, `InputPassword`, `InputOPT`, `TextArea`, `SpotlightCardItem`, `Spotlight`, `HotkeyInput` - 只使用 `isDarkMode``useThemeMode()`
- `Image`, `GradientButton`, `Empty`, `FileTypeIcon`, `FormSubmitFooter`, `CodeEditor`, `LobeChat`, `Drawer`, `Modal`, `Avatar`, `AvatarGroup`, `SkeletonAvatar`, `SkeletonButton`, `SkeletonTags`, `Callout`, `LobeHub`, `GridBackground`, `FolderIcon`, `FileIcon`, `TokenTag`, `ChatSendButton`, `AvatarUploader` - 使用 token → `cssVar`
**无法优化的文件(需要保留 `useTheme()`):**
- `useMermaid`, `useStreamMermaid`, `useHighlight`, `useStreamHighlight` - 需要完整的 theme 对象传给第三方库
- `Alert`, `Tag`, `Menu`, `EmojiPicker` - 需要实际颜色值传给颜色计算函数
- `SkeletonTitle`, `SkeletonTags` - 需要数值进行数学运算
- `GridShowcase`, `GridBackground/demos` - 需要实际颜色值传给 `rgba()` 函数
- `CustomFonts` - 需要实际字符串值进行字符串拼接
- `Giscus/style.ts` - 需要实际颜色值传给 `readableColor()``rgba()` 函数(其他 token 已优化为 `cssVar`
**注意事项:**
- `useThemeMode()` 只返回 `{ isDarkMode }`,不返回完整的 theme 对象
- `cssVar` 的值是字符串(如 `"14px"`, `"#ffffff"`),可以直接在 JSX 中使用
- 如果 token 需要用于数值计算(如 `Math.round(theme.fontSize * 1.5)`),需要保留 `useTheme()`
## 🎉 总结
`createStaticStyles` 迁移是一个渐进式的优化过程。对于简单的静态样式,可以直接转换;对于复杂的动态场景,需要根据具体情况选择合适的优化策略。关键是要理解每种场景的处理方式,并灵活运用 CSS 变量、静态样式拆分等技术。
### useTheme () 优化总结
-**使用 `useThemeMode()`**:当组件只使用 `theme.isDarkMode`
-**使用 `cssVar`**:当组件使用其他 token 值(颜色、尺寸等)时
- ⚠️ **保留 `useTheme()`**:当 token 需要用于数值计算或传给第三方库时
+1 -1
View File
@@ -1,7 +1,7 @@
const config = require('@lobehub/lint').eslint;
config.root = true;
config.extends.push('plugin:@next/next/recommended');
config.extends.push('plugin:@next/next/recommended-legacy');
config.rules['unicorn/no-negated-condition'] = 0;
config.rules['unicorn/prefer-type-error'] = 0;
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
git config --global user.name "lobehubbot"
git config --global user.email "i@lobehub.com"
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
+115
View File
@@ -0,0 +1,115 @@
name: Bundle Analyzer
on:
workflow_dispatch:
permissions:
contents: read
actions: write
env:
NODE_VERSION: 24.11.1
BUN_VERSION: 1.2.23
jobs:
bundle-analyzer:
name: Analyze Bundle Size
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm i
- name: Ensure lockfile exists
run: |
# Temporarily override .npmrc lockfile=false setting
# to generate pnpm-lock.yaml for reproducible builds
if [ ! -f "pnpm-lock.yaml" ]; then
echo "Generating pnpm-lock.yaml..."
# Create temporary .npmrc override
mv .npmrc .npmrc.bak
echo "lockfile=true" > .npmrc
cat .npmrc.bak >> .npmrc
pnpm i
mv .npmrc.bak .npmrc
fi
- name: Generate build secrets
id: generate-secret
run: echo "secret=$(openssl rand -base64 32)" >> $GITHUB_OUTPUT
- name: Build with bundle analyzer
run: bun run build:analyze || true
env:
NODE_OPTIONS: --max-old-space-size=8192
KEY_VAULTS_SECRET: ${{ secrets.KEY_VAULTS_SECRET || steps.generate-secret.outputs.secret }}
- name: Prepare analyzer reports
run: |
mkdir -p bundle-report
# Copy analyzer HTML reports if they exist
if [ -d ".next/analyze" ]; then
cp -r .next/analyze/* bundle-report/ || true
fi
# Also check if reports are in .vercel/output
if [ -d ".vercel/output/.next/analyze" ]; then
cp -r .vercel/output/.next/analyze/* bundle-report/ || true
fi
# Include pnpm lockfile for reproducible builds
if [ -f "pnpm-lock.yaml" ]; then
cp pnpm-lock.yaml bundle-report/pnpm-lock.yaml
echo "Copied pnpm-lock.yaml to bundle-report"
else
echo "Warning: pnpm-lock.yaml not found"
fi
# Create a summary with build metadata
echo "# Bundle Analysis Report" > bundle-report/README.md
echo "" >> bundle-report/README.md
echo "**Build Date:** $(date -u +"%Y-%m-%d %H:%M:%S UTC")" >> bundle-report/README.md
echo "**Commit:** ${{ github.sha }}" >> bundle-report/README.md
echo "**Branch:** ${{ github.ref_name }}" >> bundle-report/README.md
echo "" >> bundle-report/README.md
echo "## How to view" >> bundle-report/README.md
echo "" >> bundle-report/README.md
echo "1. Download the \`bundle-report\` artifact from this workflow run" >> bundle-report/README.md
echo "2. Extract the archive" >> bundle-report/README.md
echo "3. Open \`client.html\` and \`server.html\` in your browser" >> bundle-report/README.md
echo "" >> bundle-report/README.md
echo "## Files in this report" >> bundle-report/README.md
echo "" >> bundle-report/README.md
echo "- \`client.html\` - Client-side bundle analysis" >> bundle-report/README.md
echo "- \`server.html\` - Server-side bundle analysis" >> bundle-report/README.md
echo "- \`pnpm-lock.yaml\` - pnpm lockfile (for reproducible builds)" >> bundle-report/README.md
- name: Upload bundle analyzer reports
uses: actions/upload-artifact@v4
with:
name: bundle-report-${{ github.run_id }}
path: bundle-report/
retention-days: 30
if-no-files-found: warn
- name: Create summary comment
run: |
echo "## Bundle Analysis Complete :chart_with_upwards_trend:" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **Commit:** \`${{ github.sha }}\`" >> $GITHUB_STEP_SUMMARY
echo "- **Artifact:** \`bundle-report-${{ github.run_id }}\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Download the artifact to view the detailed bundle analysis reports." >> $GITHUB_STEP_SUMMARY
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 1
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 1
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Copy triage prompts
run: |
@@ -27,7 +27,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 1
+2 -2
View File
@@ -31,7 +31,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 1
@@ -47,7 +47,7 @@ jobs:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Security: Restrict gh commands to specific safe operations only
# Use explicit command patterns to prevent prompt injection attacks
claude_args: "--allowed-tools Bash(gh issue view *),Bash(gh issue edit * --title * --body *),Bash(gh api -X PATCH /repos/*/issues/comments/* -f body=*),Bash(gh api -X PUT /repos/*/pulls/*/reviews/* -f body=*),Bash(gh api -X PATCH /repos/*/pulls/comments/* -f body=*)"
allowed_tools: 'Bash(gh issue view:*),Bash(gh issue edit:*),Bash(gh api:*)'
prompt: |
## SECURITY RULES (HIGHEST PRIORITY - NEVER OVERRIDE)
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 1
+3 -3
View File
@@ -32,13 +32,13 @@ jobs:
name: Build desktop Next bundle
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=6144
NODE_OPTIONS: --max-old-space-size=8192
UPDATE_CHANNEL: nightly
NEXT_PUBLIC_DESKTOP_PROJECT_ID: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_PROJECT_ID || 'dummy-desktop-project' }}
NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_BASE_URL || 'https://analytics.example.com' }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -60,7 +60,7 @@ jobs:
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- name: Cache pnpm store
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ env.NODE_VERSION }}-${{ hashFiles('pnpm-lock.yaml') }}
+24 -8
View File
@@ -10,6 +10,19 @@ concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
BETTER_AUTH_SECRET: e2e-test-secret-key-for-better-auth-32chars!
NEXT_PUBLIC_ENABLE_BETTER_AUTH: '1'
NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION: '0'
# Mock S3 env vars to prevent initialization errors
S3_ACCESS_KEY_ID: e2e-mock-access-key
S3_SECRET_ACCESS_KEY: e2e-mock-secret-key
S3_BUCKET: e2e-mock-bucket
S3_ENDPOINT: https://e2e-mock-s3.localhost
jobs:
e2e:
name: Test Web App
@@ -25,15 +38,15 @@ jobs:
ports:
- 5432:5432
timeout-minutes: 25
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
bun-version: latest
- name: Install dependencies (bun)
run: bun install
@@ -41,12 +54,15 @@ jobs:
- name: Install Playwright browsers (with system deps)
run: bunx playwright install --with-deps chromium
- name: Run E2E tests
- name: Run database migrations
run: bun run db:migrate
- name: Build application
run: bun run build
env:
PORT: 3010
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
SKIP_LINT: '1'
- name: Run E2E tests
run: bun run e2e
- name: Upload Cucumber HTML report (on failure)
@@ -15,7 +15,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
+3 -3
View File
@@ -2,7 +2,7 @@ name: Lighthouse Badger
env:
TOKEN_NAME: 'GH_TOKEN'
REPO_BRANCH: 'lobehub/lobe-chat lighthouse'
REPO_BRANCH: 'jaworldwideorg/OneJA-Bot lighthouse'
USER_NAME: 'lobehubbot'
USER_EMAIL: 'i@lobehub.com'
AUDIT_TYPE: 'both'
@@ -42,12 +42,12 @@ jobs:
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
env:
REPO_BRANCH: ${{ matrix.REPO_BRANCH || env.REPO_BRANCH }}
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
repository: ${{ env.REPOSITORY }}
token: ${{ secrets[matrix.TOKEN_NAME] || secrets[env.TOKEN_NAME] }}
ref: ${{ env.BRANCH }}
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
repository: 'myactionway/lighthouse-badges'
path: temp_lighthouse_badges_nested
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Lock closed issues after 7 days of inactivity
uses: actions/github-script@v8
+6 -10
View File
@@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout base
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -62,13 +62,9 @@ jobs:
- name: Install deps
run: bun i
env:
NODE_OPTIONS: --max-old-space-size=6144
- name: Lint
run: bun run lint
env:
NODE_OPTIONS: --max-old-space-size=6144
version:
name: Determine version
@@ -76,7 +72,7 @@ jobs:
outputs:
version: ${{ steps.set_version.outputs.version }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -118,7 +114,7 @@ jobs:
matrix:
os: [macos-latest, macos-15-intel]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -196,7 +192,7 @@ jobs:
if: inputs.build_windows
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -249,7 +245,7 @@ jobs:
if: inputs.build_linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -303,7 +299,7 @@ jobs:
if: inputs.build_macos
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Node & Bun
uses: ./.github/actions/setup-node-bun
+10 -10
View File
@@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
steps:
- name: Checkout base
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -33,18 +33,18 @@ jobs:
uses: ./.github/actions/setup-node-bun
with:
node-version: 24.11.1
bun-version: 1.2.23
bun-version: latest
package-manager-cache: 'false'
- name: Install deps
run: bun i
env:
NODE_OPTIONS: --max-old-space-size=6144
NODE_OPTIONS: --max-old-space-size=8192
- name: Lint
run: bun run lint
env:
NODE_OPTIONS: --max-old-space-size=6144
NODE_OPTIONS: --max-old-space-size=8192
version:
name: Determine version
@@ -55,7 +55,7 @@ jobs:
# 输出版本信息,供后续 job 使用
version: ${{ steps.set_version.outputs.version }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -80,7 +80,7 @@ jobs:
echo "📦 Release Version: ${version} (based on base version ${base_version})"
env:
NODE_OPTIONS: --max-old-space-size=6144
NODE_OPTIONS: --max-old-space-size=8192
# 输出版本信息总结,方便在 GitHub Actions 界面查看
- name: Version Summary
@@ -95,7 +95,7 @@ jobs:
matrix:
os: [macos-latest, macos-15-intel, windows-2025, ubuntu-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -218,13 +218,13 @@ jobs:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Node & Bun
uses: ./.github/actions/setup-node-bun
with:
node-version: 24.11.1
bun-version: 1.2.23
bun-version: latest
package-manager-cache: 'false'
# 下载所有平台的构建产物
@@ -274,7 +274,7 @@ jobs:
outputs:
artifact_path: ${{ steps.set_path.outputs.path }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
+10 -7
View File
@@ -15,7 +15,8 @@ permissions:
pull-requests: write
env:
REGISTRY_IMAGE: lobehub/lobehub
REGISTRY_URL: jaworldwide.azurecr.io
REGISTRY_IMAGE: jaworldwide.azurecr.io/oneja/ai/bot-database
PR_TAG_PREFIX: pr-
jobs:
@@ -38,7 +39,7 @@ jobs:
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout PR branch
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -68,8 +69,9 @@ jobs:
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- name: Build and export
id: build
@@ -106,7 +108,7 @@ jobs:
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout PR branch
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -142,8 +144,9 @@ jobs:
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- name: Create manifest list and push
working-directory: /tmp/digests
+6 -6
View File
@@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
steps:
- name: Checkout base
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -32,7 +32,7 @@ jobs:
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
bun-version: latest
- name: Install deps
run: bun i
@@ -48,7 +48,7 @@ jobs:
version: ${{ steps.set_version.outputs.version }}
is_pr_build: ${{ steps.set_version.outputs.is_pr_build }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -84,7 +84,7 @@ jobs:
matrix:
os: [macos-latest, macos-15-intel, windows-2025, ubuntu-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -205,7 +205,7 @@ jobs:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@@ -216,7 +216,7 @@ jobs:
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
bun-version: latest
# 下载所有平台的构建产物
- name: Download artifacts
+11 -7
View File
@@ -12,7 +12,9 @@ concurrency:
cancel-in-progress: false
env:
REGISTRY_IMAGE: lobehub/lobehub
REGISTRY_URL: jaworldwide.azurecr.io
REGISTRY_IMAGE: jaworldwide.azurecr.io/oneja/ai/bot-database
PR_TAG_PREFIX: pr-
jobs:
build:
@@ -33,7 +35,7 @@ jobs:
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout base
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -52,8 +54,9 @@ jobs:
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- name: Get commit SHA
if: github.ref == 'refs/heads/main'
@@ -93,7 +96,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout base
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -119,8 +122,9 @@ jobs:
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- name: Create manifest list and push
working-directory: /tmp/digests
+2 -2
View File
@@ -28,7 +28,7 @@ jobs:
- 5432:5432
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
token: ${{ secrets.GH_TOKEN }}
@@ -41,7 +41,7 @@ jobs:
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
bun-version: latest
- name: Install deps
run: bun i
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install bun
uses: oven-sh/setup-bun@v2
+11 -2
View File
@@ -17,7 +17,7 @@ jobs:
if: ${{ github.event.repository.fork }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Clean issue notice
uses: actions-cool/issues-helper@v3
@@ -31,7 +31,7 @@ jobs:
with:
upstream_sync_repo: lobehub/lobe-chat
upstream_sync_branch: next
target_sync_branch: next
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
test_mode: false
@@ -52,3 +52,12 @@ jobs:
[lobechat]: https://github.com/lobehub/lobe-chat
[tutorial-zh-CN]: https://lobehub.com/zh/docs/self-hosting/advanced/upstream-sync
[tutorial-en-US]: https://lobehub.com/docs/self-hosting/advanced/upstream-sync
- name: Trigger Release Workflow
if: success() && steps.sync.outputs.has_new_commits == 'true'
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GH_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/release.yml/dispatches \
-d '{"ref":"main"}'
+9 -8
View File
@@ -26,7 +26,7 @@ jobs:
name: Test package ${{ matrix.package }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@@ -61,7 +61,7 @@ jobs:
name: Test package ${{ matrix.package }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@@ -72,7 +72,7 @@ jobs:
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
bun-version: latest
- name: Install deps
run: bun i
@@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@@ -105,7 +105,7 @@ jobs:
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
bun-version: latest
- name: Install deps
run: bun i
@@ -126,7 +126,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@@ -143,7 +143,7 @@ jobs:
run: pnpm install
working-directory: apps/desktop
env:
NODE_OPTIONS: --max-old-space-size=6144
NODE_OPTIONS: --max-old-space-size=8192
- name: Typecheck Desktop
run: pnpm type-check
@@ -173,11 +173,12 @@ jobs:
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
@@ -0,0 +1,55 @@
name: Verify Desktop Patch
on:
push:
branches:
- main
- next
- dev
paths:
- 'scripts/electronWorkflow/**'
- 'src/libs/next/config/**'
- 'src/app/**'
- 'src/layout/**'
- 'src/components/mdx/**'
- 'src/features/DevPanel/**'
- 'src/server/translation.ts'
pull_request:
paths:
- 'scripts/electronWorkflow/**'
- 'src/libs/next/config/**'
- 'src/app/**'
- 'src/layout/**'
- 'src/components/mdx/**'
- 'src/features/DevPanel/**'
- 'src/server/translation.ts'
workflow_dispatch:
permissions:
contents: read
env:
NODE_VERSION: 24.11.1
BUN_VERSION: 1.2.23
jobs:
verify:
name: Desktop patch smoke test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node & Bun
uses: ./.github/actions/setup-node-bun
with:
node-version: ${{ env.NODE_VERSION }}
bun-version: ${{ env.BUN_VERSION }}
- name: Install deps
run: bun i
- name: Verify desktop patch
run: bun scripts/electronWorkflow/modifiers/index.mts
+8 -2
View File
@@ -1,2 +1,8 @@
npm run type-check
npx --no-install lint-staged
# .husky/post-merge
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run type-check || echo "Type check failed, please fix issues!"
npx --no-install lint-staged || echo "Lint-staged failed, but continuing merge..."
exit 0
+3 -3
View File
@@ -1,14 +1,14 @@
const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'locales/zh-CN',
entryLocale: 'zh-CN',
entry: 'locales/en-US',
entryLocale: 'en-US',
output: 'locales',
outputLocales: [
'ar',
'bg-BG',
'zh-CN',
'zh-TW',
'en-US',
'ru-RU',
'ja-JP',
'ko-KR',
+33
View File
@@ -1,5 +1,10 @@
const config = require('@lobehub/lint').semanticRelease;
// Remove NPM publishing by excluding "@semantic-release/npm" plugin
// Keep or add other plugins like GitHub Releases
config.plugins = config.plugins.filter((plugin) => plugin !== '@semantic-release/npm');
// Add GitHub only if required
config.branches = [
'main',
{
@@ -15,4 +20,32 @@ config.plugins.push([
},
]);
// Override GitHub repository URL without modifying package.json
// Make sure @semantic-release/github is present in the plugins
if (!config.plugins.some(plugin => Array.isArray(plugin) ? plugin[0] === '@semantic-release/github' : plugin === '@semantic-release/github')) {
config.plugins.push([
'@semantic-release/github',
{
repositoryUrl: 'https://github.com/jaworldwideorg/OneJA-Bot.git'
}
]);
} else {
// Find and update the existing GitHub plugin configuration
config.plugins = config.plugins.map(plugin => {
if (Array.isArray(plugin) && plugin[0] === '@semantic-release/github') {
return [
'@semantic-release/github',
{
...(plugin[1] || {}),
repositoryUrl: 'https://github.com/jaworldwideorg/OneJA-Bot.git'
}
];
}
return plugin;
});
}
// Set repository URL in global config
config.repositoryUrl = 'https://github.com/jaworldwideorg/OneJA-Bot.git';
module.exports = config;
+10 -23
View File
@@ -7,14 +7,16 @@
"editor.formatOnSave": true,
// don't show errors, but fix when save and git pre commit
"eslint.rules.customizations": [
{ "rule": "import/order", "severity": "off" },
{ "rule": "prettier/prettier", "severity": "off" },
{ "rule": "react/jsx-sort-props", "severity": "off" },
{ "rule": "sort-keys-fix/sort-keys-fix", "severity": "off" },
{ "rule": "simple-import-sort/exports", "severity": "off" },
{ "rule": "typescript-sort-keys/interface", "severity": "off" }
// { "rule": "import/order", "severity": "off" },
// { "rule": "prettier/prettier", "severity": "off" },
// { "rule": "react/jsx-sort-props", "severity": "off" },
// { "rule": "sort-keys-fix/sort-keys-fix", "severity": "off" },
// { "rule": "simple-import-sort/exports", "severity": "off" },
// { "rule": "typescript-sort-keys/interface", "severity": "off" }
],
"eslint.validate": [
// vscode eslint not 插件兼容性有问题
// "json",
"javascript",
"javascriptreact",
"typescript",
@@ -24,9 +26,9 @@
],
"npm.packageManager": "pnpm",
"search.exclude": {
"**/node_modules": true,
"**/node_modules": true
// useless to search this big folder
"locales": true
// "locales": true
},
"stylelint.validate": [
"css",
@@ -39,58 +41,43 @@
"**/app/**/[[]*[]]/[[]*[]]/page.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • page component",
"**/app/**/[[]*[]]/page.tsx": "${dirname(1)}/${dirname} • page component",
"**/app/**/page.tsx": "${dirname} • page component",
"**/app/**/[[]*[]]/[[]*[]]/layout.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • page layout",
"**/app/**/[[]*[]]/layout.tsx": "${dirname(1)}/${dirname} • page layout",
"**/app/**/layout.tsx": "${dirname} • page layout",
"**/app/**/[[]*[]]/[[]*[]]/default.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • slot default",
"**/app/**/[[]*[]]/default.tsx": "${dirname(1)}/${dirname} • slot default",
"**/app/**/default.tsx": "${dirname} • slot default",
"**/app/**/[[]*[]]/[[]*[]]/error.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • error component",
"**/app/**/[[]*[]]/error.tsx": "${dirname(1)}/${dirname} • error component",
"**/app/**/error.tsx": "${dirname} • error component",
"**/app/**/[[]*[]]/[[]*[]]/loading.tsx": "${dirname(2)}/${dirname(1)}/${dirname} • loading component",
"**/app/**/[[]*[]]/loading.tsx": "${dirname(1)}/${dirname} • loading component",
"**/app/**/loading.tsx": "${dirname} • loading component",
"**/src/**/route.ts": "${dirname(1)}/${dirname} • route",
"**/src/**/index.tsx": "${dirname} • component",
"**/packages/database/src/repositories/*/index.ts": "${dirname} • db repository",
"**/packages/database/src/models/*.ts": "${filename} • db model",
"**/packages/database/src/schemas/*.ts": "${filename} • db schema",
"**/src/services/*.ts": "${filename} • service",
"**/src/services/*/client.ts": "${dirname} • client service",
"**/src/services/*/server.ts": "${dirname} • server service",
"**/src/store/*/action.ts": "${dirname} • action",
"**/src/store/*/slices/*/action.ts": "${dirname(2)}/${dirname} • action",
"**/src/store/*/slices/*/actions/*.ts": "${dirname(1)}/${dirname}/${filename} • action",
"**/src/store/*/initialState.ts": "${dirname} • state",
"**/src/store/*/slices/*/initialState.ts": "${dirname(2)}/${dirname} • state",
"**/src/store/*/selectors.ts": "${dirname} • selectors",
"**/src/store/*/slices/*/selectors.ts": "${dirname(2)}/${dirname} • selectors",
"**/src/store/*/reducer.ts": "${dirname} • reducer",
"**/src/store/*/slices/*/reducer.ts": "${dirname(2)}/${dirname} • reducer",
"**/src/config/modelProviders/*.ts": "${filename} • provider",
"**/packages/model-bank/src/aiModels/*.ts": "${filename} • model",
"**/packages/model-runtime/src/providers/*/index.ts": "${dirname} • runtime",
"**/src/server/services/*/index.ts": "${dirname} • server/service",
"**/src/server/routers/lambda/*.ts": "${filename} • lambda",
"**/src/server/routers/async/*.ts": "${filename} • async",
"**/src/server/routers/edge/*.ts": "${filename} • edge",
"**/src/locales/default/*.ts": "${filename} • locale",
"**/index.*": "${dirname}/${filename}.${extname}"
}
}
+1324
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -1,6 +1,6 @@
# CLAUDE.md
This document serves as a shared guideline for all team members when using Claude Code in this repository.
This document serves as a shared guideline for all team members when using Claude Code in this opensource lobe-chat(also known as lobehub) repository.
## Tech Stack
@@ -14,7 +14,6 @@ read @.cursor/rules/project-structure.mdc
### Git Workflow
- The current release branch is `next` instead of `main` until v2.0.0 is officially released
- use rebase for git pull
- git commit message should prefix with gitmoji
- git branch name format template: <type>/<feature-name>
+2 -1
View File
@@ -74,13 +74,14 @@ ENV NEXT_PUBLIC_ANALYTICS_UMAMI="${NEXT_PUBLIC_ANALYTICS_UMAMI}" \
NEXT_PUBLIC_UMAMI_WEBSITE_ID="${NEXT_PUBLIC_UMAMI_WEBSITE_ID}"
# Node
ENV NODE_OPTIONS="--max-old-space-size=6144"
ENV NODE_OPTIONS="--max-old-space-size=8192"
WORKDIR /app
COPY package.json pnpm-workspace.yaml ./
COPY .npmrc ./
COPY packages ./packages
COPY patches ./patches
# bring in desktop workspace manifest so pnpm can resolve it
COPY apps/desktop/src/main/package.json ./apps/desktop/src/main/package.json
+4
View File
@@ -165,12 +165,16 @@ const config = {
CFBundleURLSchemes: [protocolScheme],
},
],
NSAppleEventsUsageDescription:
'Application needs to control System Settings to help you grant Full Disk Access automatically.',
NSCameraUsageDescription: "Application requests access to the device's camera.",
NSDocumentsFolderUsageDescription:
"Application requests access to the user's Documents folder.",
NSDownloadsFolderUsageDescription:
"Application requests access to the user's Downloads folder.",
NSMicrophoneUsageDescription: "Application requests access to the device's microphone.",
NSScreenCaptureUsageDescription:
'Application requests access to record and analyze screen content for AI assistance.',
},
gatekeeperAssess: false,
hardenedRuntime: hasAppleCertificate,
+3 -2
View File
@@ -18,6 +18,7 @@
"build:mac:local": "npm run build && UPDATE_CHANNEL=nightly electron-builder --mac --config electron-builder.js --publish never",
"build:win": "npm run build && electron-builder --win --config electron-builder.js --publish never",
"dev": "electron-vite dev",
"dev:static": "cross-env DESKTOP_RENDERER_STATIC=1 npm run electron:dev",
"electron:dev": "electron-vite dev",
"electron:run-unpack": "electron .",
"format": "prettier --write ",
@@ -57,11 +58,11 @@
"@lobechat/file-loaders": "workspace:*",
"@lobehub/i18n-cli": "^1.25.1",
"@modelcontextprotocol/sdk": "^1.24.3",
"@t3-oss/env-core": "^0.13.8",
"@types/async-retry": "^1.4.9",
"@types/resolve": "^1.20.6",
"@types/semver": "^7.7.1",
"@types/set-cookie-parser": "^2.4.10",
"@t3-oss/env-core": "^0.13.8",
"@typescript/native-preview": "7.0.0-dev.20251210.1",
"async-retry": "^1.3.3",
"consola": "^3.4.2",
@@ -104,4 +105,4 @@
"electron-builder"
]
}
}
}
+1 -1
View File
@@ -31,5 +31,5 @@ export const STORE_DEFAULTS: ElectronMainStore = {
networkProxy: defaultProxySettings,
shortcuts: DEFAULT_SHORTCUTS_CONFIG,
storagePath: appStorageDir,
themeMode: 'auto',
themeMode: 'system',
};
@@ -96,6 +96,8 @@ export default class RemoteServerConfigCtr extends ControllerModule {
const merged = this.normalizeConfig({ ...prev, ...config });
storeManager.set('dataSyncConfig', merged);
this.broadcastRemoteServerConfigUpdated();
return true;
}
@@ -113,9 +115,16 @@ export default class RemoteServerConfigCtr extends ControllerModule {
// Clear tokens (if any)
await this.clearTokens();
this.broadcastRemoteServerConfigUpdated();
return true;
}
private broadcastRemoteServerConfigUpdated() {
logger.debug('Broadcasting remoteServerConfigUpdated event to all windows');
this.app.browserManager.broadcastToAllWindows('remoteServerConfigUpdated', undefined);
}
/**
* Encrypted tokens
* Stored in memory for quick access, loaded from persistent storage on init.
+141 -15
View File
@@ -1,11 +1,14 @@
import { ElectronAppState, ThemeMode } from '@lobechat/electron-client-ipc';
import { app, nativeTheme, shell, systemPreferences } from 'electron';
import { app, dialog, nativeTheme, shell, systemPreferences } from 'electron';
import { macOS } from 'electron-is';
import { spawn } from 'node:child_process';
import path from 'node:path';
import process from 'node:process';
import { createLogger } from '@/utils/logger';
import { ControllerModule, IpcMethod } from './index';
import fullDiskAccessAutoAddScript from './scripts/full-disk-access.applescript?raw';
const logger = createLogger('controllers:SystemCtr');
@@ -35,8 +38,9 @@ export default class SystemController extends ControllerModule {
isLinux: platform === 'linux',
isMac: platform === 'darwin',
isWindows: platform === 'win32',
locale: this.app.storeManager.get('locale', 'auto'),
platform: platform as 'darwin' | 'win32' | 'linux',
systemAppearance: nativeTheme.shouldUseDarkColors ? 'dark' : 'light',
userPath: {
// User Paths (ensure keys match UserPathData / DesktopAppState interface)
desktop: app.getPath('desktop'),
@@ -76,17 +80,114 @@ export default class SystemController extends ControllerModule {
}
@IpcMethod()
async requestScreenAccess(): Promise<void> {
if (!macOS()) return;
shell.openExternal(
async requestScreenAccess(): Promise<boolean> {
if (!macOS()) return true;
// IMPORTANT:
// On macOS, the app may NOT appear in "Screen Recording" list until it actually
// requests the permission once (TCC needs to register this app).
// So we try to proactively request it first, then open System Settings for manual toggle.
// 1) Best-effort: try Electron runtime API if available (not typed in Electron 38).
try {
const status = systemPreferences.getMediaAccessStatus('screen');
if (status !== 'granted') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
await (systemPreferences as any).askForMediaAccess?.('screen');
}
} catch (error) {
logger.warn('Failed to request screen recording access via systemPreferences', error);
}
// 2) Reliable trigger: run a one-shot getDisplayMedia in renderer to register TCC entry.
// This will show the OS capture picker; once the user selects/cancels, we stop tracks immediately.
try {
const status = systemPreferences.getMediaAccessStatus('screen');
if (status !== 'granted') {
const mainWindow = this.app.browserManager.getMainWindow()?.browserWindow;
if (mainWindow && !mainWindow.isDestroyed()) {
const script = `
(() => {
const stop = (stream) => {
try { stream.getTracks().forEach((t) => t.stop()); } catch {}
};
return navigator.mediaDevices.getDisplayMedia({ video: true, audio: false })
.then((stream) => { stop(stream); return true; })
.catch(() => false);
})()
`.trim();
await mainWindow.webContents.executeJavaScript(script, true);
}
}
} catch (error) {
logger.warn('Failed to request screen recording access via getDisplayMedia', error);
}
await shell.openExternal(
'x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture',
);
return systemPreferences.getMediaAccessStatus('screen') === 'granted';
}
@IpcMethod()
openFullDiskAccessSettings() {
openFullDiskAccessSettings(payload?: { autoAdd?: boolean }) {
if (!macOS()) return;
shell.openExternal('x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles');
const { autoAdd = false } = payload || {};
// NOTE:
// - Full Disk Access cannot be requested programmatically like microphone/screen.
// - On macOS 13+ (Ventura), System Preferences is replaced by System Settings,
// and deep links may differ. We try multiple known schemes for compatibility.
const candidates = [
// macOS 13+ (System Settings)
'com.apple.settings:Privacy&path=FullDiskAccess',
// Older macOS (System Preferences)
'x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles',
];
if (autoAdd) this.tryAutoAddFullDiskAccess();
(async () => {
for (const url of candidates) {
try {
await shell.openExternal(url);
return;
} catch (error) {
logger.warn(`Failed to open Full Disk Access settings via ${url}`, error);
}
}
})();
}
/**
* Best-effort UI automation to add this app into Full Disk Access list.
*
* Limitations:
* - This uses AppleScript UI scripting (System Events) and may require the user to grant
* additional "Automation" permission (to control System Settings).
* - UI structure differs across macOS versions/languages; we fall back silently.
*/
private tryAutoAddFullDiskAccess() {
if (!macOS()) return;
const exePath = app.getPath('exe');
// /Applications/App.app/Contents/MacOS/App -> /Applications/App.app
const appBundlePath = path.resolve(path.dirname(exePath), '..', '..');
// Keep the script minimal and resilient; failure should not break onboarding flow.
const script = fullDiskAccessAutoAddScript.trim();
try {
const child = spawn('osascript', ['-e', script, appBundlePath], { env: process.env });
child.on('error', (error) => {
logger.warn('Full Disk Access auto-add (osascript) failed to start', error);
});
child.on('exit', (code) => {
logger.debug('Full Disk Access auto-add (osascript) exited', { code });
});
} catch (error) {
logger.warn('Full Disk Access auto-add failed', error);
}
}
@IpcMethod()
@@ -94,6 +195,37 @@ export default class SystemController extends ControllerModule {
return shell.openExternal(url);
}
/**
* Open native folder picker dialog
*/
@IpcMethod()
async selectFolder(payload?: {
defaultPath?: string;
title?: string;
}): Promise<string | undefined> {
const mainWindow = this.app.browserManager.getMainWindow()?.browserWindow;
const result = await dialog.showOpenDialog(mainWindow!, {
defaultPath: payload?.defaultPath,
properties: ['openDirectory', 'createDirectory'],
title: payload?.title || 'Select Folder',
});
if (result.canceled || result.filePaths.length === 0) {
return undefined;
}
return result.filePaths[0];
}
/**
* Get the OS system locale
*/
@IpcMethod()
getSystemLocale(): string {
return app.getLocale();
}
/**
* 更新应用语言设置
*/
@@ -126,9 +258,8 @@ export default class SystemController extends ControllerModule {
return nativeTheme.themeSource;
}
@IpcMethod()
async setSystemThemeMode(themeMode: ThemeMode) {
nativeTheme.themeSource = themeMode === 'auto' ? 'system' : themeMode;
private async setSystemThemeMode(themeMode: ThemeMode) {
nativeTheme.themeSource = themeMode;
}
/**
@@ -142,11 +273,6 @@ export default class SystemController extends ControllerModule {
logger.info('Initializing system theme listener');
// Get initial system theme
const initialDarkMode = nativeTheme.shouldUseDarkColors;
const initialSystemTheme: ThemeMode = initialDarkMode ? 'dark' : 'light';
logger.info(`Initial system theme: ${initialSystemTheme}`);
// Listen for system theme changes
nativeTheme.on('updated', () => {
const isDarkMode = nativeTheme.shouldUseDarkColors;
@@ -43,7 +43,12 @@ const mockStoreManager = {
set: vi.fn(),
};
const mockBrowserManager = {
broadcastToAllWindows: vi.fn(),
};
const mockApp = {
browserManager: mockBrowserManager,
storeManager: mockStoreManager,
} as unknown as App;
@@ -44,6 +44,22 @@ vi.mock('@/utils/logger', () => ({
}),
}));
const { spawnMock } = vi.hoisted(() => ({
spawnMock: vi.fn(() => {
const handlers = new Map<string, (...args: any[]) => void>();
return {
on: vi.fn((event: string, cb: (...args: any[]) => void) => {
handlers.set(event, cb);
return undefined;
}),
} as any;
}),
}));
vi.mock('node:child_process', () => ({
spawn: (...args: any[]) => spawnMock.call(null, ...args),
}));
// Mock electron
vi.mock('electron', () => ({
app: {
@@ -56,11 +72,14 @@ vi.mock('electron', () => ({
nativeTheme: {
on: vi.fn(),
shouldUseDarkColors: false,
themeSource: 'system',
},
shell: {
openExternal: vi.fn().mockResolvedValue(undefined),
},
systemPreferences: {
askForMediaAccess: vi.fn(async () => true),
getMediaAccessStatus: vi.fn(() => 'not-determined'),
isTrustedAccessibilityClient: vi.fn(() => true),
},
}));
@@ -73,6 +92,14 @@ vi.mock('electron-is', () => ({
// Mock browserManager
const mockBrowserManager = {
broadcastToAllWindows: vi.fn(),
getMainWindow: vi.fn(() => ({
browserWindow: {
isDestroyed: vi.fn(() => false),
webContents: {
executeJavaScript: vi.fn(async () => true),
},
},
})),
handleAppThemeChange: vi.fn(),
};
@@ -112,7 +139,6 @@ describe('SystemController', () => {
expect(result).toMatchObject({
arch: expect.any(String),
platform: expect.any(String),
systemAppearance: 'light',
userPath: {
desktop: '/mock/path/desktop',
documents: '/mock/path/documents',
@@ -125,18 +151,6 @@ describe('SystemController', () => {
},
});
});
it('should return dark appearance when nativeTheme is dark', async () => {
const { nativeTheme } = await import('electron');
Object.defineProperty(nativeTheme, 'shouldUseDarkColors', { value: true });
const result = await invokeIpc('system.getAppState');
expect(result.systemAppearance).toBe('dark');
// Reset
Object.defineProperty(nativeTheme, 'shouldUseDarkColors', { value: false });
});
});
describe('accessibility', () => {
@@ -163,6 +177,68 @@ describe('SystemController', () => {
});
});
describe('screen recording', () => {
it('should request screen recording access and open System Settings on macOS', async () => {
const { shell, systemPreferences } = await import('electron');
const result = await invokeIpc('system.requestScreenAccess');
expect(systemPreferences.getMediaAccessStatus).toHaveBeenCalledWith('screen');
expect(systemPreferences.askForMediaAccess).toHaveBeenCalledWith('screen');
expect(mockBrowserManager.getMainWindow).toHaveBeenCalled();
expect(shell.openExternal).toHaveBeenCalledWith(
'x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture',
);
expect(typeof result).toBe('boolean');
});
it('should return true on non-macOS and not open settings', async () => {
const { macOS } = await import('electron-is');
const { shell, systemPreferences } = await import('electron');
vi.mocked(macOS).mockReturnValue(false);
const result = await invokeIpc('system.requestScreenAccess');
expect(result).toBe(true);
expect(systemPreferences.askForMediaAccess).not.toHaveBeenCalled();
expect(shell.openExternal).not.toHaveBeenCalled();
// Reset
vi.mocked(macOS).mockReturnValue(true);
});
});
describe('full disk access', () => {
it('should try to open Full Disk Access settings with fallbacks', async () => {
const { shell } = await import('electron');
vi.mocked(shell.openExternal)
.mockRejectedValueOnce(new Error('fail first'))
.mockResolvedValueOnce(undefined);
await invokeIpc('system.openFullDiskAccessSettings');
expect(shell.openExternal).toHaveBeenCalledWith(
'com.apple.settings:Privacy&path=FullDiskAccess',
);
expect(shell.openExternal).toHaveBeenCalledWith(
'x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles',
);
});
it('should spawn osascript when autoAdd is enabled', async () => {
const { shell } = await import('electron');
vi.mocked(shell.openExternal).mockResolvedValueOnce(undefined);
await invokeIpc('system.openFullDiskAccessSettings', { autoAdd: true });
expect(spawnMock).toHaveBeenCalledWith(
'osascript',
expect.arrayContaining(['-e', expect.any(String), expect.any(String)]),
expect.objectContaining({ env: expect.any(Object) }),
);
});
});
describe('openExternalLink', () => {
it('should open external link', async () => {
const { shell } = await import('electron');
@@ -0,0 +1,85 @@
on run argv
set appBundlePath to item 1 of argv
set settingsBundleIds to {"com.apple.SystemSettings", "com.apple.systempreferences"}
-- Bring System Settings/Preferences to front (Ventura+ / older). If it doesn't exist, ignore.
repeat with bundleId in settingsBundleIds
try
tell application id bundleId to activate
exit repeat
end try
end repeat
tell application "System Events"
set settingsProcess to missing value
repeat 30 times
repeat with bundleId in settingsBundleIds
try
if exists (first process whose bundle identifier is bundleId) then
set settingsProcess to first process whose bundle identifier is bundleId
exit repeat
end if
end try
end repeat
if settingsProcess is not missing value then exit repeat
delay 0.2
end repeat
if settingsProcess is missing value then return "no-settings-process"
tell settingsProcess
set frontmost to true
repeat 30 times
if exists window 1 then exit repeat
delay 0.2
end repeat
if not (exists window 1) then return "no-window"
-- Best-effort: find an "add" button in the front window and click it.
set clickedAdd to false
repeat 30 times
try
repeat with b in (buttons of window 1)
set bDesc to ""
set bName to ""
set bTitle to ""
try set bDesc to description of b end try
try set bName to name of b end try
try set bTitle to title of b end try
if (bDesc is "Add") or (bTitle is "Add") or (bName is "+") or (bTitle is "+") then
click b
set clickedAdd to true
exit repeat
end if
end repeat
end try
if clickedAdd is true then exit repeat
delay 0.2
end repeat
if clickedAdd is false then return "no-add-button"
-- Wait for open panel / sheet
repeat 30 times
if exists sheet 1 of window 1 then exit repeat
delay 0.2
end repeat
if not (exists sheet 1 of window 1) then return "no-sheet"
-- Open "Go to the folder" and input the app bundle path, then confirm.
keystroke "G" using {command down, shift down}
delay 0.3
keystroke appBundlePath
key code 36
delay 0.6
-- Confirm "Open" in the panel (Enter usually triggers default)
key code 36
return "ok"
end tell
end tell
end run
+36 -189
View File
@@ -1,24 +1,15 @@
import {
DEFAULT_VARIANTS,
LOBE_LOCALE_COOKIE,
LOBE_THEME_APPEARANCE,
Locales,
RouteVariants,
} from '@lobechat/desktop-bridge';
import { ElectronIPCEventHandler, ElectronIPCServer } from '@lobechat/electron-server-ipc';
import { app, protocol, session } from 'electron';
import { app, nativeTheme, protocol } from 'electron';
import installExtension, { REACT_DEVELOPER_TOOLS } from 'electron-devtools-installer';
import { macOS, windows } from 'electron-is';
import { pathExistsSync } from 'fs-extra';
import os from 'node:os';
import { extname, join } from 'node:path';
import { join } from 'node:path';
import { name } from '@/../../package.json';
import { buildDir, nextExportDir } from '@/const/dir';
import { buildDir } from '@/const/dir';
import { isDev } from '@/const/env';
import { ELECTRON_BE_PROTOCOL_SCHEME } from '@/const/protocol';
import { IControlModule } from '@/controllers';
import { getDesktopEnv } from '@/env';
import { IServiceModule } from '@/services';
import { getServerMethodMetadata } from '@/utils/ipc';
import { createLogger } from '@/utils/logger';
@@ -27,7 +18,7 @@ import { BrowserManager } from './browser/BrowserManager';
import { I18nManager } from './infrastructure/I18nManager';
import { IoCContainer } from './infrastructure/IoCContainer';
import { ProtocolManager } from './infrastructure/ProtocolManager';
import { RendererProtocolManager } from './infrastructure/RendererProtocolManager';
import { RendererUrlManager } from './infrastructure/RendererUrlManager';
import { StaticFileServerManager } from './infrastructure/StaticFileServerManager';
import { StoreManager } from './infrastructure/StoreManager';
import { UpdaterManager } from './infrastructure/UpdaterManager';
@@ -45,11 +36,7 @@ type Class<T> = new (...args: any[]) => T;
const importAll = (r: any) => Object.values(r).map((v: any) => v.default);
const devDefaultRendererUrl = 'http://localhost:3015';
export class App {
rendererLoadedUrl: string;
browserManager: BrowserManager;
menuManager: MenuManager;
i18n: I18nManager;
@@ -59,12 +46,8 @@ export class App {
trayManager: TrayManager;
staticFileServerManager: StaticFileServerManager;
protocolManager: ProtocolManager;
rendererProtocolManager: RendererProtocolManager;
rendererUrlManager: RendererUrlManager;
chromeFlags: string[] = ['OverlayScrollbar', 'FluentOverlayScrollbar', 'FluentScrollbar'];
/**
* Escape hatch: allow testing static renderer in dev via env
*/
private readonly rendererStaticOverride = getDesktopEnv().DESKTOP_RENDERER_STATIC;
/**
* whether app is in quiting
@@ -96,10 +79,7 @@ export class App {
// Initialize store manager
this.storeManager = new StoreManager(this);
this.rendererProtocolManager = new RendererProtocolManager({
nextExportDir,
resolveRendererFilePath: this.resolveRendererFilePath.bind(this),
});
this.rendererUrlManager = new RendererUrlManager();
protocol.registerSchemesAsPrivileged([
{
privileges: {
@@ -111,12 +91,9 @@ export class App {
},
scheme: ELECTRON_BE_PROTOCOL_SCHEME,
},
this.rendererProtocolManager.protocolScheme,
this.rendererUrlManager.protocolScheme,
]);
// Initialize rendererLoadedUrl from RendererProtocolManager
this.rendererLoadedUrl = this.rendererProtocolManager.getRendererUrl();
// load controllers
const controllers: IControlModule[] = importAll(
import.meta.glob('@/controllers/*Ctr.ts', { eager: true }),
@@ -146,7 +123,7 @@ export class App {
// Configure renderer loading strategy (dev server vs static export)
// should register before app ready
this.configureRendererLoader();
this.rendererUrlManager.configureRendererLoader();
// initialize protocol handlers
this.protocolManager.initialize();
@@ -154,9 +131,34 @@ export class App {
// 统一处理 before-quit 事件
app.on('before-quit', this.handleBeforeQuit);
// Initialize theme mode from store
this.initializeThemeMode();
logger.info('App initialization completed');
}
/**
* Initialize nativeTheme.themeSource from stored themeMode preference
* This allows nativeTheme.shouldUseDarkColors to be used consistently everywhere
*/
private initializeThemeMode() {
let themeMode = this.storeManager.get('themeMode');
// Migrate legacy 'auto' value to 'system' (nativeTheme.themeSource doesn't accept 'auto')
if (Object.is(themeMode, 'auto')) {
themeMode = 'system';
this.storeManager.set('themeMode', themeMode);
logger.info(`Migrated legacy theme mode 'auto' to 'system'`);
}
if (themeMode) {
nativeTheme.themeSource = themeMode;
logger.debug(
`Theme mode initialized to: ${themeMode} (themeSource: ${nativeTheme.themeSource})`,
);
}
}
bootstrap = async () => {
logger.info('Bootstrapping application');
// make single instance
@@ -367,166 +369,11 @@ export class App {
}
};
private resolveExportFilePath(pathname: string) {
// Normalize by removing leading/trailing slashes so extname works as expected
const normalizedPath = decodeURIComponent(pathname).replace(/^\/+/, '').replace(/\/$/, '');
if (!normalizedPath) return join(nextExportDir, 'index.html');
const basePath = join(nextExportDir, normalizedPath);
const ext = extname(normalizedPath);
// If the request explicitly includes an extension (e.g. html, ico, txt),
// treat it as a direct asset without variant injection.
if (ext) {
return pathExistsSync(basePath) ? basePath : null;
}
const candidates = [`${basePath}.html`, join(basePath, 'index.html'), basePath];
for (const candidate of candidates) {
if (pathExistsSync(candidate)) return candidate;
}
const fallback404 = join(nextExportDir, '404.html');
if (pathExistsSync(fallback404)) return fallback404;
return null;
}
/**
* Configure renderer loading strategy for dev/prod
*/
private configureRendererLoader() {
if (isDev && !this.rendererStaticOverride) {
this.rendererLoadedUrl = devDefaultRendererUrl;
this.setupDevRenderer();
return;
}
if (isDev && this.rendererStaticOverride) {
logger.warn('Dev mode: DESKTOP_RENDERER_STATIC enabled, using static renderer handler');
}
this.setupProdRenderer();
}
/**
* Development: use Next dev server directly
*/
private setupDevRenderer() {
logger.info('Development mode: renderer served from Next dev server, no protocol hook');
}
/**
* Production: serve static Next export assets
*/
private setupProdRenderer() {
// Use the URL from RendererProtocolManager
this.rendererLoadedUrl = this.rendererProtocolManager.getRendererUrl();
this.rendererProtocolManager.registerHandler();
}
/**
* Resolve renderer file path in production by combining variant prefix and pathname.
* Falls back to default variant when cookies are missing or invalid.
*/
private async resolveRendererFilePath(url: URL) {
const pathname = url.pathname;
const normalizedPathname = pathname.endsWith('/') ? pathname.slice(0, -1) : pathname;
// Static assets should be resolved from root (no variant prefix)
if (
pathname.startsWith('/_next/') ||
pathname.startsWith('/static/') ||
pathname === '/favicon.ico' ||
pathname === '/manifest.json'
) {
return this.resolveExportFilePath(pathname);
}
// If the incoming path already contains an extension (like .html or .ico),
// treat it as a direct asset lookup to avoid double variant prefixes.
const extension = extname(normalizedPathname);
if (extension) {
const directPath = this.resolveExportFilePath(pathname);
if (directPath) return directPath;
// Next.js RSC payloads are emitted under variant folders (e.g. /en-US__0__light/__next._tree.txt),
// but the runtime may request them without the variant prefix. For missing .txt requests,
// retry resolution with variant injection.
if (extension === '.txt' && normalizedPathname.includes('__next.')) {
const variant = await this.getRouteVariantFromCookies();
return (
this.resolveExportFilePath(`/${variant}${pathname}`) ||
this.resolveExportFilePath(`/${this.defaultRouteVariant}${pathname}`) ||
null
);
}
return null;
}
const variant = await this.getRouteVariantFromCookies();
const variantPrefixedPath = `/${variant}${pathname}`;
// Try variant-specific path first, then default variant as fallback
return (
this.resolveExportFilePath(variantPrefixedPath) ||
this.resolveExportFilePath(`/${this.defaultRouteVariant}${pathname}`) ||
null
);
}
private readonly defaultRouteVariant = RouteVariants.serializeVariants(DEFAULT_VARIANTS);
private readonly localeCookieName = LOBE_LOCALE_COOKIE;
private readonly themeCookieName = LOBE_THEME_APPEARANCE;
/**
* Build variant string from Electron session cookies to match Next export structure.
* Desktop is always treated as non-mobile (0).
*/
private async getRouteVariantFromCookies(): Promise<string> {
try {
const cookies = await session.defaultSession.cookies.get({
url: `${this.rendererLoadedUrl}/`,
});
const locale = cookies.find((c) => c.name === this.localeCookieName)?.value;
const themeCookie = cookies.find((c) => c.name === this.themeCookieName)?.value;
const serialized = RouteVariants.serializeVariants(
RouteVariants.createVariants({
isMobile: false,
locale: locale as Locales | undefined,
theme: themeCookie === 'dark' || themeCookie === 'light' ? themeCookie : undefined,
}),
);
return RouteVariants.serializeVariants(RouteVariants.deserializeVariants(serialized));
} catch (error) {
logger.warn('Failed to read route variant cookies, using default', error);
return this.defaultRouteVariant;
}
}
/**
* Build renderer URL with variant prefix injected into the path.
* In dev mode (without static override), Next.js dev server handles routing automatically.
* In prod or dev with static override, we need to inject variant to match export structure: /[variants]/path
* Build renderer URL for dev/prod.
*/
async buildRendererUrl(path: string): Promise<string> {
// Ensure path starts with /
const cleanPath = path.startsWith('/') ? path : `/${path}`;
// In dev mode without static override, use dev server directly (no variant needed)
if (isDev && !this.rendererStaticOverride) {
return `${this.rendererLoadedUrl}${cleanPath}`;
}
// In prod or dev with static override, inject variant for static export structure
const variant = await this.getRouteVariantFromCookies();
return `${this.rendererLoadedUrl}/${variant}.html${cleanPath}`;
return this.rendererUrlManager.buildRendererUrl(path);
}
private initializeServerIpcEvents() {
@@ -561,4 +408,4 @@ export class App {
// 执行清理操作
this.staticFileServerManager.destroy();
};
}
}
@@ -12,6 +12,7 @@ vi.mock('electron', () => ({
getLocale: vi.fn(() => 'en-US'),
getPath: vi.fn(() => '/mock/user/path'),
requestSingleInstanceLock: vi.fn(() => true),
isReady: vi.fn(() => true),
whenReady: vi.fn(() => Promise.resolve()),
on: vi.fn(),
commandLine: {
@@ -28,10 +29,11 @@ vi.mock('electron', () => ({
},
nativeTheme: {
on: vi.fn(),
shouldUseDarkColors: false,
themeSource: 'system',
},
protocol: {
registerSchemesAsPrivileged: vi.fn(),
handle: vi.fn(),
},
session: {
defaultSession: {
@@ -83,6 +85,10 @@ vi.mock('@/const/env', () => ({
isDev: false,
}));
vi.mock('@/env', () => ({
getDesktopEnv: vi.fn(() => ({ DESKTOP_RENDERER_STATIC: false })),
}));
vi.mock('@/const/dir', () => ({
buildDir: '/mock/build',
nextExportDir: '/mock/export/out',
@@ -190,46 +196,4 @@ describe('App', () => {
expect(storagePath).toBe('/mock/storage/path');
});
});
describe('resolveRendererFilePath', () => {
it('should retry missing .txt requests with variant-prefixed lookup', async () => {
appInstance = new App();
// Avoid touching the electron session cookie code path in this unit test
(appInstance as any).getRouteVariantFromCookies = vi.fn(async () => 'en-US__0__light');
mockPathExistsSync.mockImplementation((p: string) => {
// root miss
if (p === '/mock/export/out/__next._tree.txt') return false;
// variant hit
if (p === '/mock/export/out/en-US__0__light/__next._tree.txt') return true;
return false;
});
const resolved = await (appInstance as any).resolveRendererFilePath(
new URL('app://next/__next._tree.txt'),
);
expect(resolved).toBe('/mock/export/out/en-US__0__light/__next._tree.txt');
});
it('should keep direct lookup for existing root .txt assets (no variant retry)', async () => {
appInstance = new App();
(appInstance as any).getRouteVariantFromCookies = vi.fn(async () => {
throw new Error('should not be called');
});
mockPathExistsSync.mockImplementation((p: string) => {
if (p === '/mock/export/out/en-US__0__light.txt') return true;
return false;
});
const resolved = await (appInstance as any).resolveRendererFilePath(
new URL('app://next/en-US__0__light.txt'),
);
expect(resolved).toBe('/mock/export/out/en-US__0__light.txt');
});
});
});
+99 -34
View File
@@ -42,6 +42,13 @@ export interface BrowserWindowOpts extends BrowserWindowConstructorOptions {
width?: number;
}
interface WindowState {
height?: number;
width?: number;
x?: number;
y?: number;
}
export default class Browser {
private app: App;
private _browserWindow?: BrowserWindow;
@@ -78,11 +85,9 @@ export default class Browser {
/**
* Get platform-specific theme configuration for window creation
*/
private getPlatformThemeConfig(isDarkMode?: boolean): Record<string, any> {
const darkMode = isDarkMode ?? nativeTheme.shouldUseDarkColors;
private getPlatformThemeConfig(): Record<string, any> {
if (isWindows) {
return this.getWindowsThemeConfig(darkMode);
return this.getWindowsThemeConfig(this.isDarkMode);
}
return {};
@@ -154,6 +159,46 @@ export default class Browser {
this._browserWindow.setTitleBarOverlay(config.titleBarOverlay);
}
private clampNumber(value: number, min: number, max: number) {
return Math.min(Math.max(value, min), max);
}
private resolveWindowState(
savedState: WindowState | undefined,
fallbackState: { height?: number; width?: number },
): WindowState {
const width = savedState?.width ?? fallbackState.width;
const height = savedState?.height ?? fallbackState.height;
const resolvedState: WindowState = { height, width };
const hasPosition = Number.isFinite(savedState?.x) && Number.isFinite(savedState?.y);
if (!hasPosition) return resolvedState;
const x = savedState?.x as number;
const y = savedState?.y as number;
const targetDisplay = screen.getDisplayMatching({
height: height ?? 0,
width: width ?? 0,
x,
y,
});
const workArea = targetDisplay?.workArea ?? screen.getPrimaryDisplay().workArea;
const resolvedWidth = typeof width === 'number' ? Math.min(width, workArea.width) : width;
const resolvedHeight = typeof height === 'number' ? Math.min(height, workArea.height) : height;
const maxX = workArea.x + Math.max(0, workArea.width - (resolvedWidth ?? 0));
const maxY = workArea.y + Math.max(0, workArea.height - (resolvedHeight ?? 0));
return {
height: resolvedHeight,
width: resolvedWidth,
x: this.clampNumber(x, workArea.x, maxX),
y: this.clampNumber(y, workArea.y, maxY),
};
}
private cleanupThemeListener(): void {
if (this.themeListenerSetup) {
// Note: nativeTheme listeners are global, consider using a centralized theme manager
@@ -164,24 +209,29 @@ export default class Browser {
}
private get isDarkMode() {
const themeMode = this.app.storeManager.get('themeMode');
if (themeMode === 'auto') return nativeTheme.shouldUseDarkColors;
return themeMode === 'dark';
return nativeTheme.shouldUseDarkColors;
}
loadUrl = async (path: string) => {
const initUrl = await this.app.buildRendererUrl(path);
console.log('[Browser] initUrl', initUrl);
// Inject locale from store to help renderer boot with the correct language.
// Skip when set to auto to let the renderer detect locale normally.
const storedLocale = this.app.storeManager.get('locale', 'auto');
const urlWithLocale =
storedLocale && storedLocale !== 'auto'
? `${initUrl}${initUrl.includes('?') ? '&' : '?'}lng=${storedLocale}`
: initUrl;
console.log('[Browser] initUrl', urlWithLocale);
try {
logger.debug(`[${this.identifier}] Attempting to load URL: ${initUrl}`);
await this._browserWindow.loadURL(initUrl);
logger.debug(`[${this.identifier}] Attempting to load URL: ${urlWithLocale}`);
await this._browserWindow.loadURL(urlWithLocale);
logger.debug(`[${this.identifier}] Successfully loaded URL: ${initUrl}`);
logger.debug(`[${this.identifier}] Successfully loaded URL: ${urlWithLocale}`);
} catch (error) {
logger.error(`[${this.identifier}] Failed to load URL (${initUrl}):`, error);
logger.error(`[${this.identifier}] Failed to load URL (${urlWithLocale}):`, error);
// Try to load local error page
try {
@@ -195,13 +245,13 @@ export default class Browser {
// Set retry logic
ipcMain.handle('retry-connection', async () => {
logger.info(`[${this.identifier}] Retry connection requested for: ${initUrl}`);
logger.info(`[${this.identifier}] Retry connection requested for: ${urlWithLocale}`);
try {
await this._browserWindow?.loadURL(initUrl);
logger.info(`[${this.identifier}] Reconnection successful to ${initUrl}`);
await this._browserWindow?.loadURL(urlWithLocale);
logger.info(`[${this.identifier}] Reconnection successful to ${urlWithLocale}`);
return { success: true };
} catch (err) {
logger.error(`[${this.identifier}] Retry connection failed for ${initUrl}:`, err);
logger.error(`[${this.identifier}] Retry connection failed for ${urlWithLocale}:`, err);
// Reload error page
try {
logger.info(`[${this.identifier}] Reloading error page after failed retry...`);
@@ -320,23 +370,26 @@ export default class Browser {
// Load window state
const savedState = this.app.storeManager.get(this.windowStateKey as any) as
| { height?: number; width?: number }
| undefined; // Keep type for now, but only use w/h
| WindowState
| undefined;
logger.info(`Creating new BrowserWindow instance: ${this.identifier}`);
logger.debug(`[${this.identifier}] Options for new window: ${JSON.stringify(this.options)}`);
logger.debug(
`[${this.identifier}] Saved window state (only size used): ${JSON.stringify(savedState)}`,
`[${this.identifier}] Saved window state: ${JSON.stringify(savedState)}`,
);
const isDarkMode = nativeTheme.shouldUseDarkColors;
const resolvedState = this.resolveWindowState(savedState, { height, width });
logger.debug(
`[${this.identifier}] Resolved window state: ${JSON.stringify(resolvedState)}`,
);
const browserWindow = new BrowserWindow({
...res,
autoHideMenuBar: true,
backgroundColor: '#00000000',
darkTheme: isDarkMode,
darkTheme: this.isDarkMode,
frame: false,
height: savedState?.height || height,
height: resolvedState.height,
show: false,
title,
vibrancy: 'sidebar',
@@ -347,8 +400,10 @@ export default class Browser {
preload: join(preloadDir, 'index.js'),
sandbox: false,
},
width: savedState?.width || width,
...this.getPlatformThemeConfig(isDarkMode),
width: resolvedState.width,
x: resolvedState.x,
y: resolvedState.y,
...this.getPlatformThemeConfig(),
});
this._browserWindow = browserWindow;
@@ -404,12 +459,17 @@ export default class Browser {
logger.debug(`[${this.identifier}] App is quitting, allowing window to close naturally.`);
// Save state before quitting
try {
const { width, height } = browserWindow.getBounds(); // Get only width and height
const sizeState = { height, width };
const bounds = browserWindow.getBounds();
const sizeState = {
height: bounds.height,
width: bounds.width,
x: bounds.x,
y: bounds.y,
};
logger.debug(
`[${this.identifier}] Saving window size on quit: ${JSON.stringify(sizeState)}`,
`[${this.identifier}] Saving window state on quit: ${JSON.stringify(sizeState)}`,
);
this.app.storeManager.set(this.windowStateKey as any, sizeState); // Save only size
this.app.storeManager.set(this.windowStateKey as any, sizeState);
} catch (error) {
logger.error(`[${this.identifier}] Failed to save window state on quit:`, error);
}
@@ -436,15 +496,20 @@ export default class Browser {
} else {
// Window is actually closing (not keepAlive)
logger.debug(
`[${this.identifier}] keepAlive is false, allowing window to close. Saving size...`, // Updated log message
`[${this.identifier}] keepAlive is false, allowing window to close. Saving state...`,
);
try {
const { width, height } = browserWindow.getBounds(); // Get only width and height
const sizeState = { height, width };
const bounds = browserWindow.getBounds();
const sizeState = {
height: bounds.height,
width: bounds.width,
x: bounds.x,
y: bounds.y,
};
logger.debug(
`[${this.identifier}] Saving window size on close: ${JSON.stringify(sizeState)}`,
`[${this.identifier}] Saving window state on close: ${JSON.stringify(sizeState)}`,
);
this.app.storeManager.set(this.windowStateKey as any, sizeState); // Save only size
this.app.storeManager.set(this.windowStateKey as any, sizeState);
} catch (error) {
logger.error(`[${this.identifier}] Failed to save window state on close:`, error);
}
@@ -53,11 +53,18 @@ const { mockBrowserWindow, mockNativeTheme, mockIpcMain, mockScreen, MockBrowser
off: vi.fn(),
on: vi.fn(),
shouldUseDarkColors: false,
themeSource: 'system',
},
mockScreen: {
getDisplayMatching: vi.fn().mockReturnValue({
workArea: { height: 1080, width: 1920, x: 0, y: 0 },
}),
getDisplayNearestPoint: vi.fn().mockReturnValue({
workArea: { height: 1080, width: 1920, x: 0, y: 0 },
}),
getPrimaryDisplay: vi.fn().mockReturnValue({
workArea: { height: 1080, width: 1920, x: 0, y: 0 },
}),
},
};
});
@@ -239,6 +246,47 @@ describe('Browser', () => {
);
});
it('should restore window position from store and clamp within display', () => {
mockStoreManagerGet.mockImplementation((key: string) => {
if (key === 'windowSize_test-window') {
return { height: 700, width: 900, x: 1800, y: 900 };
}
return undefined;
});
new Browser(defaultOptions, mockApp);
expect(MockBrowserWindow).toHaveBeenCalledWith(
expect.objectContaining({
height: 700,
width: 900,
x: 1020,
y: 380,
}),
);
});
it('should clamp saved size when it exceeds current display bounds', () => {
mockScreen.getDisplayMatching.mockReturnValueOnce({
workArea: { height: 800, width: 1200, x: 0, y: 0 },
});
mockStoreManagerGet.mockImplementation((key: string) => {
if (key === 'windowSize_test-window') {
return { height: 1200, width: 2000, x: 0, y: 0 };
}
return undefined;
});
new Browser(defaultOptions, mockApp);
expect(MockBrowserWindow).toHaveBeenCalledWith(
expect.objectContaining({
height: 800,
width: 1200,
}),
);
});
it('should use default size when no saved state', () => {
mockStoreManagerGet.mockReturnValue(undefined);
@@ -272,7 +320,7 @@ describe('Browser', () => {
describe('theme management', () => {
describe('getPlatformThemeConfig', () => {
it('should return Windows dark theme config', () => {
it('should return Windows dark theme config when shouldUseDarkColors is true', () => {
mockNativeTheme.shouldUseDarkColors = true;
// Create browser with dark mode
@@ -289,7 +337,7 @@ describe('Browser', () => {
);
});
it('should return Windows light theme config', () => {
it('should return Windows light theme config when shouldUseDarkColors is false', () => {
mockNativeTheme.shouldUseDarkColors = false;
expect(MockBrowserWindow).toHaveBeenCalledWith(
@@ -334,11 +382,8 @@ describe('Browser', () => {
});
describe('isDarkMode', () => {
it('should return true when themeMode is dark', () => {
mockStoreManagerGet.mockImplementation((key: string) => {
if (key === 'themeMode') return 'dark';
return undefined;
});
it('should return true when shouldUseDarkColors is true', () => {
mockNativeTheme.shouldUseDarkColors = true;
const darkBrowser = new Browser(defaultOptions, mockApp);
// Access private getter through handleAppThemeChange which uses isDarkMode
@@ -348,18 +393,14 @@ describe('Browser', () => {
expect(mockBrowserWindow.setBackgroundColor).toHaveBeenCalledWith('#1a1a1a');
});
it('should use system theme when themeMode is auto', () => {
mockStoreManagerGet.mockImplementation((key: string) => {
if (key === 'themeMode') return 'auto';
return undefined;
});
mockNativeTheme.shouldUseDarkColors = true;
it('should return false when shouldUseDarkColors is false', () => {
mockNativeTheme.shouldUseDarkColors = false;
const autoBrowser = new Browser(defaultOptions, mockApp);
autoBrowser.handleAppThemeChange();
const lightBrowser = new Browser(defaultOptions, mockApp);
lightBrowser.handleAppThemeChange();
vi.advanceTimersByTime(0);
expect(mockBrowserWindow.setBackgroundColor).toHaveBeenCalledWith('#1a1a1a');
expect(mockBrowserWindow.setBackgroundColor).toHaveBeenCalledWith('#ffffff');
});
});
});
@@ -547,6 +588,8 @@ describe('Browser', () => {
expect(mockStoreManagerSet).toHaveBeenCalledWith('windowSize_test-window', {
height: 600,
width: 800,
x: 0,
y: 0,
});
expect(mockEvent.preventDefault).not.toHaveBeenCalled();
});
@@ -578,6 +621,8 @@ describe('Browser', () => {
expect(mockStoreManagerSet).toHaveBeenCalledWith('windowSize_test-window', {
height: 600,
width: 800,
x: 0,
y: 0,
});
});
});
@@ -1,5 +1,6 @@
import type { Session } from 'electron';
import { BrowserWindow, type Session } from 'electron';
import { isDev } from '@/const/env';
import { createLogger } from '@/utils/logger';
interface BackendProxyProtocolManagerOptions {
@@ -30,6 +31,15 @@ export class BackendProxyProtocolManager {
private readonly handledSessions = new WeakSet<Session>();
private readonly logger = createLogger('core:BackendProxyProtocolManager');
private notifyAuthorizationRequired() {
const allWindows = BrowserWindow.getAllWindows();
for (const win of allWindows) {
if (!win.isDestroyed()) {
win.webContents.send('authorizationRequired');
}
}
}
registerWithRemoteBaseUrl(
session: Session,
options: BackendProxyProtocolManagerRemoteBaseOptions,
@@ -85,7 +95,9 @@ export class BackendProxyProtocolManager {
const headers = new Headers(request.headers);
const token = await options.getAccessToken();
if (token) headers.set('Oidc-Auth', token);
if (token) {
headers.set('Oidc-Auth', token);
}
// eslint-disable-next-line no-undef
const requestInit: RequestInit & { duplex?: 'half' } = {
@@ -126,10 +138,18 @@ export class BackendProxyProtocolManager {
responseHeaders.set('Access-Control-Allow-Credentials', 'true');
}
if (isDev) {
responseHeaders.set('x-dev-oidc-auth', token);
}
responseHeaders.set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
responseHeaders.set('Access-Control-Allow-Headers', '*');
responseHeaders.set('X-Src-Url', rewrittenUrl);
if (!token && upstreamResponse.status === 401) {
this.notifyAuthorizationRequired();
}
return new Response(upstreamResponse.body, {
headers: responseHeaders,
status: upstreamResponse.status,
@@ -175,6 +175,7 @@ export class I18nManager {
try {
logger.debug(`Loading namespace: ${lng}/${ns}`);
const resources = await loadResources(lng, ns);
this.i18n.addResourceBundle(lng, ns, resources, true, true);
return true;
} catch (error) {
@@ -0,0 +1,126 @@
import { pathExistsSync } from 'fs-extra';
import { extname, join } from 'node:path';
import { nextExportDir } from '@/const/dir';
import { isDev } from '@/const/env';
import { getDesktopEnv } from '@/env';
import { createLogger } from '@/utils/logger';
import { RendererProtocolManager } from './RendererProtocolManager';
const logger = createLogger('core:RendererUrlManager');
const devDefaultRendererUrl = 'http://localhost:3015';
export class RendererUrlManager {
private readonly rendererProtocolManager: RendererProtocolManager;
private readonly rendererStaticOverride = getDesktopEnv().DESKTOP_RENDERER_STATIC;
private rendererLoadedUrl: string;
constructor() {
this.rendererProtocolManager = new RendererProtocolManager({
nextExportDir,
resolveRendererFilePath: this.resolveRendererFilePath,
});
this.rendererLoadedUrl = this.rendererProtocolManager.getRendererUrl();
}
get protocolScheme() {
return this.rendererProtocolManager.protocolScheme;
}
/**
* Configure renderer loading strategy for dev/prod
*/
configureRendererLoader() {
if (isDev && !this.rendererStaticOverride) {
this.rendererLoadedUrl = devDefaultRendererUrl;
this.setupDevRenderer();
return;
}
if (isDev && this.rendererStaticOverride) {
logger.warn('Dev mode: DESKTOP_RENDERER_STATIC enabled, using static renderer handler');
}
this.setupProdRenderer();
}
/**
* Build renderer URL for dev/prod.
*/
buildRendererUrl(path: string): string {
const cleanPath = path.startsWith('/') ? path : `/${path}`;
return `${this.rendererLoadedUrl}${cleanPath}`;
}
/**
* Resolve renderer file path in production.
* Static assets map directly; app routes fall back to index.html.
*/
resolveRendererFilePath = async (url: URL): Promise<string | null> => {
const pathname = url.pathname;
const normalizedPathname = pathname.endsWith('/') ? pathname.slice(0, -1) : pathname;
// Static assets should be resolved from root
if (
pathname.startsWith('/_next/') ||
pathname.startsWith('/static/') ||
pathname === '/favicon.ico' ||
pathname === '/manifest.json'
) {
return this.resolveExportFilePath(pathname);
}
// If the incoming path already contains an extension (like .html or .ico),
// treat it as a direct asset lookup.
const extension = extname(normalizedPathname);
if (extension) {
return this.resolveExportFilePath(pathname);
}
return this.resolveExportFilePath('/');
};
private resolveExportFilePath(pathname: string) {
// Normalize by removing leading/trailing slashes so extname works as expected
const normalizedPath = decodeURIComponent(pathname).replace(/^\/+/, '').replace(/\/$/, '');
if (!normalizedPath) return join(nextExportDir, 'index.html');
const basePath = join(nextExportDir, normalizedPath);
const ext = extname(normalizedPath);
// If the request explicitly includes an extension (e.g. html, ico, txt),
// treat it as a direct asset.
if (ext) {
return pathExistsSync(basePath) ? basePath : null;
}
const candidates = [`${basePath}.html`, join(basePath, 'index.html'), basePath];
for (const candidate of candidates) {
if (pathExistsSync(candidate)) return candidate;
}
const fallback404 = join(nextExportDir, '404.html');
if (pathExistsSync(fallback404)) return fallback404;
return null;
}
/**
* Development: use Next dev server directly
*/
private setupDevRenderer() {
logger.info('Development mode: renderer served from Next dev server, no protocol hook');
}
/**
* Production: serve static Next export assets
*/
private setupProdRenderer() {
this.rendererLoadedUrl = this.rendererProtocolManager.getRendererUrl();
this.rendererProtocolManager.registerHandler();
}
}
@@ -1,7 +1,7 @@
import log from 'electron-log';
import { autoUpdater } from 'electron-updater';
import { isDev } from '@/const/env';
import { isDev, isWindows } from '@/const/env';
import { UPDATE_CHANNEL as channel, updaterConfig } from '@/modules/updater/configs';
import { createLogger } from '@/utils/logger';
@@ -144,12 +144,16 @@ export class UpdaterManager {
// Close all windows first to ensure clean exit
logger.info('Closing all windows before update installation...');
const { BrowserWindow, app } = require('electron');
const allWindows = BrowserWindow.getAllWindows();
allWindows.forEach((window) => {
if (!window.isDestroyed()) {
window.close();
}
});
// do not close windows and quit first
// on Windows, window-all-closed -> app.quit()` can terminate the process before the timer fires
if (!isWindows) {
const allWindows = BrowserWindow.getAllWindows();
allWindows.forEach((window) => {
if (!window.isDestroyed()) {
window.close();
}
});
}
// Release single instance lock before quitting
// This ensures the new instance can acquire the lock
@@ -21,6 +21,13 @@ const { mockProtocol, protocolHandlerRef } = vi.hoisted(() => {
};
});
vi.mock('electron-is', () => ({
dev: vi.fn(() => false),
macOS: vi.fn(() => false),
windows: vi.fn(() => false),
linux: vi.fn(() => true),
}));
vi.mock('@/utils/logger', () => ({
createLogger: () => ({
debug: vi.fn(),
@@ -0,0 +1,72 @@
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { RendererUrlManager } from '../RendererUrlManager';
const mockPathExistsSync = vi.fn();
vi.mock('electron', () => ({
app: {
isReady: vi.fn(() => true),
whenReady: vi.fn(() => Promise.resolve()),
},
protocol: {
handle: vi.fn(),
},
}));
vi.mock('fs-extra', () => ({
pathExistsSync: (...args: any[]) => mockPathExistsSync(...args),
}));
vi.mock('@/const/dir', () => ({
nextExportDir: '/mock/export/out',
}));
vi.mock('@/const/env', () => ({
isDev: false,
}));
vi.mock('@/env', () => ({
getDesktopEnv: vi.fn(() => ({ DESKTOP_RENDERER_STATIC: false })),
}));
vi.mock('@/utils/logger', () => ({
createLogger: () => ({
debug: vi.fn(),
info: vi.fn(),
warn: vi.fn(),
error: vi.fn(),
}),
}));
describe('RendererUrlManager', () => {
let manager: RendererUrlManager;
beforeEach(() => {
vi.clearAllMocks();
mockPathExistsSync.mockReset();
manager = new RendererUrlManager();
});
describe('resolveRendererFilePath', () => {
it('should resolve asset requests directly', async () => {
mockPathExistsSync.mockImplementation(
(p: string) => p === '/mock/export/out/en-US__0__light.txt',
);
const resolved = await manager.resolveRendererFilePath(
new URL('app://next/en-US__0__light.txt'),
);
expect(resolved).toBe('/mock/export/out/en-US__0__light.txt');
});
it('should fall back to index.html for app routes', async () => {
mockPathExistsSync.mockImplementation((p: string) => p === '/mock/export/out/index.html');
const resolved = await manager.resolveRendererFilePath(new URL('app://next/settings'));
expect(resolved).toBe('/mock/export/out/index.html');
});
});
});
+1 -1
View File
@@ -57,7 +57,7 @@ export class TrayManager {
logger.debug('初始化主托盘');
return this.retrieveOrInitialize({
iconPath: isMac
? nativeTheme.shouldUseDarkColors
? nativeTheme.shouldUseDarkColorsForSystemIntegratedUI
? 'tray-dark.png'
: 'tray-light.png'
: 'tray.png',
@@ -8,7 +8,7 @@ import { TrayManager } from '../TrayManager';
// Mock electron modules
vi.mock('electron', () => ({
nativeTheme: {
shouldUseDarkColors: false,
shouldUseDarkColorsForSystemIntegratedUI: false,
},
}));
@@ -90,7 +90,7 @@ describe('TrayManager', () => {
describe('initializeMainTray', () => {
it('should create main tray with dark icon on macOS when dark mode is enabled', () => {
Object.defineProperty(nativeTheme, 'shouldUseDarkColors', {
Object.defineProperty(nativeTheme, 'shouldUseDarkColorsForSystemIntegratedUI', {
value: true,
writable: true,
configurable: true,
@@ -110,7 +110,7 @@ describe('TrayManager', () => {
});
it('should create main tray with light icon on macOS when light mode is enabled', () => {
Object.defineProperty(nativeTheme, 'shouldUseDarkColors', {
Object.defineProperty(nativeTheme, 'shouldUseDarkColorsForSystemIntegratedUI', {
value: false,
writable: true,
configurable: true,
+1 -1
View File
@@ -76,7 +76,7 @@ export const getDesktopEnv = memoize(() =>
MCP_TOOL_TIMEOUT: envNumber(60_000),
// cloud server url (can be overridden for selfhost/dev)
OFFICIAL_CLOUD_SERVER: z.string().optional().default('https://lobechat.com'),
OFFICIAL_CLOUD_SERVER: z.string().optional().default('https://app.lobehub.com'),
},
clientPrefix: 'PUBLIC_',
client: {},
+3 -1
View File
@@ -22,7 +22,9 @@ export const loadResources = async (lng: string, ns: string) => {
}
try {
return await import(`@/../../resources/locales/${lng}/${ns}.json`);
const { default: content } = await import(`@/../../resources/locales/${lng}/${ns}.json`);
return content;
} catch (error) {
console.error(`无法加载翻译文件: ${lng} - ${ns}`, error);
return {};
+1 -1
View File
@@ -11,7 +11,7 @@ export interface ElectronMainStore {
networkProxy: NetworkProxySettings;
shortcuts: Record<string, string>;
storagePath: string;
themeMode: 'dark' | 'light' | 'auto';
themeMode: 'dark' | 'light' | 'system';
}
export type StoreKey = keyof ElectronMainStore;
+1917 -639
View File
File diff suppressed because it is too large Load Diff
+350
View File
@@ -1,4 +1,280 @@
[
{
"children": {},
"date": "2026-01-05",
"version": "2.0.0-next.217"
},
{
"children": {
"fixes": ["Restore window position safely."]
},
"date": "2026-01-05",
"version": "2.0.0-next.216"
},
{
"children": {
"fixes": [
"Update CI bun version to v1.2.4, when the document filetype is agent/plan, not show the saveinto docs button."
]
},
"date": "2026-01-05",
"version": "2.0.0-next.215"
},
{
"children": {},
"date": "2026-01-05",
"version": "2.0.0-next.214"
},
{
"children": {
"improvements": ["Update i18n."]
},
"date": "2026-01-05",
"version": "2.0.0-next.213"
},
{
"children": {},
"date": "2026-01-05",
"version": "2.0.0-next.212"
},
{
"children": {
"fixes": ["Add lost like button in discover detail page."]
},
"date": "2026-01-05",
"version": "2.0.0-next.211"
},
{
"children": {},
"date": "2026-01-04",
"version": "2.0.0-next.210"
},
{
"children": {
"fixes": ["Use configured embedding provider instead of hardcoded OpenAI."]
},
"date": "2026-01-04",
"version": "2.0.0-next.209"
},
{
"children": {
"fixes": ["Auto jump to group."]
},
"date": "2026-01-04",
"version": "2.0.0-next.208"
},
{
"children": {
"fixes": ["Slove the old agents open profiles error problem."]
},
"date": "2026-01-04",
"version": "2.0.0-next.207"
},
{
"children": {
"fixes": ["Fix data inconsistency in ai provider config."]
},
"date": "2026-01-04",
"version": "2.0.0-next.206"
},
{
"children": {},
"date": "2026-01-04",
"version": "2.0.0-next.205"
},
{
"children": {
"features": ["Add new provider Xiaomi MiMo."]
},
"date": "2026-01-04",
"version": "2.0.0-next.204"
},
{
"children": {
"improvements": ["Update i18n."]
},
"date": "2026-01-04",
"version": "2.0.0-next.203"
},
{
"children": {
"improvements": ["Refactor and fix model runtime initialize."]
},
"date": "2026-01-03",
"version": "2.0.0-next.202"
},
{
"children": {
"fixes": ["Restore window resizable before hard reload in desktop onboarding."]
},
"date": "2026-01-03",
"version": "2.0.0-next.201"
},
{
"children": {
"features": ["Add work path for local system."]
},
"date": "2026-01-03",
"version": "2.0.0-next.200"
},
{
"children": {
"fixes": ["Filter empty assistant messages for Anthropic API."]
},
"date": "2026-01-03",
"version": "2.0.0-next.199"
},
{
"children": {
"fixes": ["Support thoughtSignature for openrouter."]
},
"date": "2026-01-03",
"version": "2.0.0-next.198"
},
{
"children": {
"improvements": ["Remove client db and refactor test."],
"fixes": ["Fix file upload issue."]
},
"date": "2026-01-03",
"version": "2.0.0-next.197"
},
{
"children": {
"improvements": ["Refactor to remove access code."]
},
"date": "2026-01-03",
"version": "2.0.0-next.196"
},
{
"children": {
"fixes": ["Fix tool call message content missing."]
},
"date": "2026-01-03",
"version": "2.0.0-next.195"
},
{
"children": {
"improvements": ["Update i18n."]
},
"date": "2026-01-03",
"version": "2.0.0-next.194"
},
{
"children": {},
"date": "2026-01-02",
"version": "2.0.0-next.193"
},
{
"children": {
"fixes": ["Fix model edit icon missing."]
},
"date": "2026-01-02",
"version": "2.0.0-next.192"
},
{
"children": {
"improvements": ["Refactor to remove meta in message."]
},
"date": "2026-01-02",
"version": "2.0.0-next.191"
},
{
"children": {
"improvements": ["Update i18n."]
},
"date": "2026-01-02",
"version": "2.0.0-next.190"
},
{
"children": {
"improvements": ["Migrate to new DropdownMenuV2 and showContextMenu API."]
},
"date": "2026-01-01",
"version": "2.0.0-next.189"
},
{
"children": {
"improvements": ["Improve tools UI and fix Google schema compatibility."]
},
"date": "2026-01-01",
"version": "2.0.0-next.188"
},
{
"children": {
"improvements": ["Add Gemini 3 Flash & Doubao Seed 1.8 models."]
},
"date": "2026-01-01",
"version": "2.0.0-next.187"
},
{
"children": {
"improvements": ["Refactor oidc env to auth env."]
},
"date": "2026-01-01",
"version": "2.0.0-next.186"
},
{
"children": {
"improvements": ["Update i18n."]
},
"date": "2026-01-01",
"version": "2.0.0-next.185"
},
{
"children": {
"improvements": ["Improve loading and local-system render."]
},
"date": "2026-01-01",
"version": "2.0.0-next.184"
},
{
"children": {},
"date": "2025-12-31",
"version": "2.0.0-next.183"
},
{
"children": {
"features": ["Brand new 2.0 ui for next."]
},
"date": "2025-12-31",
"version": "2.0.0-next.182"
},
{
"children": {
"improvements": [
"Improve ExecTask and task message UI, improve gtd tool inspector and todo list, improve page document tool inspector UI, improve RunCommand Inspector, rebranding chat ui, refactor UI in features, rerun i18n, setting style, support streaming and display ui for group mode, support tool streaming and title custom render, update i18n, Update i18n microcopy, update ui."
],
"features": [
"Add a white waitlist in edge config env, add always show tools render in createPlan & createDoc tools, add batch tasks ui, add Bundle Analyzer workflow for detailed bundle size analysis, add business features support with new components and hooks, add business settings features with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add db and schema feature, add home page create group builder button, Add i18n UI locales and improve tool types, add like action in community detail, add memory implement, add subscription settings group with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add the market auth auto generate way, Add turbopack configuration support to CustomNextConfig, add user memory, agent builder, agent builder, agent builder and group builder, app ui page, brand new 2.0 ui for next, buildin some tools should save into docs, code-interpreter tool, code-interpreter tool, code-interpreter tool, desktop feature, enhance desktop onboarding with sign out and localization, enhance macOS desktop permissions and onboarding, enhance onboarding process by removing mode selection step and adding export functionality in advanced settings, file search feature, gtd create plan support streaming render, implement agent builder, implement builtin agents packages, implement memories package, implement Redis caching for presigned URLs in file proxy service, implement server data feature, include Subscription settings group in the Accordion component, Integrate bcryptjs for password verification in BetterAuth, integrate BrandingProviderCard and update Provider components for branding support, onboarding ui, page and knowledge base, rebranding total UI of app, refactor authentication handler to support dynamic loading of better-auth and next-auth, refactor desktop implement with brand new 2.0, rename codeinterpreter into lobe sandbox, server implement, support CMD K, support exec async sub agent task, support export and import topic JSON, support files upload in chat input, support notebook tool, support swr local cache, topic message swr cache, translate AI model descriptions to English, update agent builder ui, update create group chat use builder, update gtd tools( use editor & update metadata ), update user memory embedding model selection based on business features, user memory, user memory, user onboarding, when use usesend to create agent/group, the model should override by lobeAi, wrap ConversationArea and ModelSwitchPanel in TooltipGroup for enhanced UI."
],
"fixes": [
"Agent profiles update, agent tools config set, editor placeholder, bump charts 3.0.4 to fix import es path, fix anthropic thinking budget, fix async task and improve tool style, fix default waitlist bug, fix delete agent group bug, Fix desktop test cases and refactor translations, Fix desktop test cases and refactor translations, fix gemini 3 model thinking issue, fix gemini 3 pro parallel tool use, fix gemini 3 thinking params, fix identity memory not working, fix supervisor flag, fix thread not working issue, fix when use branch topic,the branch index error problem, fixed the welcome card the create button not work, handle session invalidation on 401 error by logging out signed-in users, improve test infrastructure and mock configurations, locale resolve bug with ESM module loading, page agent editor, prevent redundant login redirect when already on auth pages, redis read json object, remove openapi pkg patch file, slove input editor on pause emit, slove swr mutate not work in Cache Provider, slove the group add member checkbox not work, slove the model select null problem, slove the mutate not work problem, slove when click agentbuilder should clean topic, slove when first call thread, not show ai chat message, support retry error message and fix continueGenerationMessage, update contextMenu in group tools message, update OFFICIAL_URL to app.lobehub.com, update PlanTag link paths for subscription settings, update test snapshots for model description changes, when use agentbuilder the topic id should use new & clear topic…."
]
},
"date": "2025-12-31",
"version": "2.0.0-next.181"
},
{
"children": {},
"date": "2025-12-26",
"version": "2.0.0-next.180"
},
{
"children": {},
"date": "2025-12-25",
"version": "2.0.0-next.179"
},
{
"children": {},
"date": "2025-12-24",
"version": "2.0.0-next.178"
},
{
"children": {},
"date": "2025-12-24",
"version": "2.0.0-next.177"
},
{
"children": {
"features": ["Mobile native better auth support."]
@@ -1210,6 +1486,80 @@
"date": "2025-10-30",
"version": "2.0.0-next.1"
},
{
"children": {
"improvements": [
"Add Gemini 3 Flash & Doubao Seed 1.8 models, improve ExecTask and task message UI, improve gtd tool inspector and todo list, improve loading and local-system render, improve page document tool inspector UI, improve RunCommand Inspector, improve tools UI and fix Google schema compatibility, rebranding chat ui, refactor UI in features, rerun i18n, setting style, support streaming and display ui for group mode, support tool streaming and title custom render, update i18n, update i18n, update i18n, Update i18n microcopy, update ui."
],
"features": [
"Add a white waitlist in edge config env, add always show tools render in createPlan & createDoc tools, add batch tasks ui, add Bundle Analyzer workflow for detailed bundle size analysis, add business features support with new components and hooks, add business settings features with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add db and schema feature, add home page create group builder button, Add i18n UI locales and improve tool types, add like action in community detail, add memory implement, add subscription settings group with dynamic loading for Plans, Funds, Usage, Billing, and Referral tabs, add the market auth auto generate way, Add turbopack configuration support to CustomNextConfig, add user memory, agent builder, agent builder, agent builder and group builder, app ui page, brand new 2.0 ui for next, brand new 2.0 ui for next, buildin some tools should save into docs, code-interpreter tool, code-interpreter tool, code-interpreter tool, desktop feature, enhance desktop onboarding with sign out and localization, enhance macOS desktop permissions and onboarding, enhance onboarding process by removing mode selection step and adding export functionality in advanced settings, file search feature, gtd create plan support streaming render, implement agent builder, implement builtin agents packages, implement memories package, implement Redis caching for presigned URLs in file proxy service, implement server data feature, include Subscription settings group in the Accordion component, Integrate bcryptjs for password verification in BetterAuth, integrate BrandingProviderCard and update Provider components for branding support, onboarding ui, page and knowledge base, rebranding total UI of app, refactor authentication handler to support dynamic loading of better-auth and next-auth, refactor desktop implement with brand new 2.0, rename codeinterpreter into lobe sandbox, server implement, support CMD K, support exec async sub agent task, support export and import topic JSON, support files upload in chat input, support notebook tool, support swr local cache, topic message swr cache, translate AI model descriptions to English, update agent builder ui, update create group chat use builder, update gtd tools( use editor & update metadata ), update user memory embedding model selection based on business features, user memory, user memory, user onboarding, when use usesend to create agent/group, the model should override by lobeAi, wrap ConversationArea and ModelSwitchPanel in TooltipGroup for enhanced UI."
],
"fixes": [
"Agent profiles update, agent tools config set, editor placeholder, bump charts 3.0.4 to fix import es path, fix anthropic thinking budget, fix async task and improve tool style, fix default waitlist bug, fix delete agent group bug, Fix desktop test cases and refactor translations, Fix desktop test cases and refactor translations, fix gemini 3 model thinking issue, fix gemini 3 pro parallel tool use, fix gemini 3 thinking params, fix identity memory not working, fix model edit icon missing, fix supervisor flag, fix thread not working issue, fix when use branch topic,the branch index error problem, fixed the welcome card the create button not work, handle session invalidation on 401 error by logging out signed-in users, improve test infrastructure and mock configurations, locale resolve bug with ESM module loading, page agent editor, prevent redundant login redirect when already on auth pages, redis read json object, remove openapi pkg patch file, slove input editor on pause emit, slove swr mutate not work in Cache Provider, slove the group add member checkbox not work, slove the model select null problem, slove the mutate not work problem, slove when click agentbuilder should clean topic, slove when first call thread, not show ai chat message, support retry error message and fix continueGenerationMessage, update contextMenu in group tools message, update OFFICIAL_URL to app.lobehub.com, update PlanTag link paths for subscription settings, update test snapshots for model description changes, when use agentbuilder the topic id should use new & clear topic…."
]
},
"date": "2026-01-02",
"version": "1.147.0"
},
{
"children": {
"improvements": ["Refactor database schema."],
"features": ["Mobile native better auth support."]
},
"date": "2025-12-29",
"version": "1.146.0"
},
{
"children": {
"fixes": [
"Request to gpt5 series should not with top_p, temperature when reasoning effort is not none."
],
"improvements": ["Update GPT-5.2 models, update i18n."]
},
"date": "2025-12-16",
"version": "1.145.1"
},
{
"children": {
"features": ["Add Replicate image provider."],
"fixes": ["Fix CVE errors, slove market oidc error."]
},
"date": "2025-12-12",
"version": "1.145.0"
},
{
"children": {},
"date": "2025-12-09",
"version": "1.144.2"
},
{
"children": {
"fixes": ["Add smooth scroll to top on 'More' button click in Title component."],
"improvements": ["Update link handling in PlanTag component to use react-router-dom."]
},
"date": "2025-12-08",
"version": "1.144.1"
},
{
"children": {
"features": ["Betterauth username signin, support klavis mcp connector."],
"fixes": ["Fix React CVE issue, limit check-user response surface."],
"improvements": ["Update Spark X1.5 model."]
},
"date": "2025-12-05",
"version": "1.144.0"
},
{
"children": {
"improvements": ["Unify retry logic to async-retry."],
"features": ["Optimize betterauth UX."],
"fixes": [
"Better-auth add apple sso icon and label, missing init user after user creation, remove apiMode param from Azure and Cloudflare provider requests, udpate discover detail tools get & more link, when desktop use contextMenu not work."
]
},
"date": "2025-12-03",
"version": "1.143.0"
},
{
"children": {
"features": ["2.0 next init."]
+40
View File
@@ -0,0 +1,40 @@
# Proxy, if you need it
# HTTP_PROXY=http://localhost:7890
# HTTPS_PROXY=http://localhost:7890
# Other environment variables, as needed. You can refer to the environment variables configuration for the client version, making sure not to have ACCESS_CODE.
# OPENAI_API_KEY=sk-xxxx
# OPENAI_PROXY_URL=https://api.openai.com/v1
# OPENAI_MODEL_LIST=...
# ===========================
# ====== Preset config ======
# ===========================
# if no special requirements, no need to change
LOBE_PORT=3010
MINIO_PORT=9000
APP_URL=http://localhost:3010
AUTH_URL=http://localhost:3010/api/auth
# Postgres related, which are the necessary environment variables for DB
LOBE_DB_NAME=lobechat
POSTGRES_PASSWORD=uWNZugjBqixf8dxC
# MinIO S3 configuration
MINIO_ROOT_USER=admin
MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
LLM_VISION_IMAGE_USE_BASE64=1
# Configure the bucket information of MinIO
S3_PUBLIC_DOMAIN=http://localhost:9000
S3_ENDPOINT=http://localhost:9000
S3_ENABLE_PATH_STYLE=1
S3_SET_ACL=0
MINIO_LOBE_BUCKET=lobe
#Configure for DB Mode
NEXT_PUBLIC_SERVICE_MODE=server
DATABASE_DRIVER=node
NEXT_PUBLIC_ENABLE_NEXT_AUTH=1
@@ -0,0 +1,77 @@
name: lobe-chat-development
services:
postgresql:
image: pgvector/pgvector:pg17
container_name: lobe-postgres
ports:
- '5432:5432'
volumes:
- './data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_DB=${LOBE_DB_NAME:-lobechat}'
- 'POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}'
env_file:
- ../../.env
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
restart: always
networks:
- lobe-network
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
container_name: lobe-minio
ports:
- '${MINIO_PORT:-9000}:${MINIO_PORT:-9000}'
- '9001:9001'
networks:
- lobe-network
volumes:
- './s3_data:/etc/minio/data'
environment:
- 'MINIO_API_CORS_ALLOW_ORIGIN=*'
env_file:
- ../../.env
restart: always
entrypoint: >
/bin/sh -c "
minio server /etc/minio/data --address ':${MINIO_PORT:-9000}' --console-address ':9001' &
MINIO_PID=$$!
while ! curl -s http://localhost:${MINIO_PORT:-9000}/minio/health/live; do
echo 'Waiting for MinIO to start...'
sleep 1
done
sleep 5
mc alias set myminio http://localhost:${MINIO_PORT:-9000} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD}
echo 'Creating bucket ${MINIO_LOBE_BUCKET:-lobe}'
mc mb myminio/${MINIO_LOBE_BUCKET:-lobe}
wait $$MINIO_PID
"
searxng:
image: searxng/searxng
container_name: lobe-searxng
ports:
- '8080:8080'
volumes:
- './searxng-settings.yml:/etc/searxng/settings.yml'
environment:
- 'SEARXNG_SETTINGS_FILE=/etc/searxng/settings.yml'
restart: always
networks:
- lobe-network
env_file:
- ../../.env
volumes:
data:
driver: local
s3_data:
driver: local
networks:
lobe-network:
driver: bridge
File diff suppressed because it is too large Load Diff
+422 -43
View File
@@ -220,6 +220,56 @@ show_message() {
;;
esac
;;
dev_dirs_exist)
case $LANGUAGE in
zh_CN)
echo "检测到开发数据目录存在:"
;;
*)
echo "Detected existing development data directories:"
;;
esac
;;
dev_dirs_delete_warning)
case $LANGUAGE in
zh_CN)
echo "是否删除上述目录以继续?此操作将清空相关持久化数据。"
;;
*)
echo "Do you want to delete the directories above to continue? This will remove persisted data."
;;
esac
;;
dev_dirs_abort)
case $LANGUAGE in
zh_CN)
echo "用户取消删除。无法继续进行开发环境初始化。"
;;
*)
echo "Deletion declined by user. Cannot proceed with development setup."
;;
esac
;;
dev_dirs_deleting)
case $LANGUAGE in
zh_CN)
echo "正在删除目录:"
;;
*)
echo "Deleting directories:"
;;
esac
;;
dev_dirs_deleted)
case $LANGUAGE in
zh_CN)
echo "目录已删除。"
;;
*)
echo "Directories deleted."
;;
esac
;;
tips_no_executable)
case $LANGUAGE in
zh_CN)
@@ -311,6 +361,7 @@ show_message() {
echo "(0) 域名模式(访问时无需指明端口),需要使用反向代理服务 LobeChat, MinIO, Casdoor ,并分别分配一个域名;"
echo "(1) 端口模式(访问时需要指明端口,如使用IP访问,或域名+端口访问),需要放开指定端口;"
echo "(2) 本地模式(仅供本地测试使用)"
echo "(3) 开发模式(仅启动本地开发所需的基础服务,不包含 Casdoor;将 .env 复制到项目根目录)"
echo "如果你对这些内容疑惑,可以先选择使用本地模式进行部署,稍后根据文档指引再进行修改。"
echo "https://lobehub.com/docs/self-hosting/server-database/docker-compose"
;;
@@ -319,6 +370,7 @@ show_message() {
echo "(0) Domain mode (no need to specify the port when accessing), you need to use the reverse proxy service LobeChat, MinIO, Casdoor, and assign a domain name respectively;"
echo "(1) Port mode (need to specify the port when accessing, such as using IP access, or domain name + port access), you need to open the specified port;"
echo "(2) Local mode (for local testing only)"
echo "(3) Development mode (start local dev infra only, no Casdoor; copy .env to project root)"
echo "If you are confused about these contents, you can choose to deploy in local mode first, and then modify according to the document guide later."
echo "https://lobehub.com/docs/self-hosting/server-database/docker-compose"
;;
@@ -378,31 +430,28 @@ download_file() {
}
print_centered() {
# Define colors
declare -A colors
colors=(
[black]="\e[30m"
[red]="\e[31m"
[green]="\e[32m"
[yellow]="\e[33m"
[blue]="\e[34m"
[magenta]="\e[35m"
[cyan]="\e[36m"
[white]="\e[37m"
[reset]="\e[0m"
)
local text="$1" # Get input texts
local color="${2:-reset}" # Get color, default to reset
local term_width=$(tput cols) # Get terminal width
local text_length=${#text} # Get text length
local padding=$(((term_width - text_length) / 2)) # Get padding
# Check if the color is valid
if [[ -z "${colors[$color]}" ]]; then
echo "Invalid color specified. Available colors: ${!colors[@]}"
return 1
fi
# Print the text with padding
printf "%*s${colors[$color]}%s${colors[reset]}\n" $padding "" "$text"
# Map color name to ANSI code without associative arrays (macOS bash 3.2 compatible)
local text="$1"
local color="${2:-reset}"
local color_code
case "$color" in
black) color_code="\e[30m" ;;
red) color_code="\e[31m" ;;
green) color_code="\e[32m" ;;
yellow) color_code="\e[33m" ;;
blue) color_code="\e[34m" ;;
magenta) color_code="\e[35m" ;;
cyan) color_code="\e[36m" ;;
white) color_code="\e[37m" ;;
reset|*) color_code="\e[0m" ;;
esac
# Determine terminal width (fallback to 80)
local term_width
term_width=$(tput cols 2>/dev/null || echo 80)
local text_length=${#text}
local padding=$(((term_width - text_length) / 2))
if [ $padding -lt 0 ]; then padding=0; fi
printf "%*s${color_code}%s\e[0m\n" $padding "" "$text"
}
# Usage:
@@ -420,7 +469,7 @@ ask() {
description="$description "
fi
local result
if [ -n "$default" ]; then
read -p "$prompt [${description}${default}]: " result
result=${result:-$default}
@@ -475,17 +524,344 @@ if [ -z "$LANGUAGE" ]; then
esac
fi
# ==========================
# === Development Mode ====
# ==========================
sync_dev_s3_env_from_minio() {
local SCRIPT_DIR
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
local PROJECT_ROOT
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
local DEST_ENV="$PROJECT_ROOT/.env"
if [ ! -f "$DEST_ENV" ]; then
return 0
fi
local MINIO_BUCKET MINIO_USER MINIO_PASS
MINIO_BUCKET=$(grep -E '^MINIO_LOBE_BUCKET=' "$DEST_ENV" | head -n1 | cut -d'=' -f2)
MINIO_USER=$(grep -E '^MINIO_ROOT_USER=' "$DEST_ENV" | head -n1 | cut -d'=' -f2)
MINIO_PASS=$(grep -E '^MINIO_ROOT_PASSWORD=' "$DEST_ENV" | head -n1 | cut -d'=' -f2)
# Defaults when missing
if [ -z "$MINIO_BUCKET" ]; then MINIO_BUCKET="lobe"; fi
if [ -z "$MINIO_USER" ]; then MINIO_USER="admin"; fi
if grep -q '^S3_BUCKET=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^S3_BUCKET=.*#S3_BUCKET=${MINIO_BUCKET}#" "$DEST_ENV"
else
echo "S3_BUCKET=${MINIO_BUCKET}" >> "$DEST_ENV"
fi
if grep -q '^S3_ACCESS_KEY=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^S3_ACCESS_KEY=.*#S3_ACCESS_KEY=${MINIO_USER}#" "$DEST_ENV"
else
echo "S3_ACCESS_KEY=${MINIO_USER}" >> "$DEST_ENV"
fi
if grep -q '^S3_ACCESS_KEY_ID=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^S3_ACCESS_KEY_ID=.*#S3_ACCESS_KEY_ID=${MINIO_USER}#" "$DEST_ENV"
else
echo "S3_ACCESS_KEY_ID=${MINIO_USER}" >> "$DEST_ENV"
fi
if grep -q '^S3_SECRET_ACCESS_KEY=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^S3_SECRET_ACCESS_KEY=.*#S3_SECRET_ACCESS_KEY=${MINIO_PASS}#" "$DEST_ENV"
else
echo "S3_SECRET_ACCESS_KEY=${MINIO_PASS}" >> "$DEST_ENV"
fi
}
section_setup_development_env() {
# Determine directories
local SCRIPT_DIR
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
local PROJECT_ROOT
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
echo "Setting up development environment (.env at project root)..."
local DEV_ENV_EXAMPLE="$SCRIPT_DIR/development/.env.example"
local DEST_ENV="$PROJECT_ROOT/.env"
if [ ! -f "$DEV_ENV_EXAMPLE" ]; then
echo "ERROR: Development .env.example not found at $DEV_ENV_EXAMPLE"
return 1
fi
local DO_COPY="y"
if [ -f "$DEST_ENV" ]; then
echo "A .env already exists at project root ($DEST_ENV). Overwrite?"
ask "(y/n)" "n"
DO_COPY="$ask_result"
if [[ "$DO_COPY" != "y" ]]; then
echo "Keeping existing .env at project root."
fi
fi
if [[ "$DO_COPY" == "y" ]]; then
cp "$DEV_ENV_EXAMPLE" "$DEST_ENV"
if [ $? -ne 0 ]; then
echo "ERROR: Failed to copy development .env to project root."
return 1
fi
echo "✔️ .env copied to project root: $DEST_ENV"
fi
# Sync S3 variables to concrete values from current MinIO settings
sync_dev_s3_env_from_minio
}
section_check_dev_data_dirs() {
# Check and optionally delete existing dev data directories (PostgreSQL and MinIO)
local SCRIPT_DIR
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
local DEV_DIR="$SCRIPT_DIR/development"
local DATA_DIR="$DEV_DIR/data"
local S3_DATA_DIR="$DEV_DIR/s3_data"
local existing_list=""
local -a dirs_to_remove
if [ -d "$DATA_DIR" ]; then
existing_list+=" data"
dirs_to_remove+=("$DATA_DIR")
fi
if [ -d "$S3_DATA_DIR" ]; then
existing_list+=" s3_data"
dirs_to_remove+=("$S3_DATA_DIR")
fi
# Nothing to do
if [ -z "$existing_list" ]; then
return 0
fi
# Inform user and ask for deletion
echo "$(show_message "dev_dirs_exist")$existing_list"
echo "$(show_message "dev_dirs_delete_warning")"
ask "(y/n)" "n"
if [[ "$ask_result" != "y" ]]; then
echo "$(show_message "dev_dirs_abort")"
return 1
fi
echo "$(show_message "dev_dirs_deleting")$existing_list"
# Delete only within DEV_DIR for safety
for d in "${dirs_to_remove[@]}"; do
case "$d" in
"$DEV_DIR"/*)
rm -rf -- "$d"
;;
*)
echo "Skip unsafe path: $d"
;;
esac
done
echo "$(show_message "dev_dirs_deleted")"
}
section_regenerate_secrets_dev() {
# Regenerate development secrets (MinIO, NextAuth, Key Vaults) and DATABASE_URL
if ! command -v openssl &> /dev/null ; then
echo "openssl" $(show_message "tips_no_executable")
return 1
fi
if ! command -v sed &> /dev/null ; then
echo "sed" $(show_message "tips_no_executable")
return 1
fi
generate_key() {
if [[ -z "$1" ]]; then
echo "Usage: generate_key <length>"
return 1
fi
echo $(openssl rand -hex $1 | tr -d '\n' | fold -w $1 | head -n 1)
}
generate_base64() {
if [[ -z "$1" ]]; then
echo "Usage: generate_base64 <bytes>"
return 1
fi
echo $(openssl rand -base64 $1 | tr -d '\n')
}
local SCRIPT_DIR
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
local PROJECT_ROOT
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
local DEST_ENV="$PROJECT_ROOT/.env"
if [ ! -f "$DEST_ENV" ]; then
echo "WARN: $DEST_ENV not found; skipping secret regeneration."
return 0
fi
echo $(show_message "security_secrect_regenerate")
# 1) MINIO_ROOT_PASSWORD (hex)
local MINIO_ROOT_PASSWORD
MINIO_ROOT_PASSWORD=$(generate_key 8)
if [ $? -ne 0 ] || [ -z "$MINIO_ROOT_PASSWORD" ]; then
echo $(show_message "security_secrect_regenerate_failed") "MINIO_ROOT_PASSWORD"
return 1
fi
if grep -q '^MINIO_ROOT_PASSWORD=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^MINIO_ROOT_PASSWORD=.*#MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}#" "$DEST_ENV"
else
echo "MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}" >> "$DEST_ENV"
fi
# 2) POSTGRES_PASSWORD (hex)
local POSTGRES_PASSWORD_NEW
POSTGRES_PASSWORD_NEW=$(generate_key 8)
if [ $? -ne 0 ] || [ -z "$POSTGRES_PASSWORD_NEW" ]; then
echo $(show_message "security_secrect_regenerate_failed") "POSTGRES_PASSWORD"
else
if grep -q '^POSTGRES_PASSWORD=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^POSTGRES_PASSWORD=.*#POSTGRES_PASSWORD=${POSTGRES_PASSWORD_NEW}#" "$DEST_ENV"
else
echo "POSTGRES_PASSWORD=${POSTGRES_PASSWORD_NEW}" >> "$DEST_ENV"
fi
fi
# 3) NEXT_AUTH_SECRET (base64 32)
local NEXT_AUTH_SECRET
NEXT_AUTH_SECRET=$(generate_base64 32)
if [ $? -ne 0 ] || [ -z "$NEXT_AUTH_SECRET" ]; then
echo $(show_message "security_secrect_regenerate_failed") "NEXT_AUTH_SECRET"
else
if grep -q '^NEXT_AUTH_SECRET=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^NEXT_AUTH_SECRET=.*#NEXT_AUTH_SECRET=${NEXT_AUTH_SECRET}#" "$DEST_ENV"
else
echo "NEXT_AUTH_SECRET=${NEXT_AUTH_SECRET}" >> "$DEST_ENV"
fi
fi
# 3) KEY_VAULTS_SECRET (base64 32)
local KEY_VAULTS_SECRET
KEY_VAULTS_SECRET=$(generate_base64 32)
if [ $? -ne 0 ] || [ -z "$KEY_VAULTS_SECRET" ]; then
echo $(show_message "security_secrect_regenerate_failed") "KEY_VAULTS_SECRET"
else
if grep -q '^KEY_VAULTS_SECRET=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^KEY_VAULTS_SECRET=.*#KEY_VAULTS_SECRET=${KEY_VAULTS_SECRET}#" "$DEST_ENV"
else
echo "KEY_VAULTS_SECRET=${KEY_VAULTS_SECRET}" >> "$DEST_ENV"
fi
fi
# 4) DATABASE_URL (postgres connection string)
local POSTGRES_PASSWORD_VAL
local LOBE_DB_NAME_VAL
POSTGRES_PASSWORD_VAL=$(grep -E '^POSTGRES_PASSWORD=' "$DEST_ENV" | head -n1 | cut -d'=' -f2)
LOBE_DB_NAME_VAL=$(grep -E '^LOBE_DB_NAME=' "$DEST_ENV" | head -n1 | cut -d'=' -f2)
if [ -z "$POSTGRES_PASSWORD_VAL" ]; then POSTGRES_PASSWORD_VAL="postgres"; fi
if [ -z "$LOBE_DB_NAME_VAL" ]; then LOBE_DB_NAME_VAL="lobechat"; fi
local DATABASE_URL
DATABASE_URL="postgres://postgres:${POSTGRES_PASSWORD_VAL}@localhost:5432/${LOBE_DB_NAME_VAL}"
if grep -q '^DATABASE_URL=' "$DEST_ENV"; then
sed "${SED_INPLACE_ARGS[@]}" "s#^DATABASE_URL=.*#DATABASE_URL=${DATABASE_URL}#" "$DEST_ENV"
else
echo "DATABASE_URL=${DATABASE_URL}" >> "$DEST_ENV"
fi
# Sync S3 variables to reflect updated MinIO creds
sync_dev_s3_env_from_minio
}
section_init_database_dev() {
if ! command -v docker &> /dev/null ; then
echo "docker" $(show_message "tips_no_executable")
return 1
fi
if ! docker compose &> /dev/null ; then
echo "docker compose" $(show_message "tips_no_executable")
return 1
fi
if ! docker stats --no-stream &> /dev/null ; then
echo $(show_message "tips_no_docker_permission")
return 1
fi
local SCRIPT_DIR
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
local PROJECT_ROOT
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
echo "Starting development infrastructure (PostgreSQL, MinIO, SearXNG)..."
docker compose --env-file "$PROJECT_ROOT/.env" -f "$SCRIPT_DIR/development/docker-compose.yml" pull
docker compose --env-file "$PROJECT_ROOT/.env" -f "$SCRIPT_DIR/development/docker-compose.yml" up --detach postgresql minio searxng
# give services a moment to start
sleep 5
}
section_display_dev_report() {
local SCRIPT_DIR
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
local PROJECT_ROOT
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
local DEST_ENV="$PROJECT_ROOT/.env"
# Defaults
local LOBE_PORT_VALUE=3210
local MINIO_PORT_VALUE=9000
if [ -f "$DEST_ENV" ]; then
local lp mp
lp=$(grep -E '^LOBE_PORT=' "$DEST_ENV" | head -n1 | cut -d'=' -f2)
mp=$(grep -E '^MINIO_PORT=' "$DEST_ENV" | head -n1 | cut -d'=' -f2)
if [ -n "$lp" ]; then LOBE_PORT_VALUE="$lp"; fi
if [ -n "$mp" ]; then MINIO_PORT_VALUE="$mp"; fi
fi
printf "\nDevelopment infrastructure started. Service endpoints:\n"
echo "- PostgreSQL: localhost:5432"
echo "- MinIO API: http://localhost:${MINIO_PORT_VALUE} (Console: http://localhost:9001)"
echo "- SearXNG: http://localhost:8080"
printf "\nYou can now run the app locally with:\n"
print_centered "pnpm db:migrate" "green"
print_centered "pnpm start:dev" "green"
}
# Prompt for deployment mode early to allow Development mode flow
show_message "ask_deploy_mode"
ask "(0,1,2,3)" "2"
if [[ "$ask_result" == "3" ]]; then
# Development mode: copy .env to project root, optionally regenerate secrets/init DB, then report and exit
section_setup_development_env || exit 1
show_message "ask_regenerate_secrets"
ask "(y/n)" "y"
if [[ "$ask_result" == "y" ]]; then
section_regenerate_secrets_dev || true
fi
# Check if dev data directories exist and handle per user choice; abort if declined
section_check_dev_data_dirs || exit 1
show_message "ask_init_database"
ask "(y/n)" "y"
if [[ "$ask_result" == "y" ]]; then
section_init_database_dev || true
else
show_message "tips_init_database_failed"
fi
section_display_dev_report
exit 0
fi
section_download_files(){
# Download files asynchronously
if ! command -v wget &> /dev/null ; then
echo "wget" $(show_message "tips_no_executable")
exit 1
fi
download_file "$SOURCE_URL/${FILES[0]}" "docker-compose.yml"
download_file "$SOURCE_URL/${FILES[1]}" "init_data.json"
download_file "$SOURCE_URL/${FILES[2]}" "searxng-settings.yml"
# Download .env.example with the specified language
if [ "$LANGUAGE" = "zh_CN" ]; then
download_file "$SOURCE_URL/${ENV_EXAMPLES[0]}" ".env"
@@ -522,13 +898,13 @@ section_configurate_host() {
sed "${SED_INPLACE_ARGS[@]}" "s#http://#https://#" .env
fi
fi
# Check if sed is installed
if ! command -v sed "${SED_INPLACE_ARGS[@]}" &> /dev/null ; then
echo "sed" $(show_message "tips_no_executable")
exit 1
fi
# If user not specify host, try to get the server ip
if [ -z "$HOST" ]; then
HOST=$(hostname -I | awk '{print $1}')
@@ -537,8 +913,8 @@ section_configurate_host() {
echo $(show_message "tips_private_ip_detected")
fi
fi
case $DEPLOY_MODE in
0)
DEPLOY_MODE="domain"
@@ -573,7 +949,7 @@ section_configurate_host() {
exit 1
;;
esac
# lobe host
sed "${SED_INPLACE_ARGS[@]}" "s#^APP_URL=.*#APP_URL=$PROTOCOL://$LOBE_HOST#" .env
# auth related
@@ -583,15 +959,18 @@ section_configurate_host() {
# s3 related
sed "${SED_INPLACE_ARGS[@]}" "s#^S3_PUBLIC_DOMAIN=.*#S3_PUBLIC_DOMAIN=$PROTOCOL://$MINIO_HOST#" .env
sed "${SED_INPLACE_ARGS[@]}" "s#^S3_ENDPOINT=.*#S3_ENDPOINT=$PROTOCOL://$MINIO_HOST#" .env
# Check if env modified success
if [ $? -ne 0 ]; then
echo $(show_message "host_regenerate_failed") "$HOST in \`.env\`"
fi
}
show_message "ask_deploy_mode"
ask "(0,1,2)" "2"
if [ -z "$ask_result" ]; then
show_message "ask_deploy_mode"
ask "(0,1,2)" "2"
fi
if [[ "$ask_result" == "0" ]] || [[ "$ask_result" == "1" ]] || [[ "$ask_result" == "2" ]]; then
section_configurate_host
else
@@ -620,7 +999,7 @@ section_regenerate_secrets() {
echo "head" $(show_message "tips_no_executable")
exit 1
fi
generate_key() {
if [[ -z "$1" ]]; then
echo "Usage: generate_key <length>"
@@ -628,13 +1007,13 @@ section_regenerate_secrets() {
fi
echo $(openssl rand -hex $1 | tr -d '\n' | fold -w $1 | head -n 1)
}
if ! command -v sed &> /dev/null ; then
echo "sed" $(show_message "tips_no_executable")
exit 1
fi
echo $(show_message "security_secrect_regenerate")
# Generate CASDOOR_SECRET
CASDOOR_SECRET=$(generate_key 32)
if [ $? -ne 0 ]; then
@@ -651,7 +1030,7 @@ section_regenerate_secrets() {
echo $(show_message "security_secrect_regenerate_failed") "AUTH_CASDOOR_SECRET in \`init_data.json\`"
fi
fi
# Generate Casdoor User
CASDOOR_USER="admin"
CASDOOR_PASSWORD=$(generate_key 10)
@@ -722,18 +1101,18 @@ if [[ "$ask_result" == "y" ]]; then
if [ $? -ne 0 ]; then
echo $(show_message "tips_init_database_failed")
fi
else
else
show_message "tips_init_database_failed"
fi
section_display_configurated_report() {
# Display configuration reports
echo $(show_message "security_secrect_regenerate_report")
echo -e "LobeChat: \n - URL: $PROTOCOL://$LOBE_HOST \n - Username: user \n - Password: ${CASDOOR_PASSWORD} "
echo -e "Casdoor: \n - URL: $PROTOCOL://$CASDOOR_HOST \n - Username: admin \n - Password: ${CASDOOR_PASSWORD}\n"
echo -e "Minio: \n - URL: $PROTOCOL://$MINIO_HOST \n - Username: admin\n - Password: ${MINIO_ROOT_PASSWORD}\n"
# if user run in domain mode, diplay reverse proxy configuration
if [[ "$DEPLOY_MODE" == "domain" ]]; then
echo $(show_message "tips_add_reverse_proxy")
+28
View File
@@ -72,6 +72,34 @@ bun run dev
Now, you should be able to see the welcome page of LobeChat in your browser. For a detailed environment setup guide, please refer to [Development Environment Setup Guide](/docs/development/basic/setup-development).
### Start local infrastructure with Docker Compose (Development mode)
If you want to run LobeChat against a local database and object storage, we provide a Development mode that launches only the infrastructure you need (PostgreSQL, MinIO, and SearXNG) via Docker:
```bash
cd docker-compose
bash ./setup.sh
# When prompted, choose: (3) Development mode
# The script will:
# - copy a .env template to the project root (./.env)
# - regenerate secrets if you accept the prompt
# - start Postgres, MinIO and SearXNG
```
After the infrastructure is up, return to the project root and run:
```bash
pnpm install
pnpm run db:migrate
pnpm run dev
```
Notes:
- The .env file is stored at the project root so pnpm scripts auto-load it.
- Casdoor is not used in Development mode.
- MinIO Console is available at [http://localhost:9001](http://localhost:9001) and SearXNG at [http://localhost:8080](http://localhost:8080).
## Code Style and Contribution Guide
In the LobeChat project, we place great emphasis on the quality and consistency of the code. For this reason, we have established a series of code style standards and contribution processes to ensure that every developer can smoothly participate in the project. Here are the code style and contribution guidelines you need to follow as a developer.
+5 -3
View File
@@ -44,12 +44,14 @@ Before connecting the desktop to your self-hosted instance, ensure that your sel
#### OIDC Environment Variable Configuration
You need to add the following two environment variables, `ENABLE_OIDC` and `OIDC_JWKS_KEY`, to your self-hosted instance. You can click the button below to generate them with one click:
You need to add the following two environment variables, `ENABLE_OIDC` and `JWKS_KEY`, to your self-hosted instance. You can click the button below to generate them with one click:
<OIDCJWKs />
Add the generated JWK key to your environment variables.
<Callout>If you have already configured `OIDC_JWKS_KEY`, no changes are needed. The system will automatically fall back to `OIDC_JWKS_KEY` for backward compatibility.</Callout>
If you are deploying LobeChat using one-click deployment methods (such as Vercel, Railway, etc.), you need to:
1. Add the above environment variables to the environment variable configuration of your deployment platform.
@@ -71,8 +73,8 @@ If you are deploying LobeChat using one-click deployment methods (such as Vercel
**Solution:**
- Confirm that you have correctly set the `ENABLE_OIDC=1` and `OIDC_JWKS_KEY` environment variables.
- Ensure that `OIDC_JWKS_KEY` is in valid JSON format without extra single quotes.
- Confirm that you have correctly set the `ENABLE_OIDC=1` and `JWKS_KEY` environment variables.
- Ensure that `JWKS_KEY` is in valid JSON format without extra single quotes.
- Check your server logs for specific error messages.
If you are using Nginx as a reverse proxy, the issue may be due to oversized request headers. You can try adding the following settings to your Nginx configuration:
+5 -3
View File
@@ -42,12 +42,14 @@ LobeChat 桌面端可以与您自托管的 LobeChat 实例连接,以便您可
#### OIDC 环境变量配置
您需要在自托管实例中添加以下`ENABLE_OIDC` 和 `OIDC_JWKS_KEY` 这两个环境变量,你可以点击下方按钮一键生成:
您需要在自托管实例中添加以下`ENABLE_OIDC` 和 `JWKS_KEY` 这两个环境变量,你可以点击下方按钮一键生成:
<OIDCJWKs />
将生成的 JWK 密钥添加到您的环境变量中。
<Callout>如果您之前已配置 `OIDC_JWKS_KEY`,无需修改。系统会自动回退使用 `OIDC_JWKS_KEY`(向后兼容)。</Callout>
如果您使用一键部署方式(如 Vercel、Railway 等平台)部署 LobeChat,您需要:
1. 将上述环境变量添加到部署平台的环境变量配置中
@@ -69,8 +71,8 @@ LobeChat 桌面端可以与您自托管的 LobeChat 实例连接,以便您可
**解决方案:**
- 确认您已经正确设置了 `ENABLE_OIDC=1` 和 `OIDC_JWKS_KEY` 环境变量
- 确保 `OIDC_JWKS_KEY` 是有效的 JSON 格式,没有额外的单引号
- 确认您已经正确设置了 `ENABLE_OIDC=1` 和 `JWKS_KEY` 环境变量
- 确保 `JWKS_KEY` 是有效的 JSON 格式,没有额外的单引号
- 检查您的服务端日志,查看具体错误信息
如果您使用 Nginx 作为反向代理,可能是请求头太大导致的问题。可以尝试在 Nginx 配置中添加以下设置:
@@ -55,6 +55,14 @@ LobeChat provides a complete authentication service capability when deployed. Th
- Default: `-`
- Example: `google,github,microsoft,cognito`
#### `JWKS_KEY`
- Type: Required
- Description: Generic JWKS (JSON Web Key Set) key for signing and verifying JWTs. Used for internal service authentication and other cryptographic operations. Must be a JWKS JSON string containing an RS256 RSA key pair. Falls back to `OIDC_JWKS_KEY` if not set (for backward compatibility).
- Default: `-`
<OIDCJWKs />
### Email Service (SMTP)
These settings are required for email verification and password reset features.
@@ -53,6 +53,14 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相
- 默认值:`-`
- 示例:`google,github,microsoft,cognito`
#### `JWKS_KEY`
- 类型:必选
- 描述:用于签名和验证 JWT 的通用 JWKSJSON Web Key Set)密钥。用于内部服务认证和其他加密操作。必须是包含 RS256 RSA 密钥对的 JWKS JSON 字符串。如果未设置,将回退到 `OIDC_JWKS_KEY`(向后兼容)。
- 默认值:`-`
<OIDCJWKs />
### 邮件服务(SMTP
启用邮箱验证和密码重置功能需要配置以下设置。
@@ -20,6 +20,12 @@ tags:
[![][docker-pulls-shield]][docker-pulls-link]
</div>
<Callout type="info">
For local development, use the interactive <strong>Development mode</strong> which starts only the infrastructure (PostgreSQL, MinIO, and SearXNG). It stores the <code>.env</code> file at the project root so pnpm scripts auto-load it. Casdoor is not used in this mode.
See the development guide: <a href="/docs/development/start">/docs/development/start</a>
</Callout>
<Callout type="warning">
**Note on Docker Deployment Limitations**
The Docker and Docker Compose deployment options do not support injecting the `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` through environment variables, which prevents enabling the Clerk authentication service. Recommended alternatives include:
+1 -9
View File
@@ -7,15 +7,7 @@ import type { Config } from 'drizzle-kit';
dotenv.config();
let connectionString = process.env.DATABASE_URL;
if (process.env.NODE_ENV === 'test') {
console.log('current ENV:', process.env.NODE_ENV);
connectionString = process.env.DATABASE_TEST_URL;
}
if (!connectionString)
throw new Error('`DATABASE_URL` or `DATABASE_TEST_URL` not found in environment');
let connectionString = process.env.DATABASE_URL!;
export default {
dbCredentials: {
+2
View File
@@ -0,0 +1,2 @@
reports
screenshots
+428
View File
@@ -0,0 +1,428 @@
# E2E Testing Guide for Claude
本文档记录了在 LobeHub E2E 测试开发中的经验和最佳实践。
Related: [LOBE-2417](https://linear.app/lobehub/issue/LOBE-2417/建立核心产品功能-e2e-测试体验基准线)
## 测试策略:体验驱动的 E2E 测试
### 核心理念
建立完整的**用户体验链路 E2E 测试**,作为未来变更和重构的**体验基准线**。
**目的**
- 确保核心用户体验在代码变更后不会退化
- 为重构提供安全网,敢于大胆改进代码
- 从用户视角验证功能完整性
### 产品架构覆盖
| 模块 | 子功能 | 优先级 | 状态 |
| ---------------- | -------------------- | ------ | ---- |
| **Agent** | Builder, 对话,Task | P0 | 🚧 |
| **Agent Group** | Builder, 群聊 | P1 | ⏳ |
| **Page(文稿)** | 创建,编辑,分享 | P1 | ⏳ |
| **知识库** | 创建,上传,RAG 对话 | P1 | ⏳ |
| **记忆** | 查看,编辑,关联 | P2 | ⏳ |
### 标签系统
```gherkin
@journey # 用户旅程测试(体验基准线)
@smoke # 冒烟测试(快速验证)
@regression # 回归测试
@P0 # 最高优先级(CI 必跑)
@P1 # 高优先级(Nightly
@P2 # 中优先级(发版前)
@agent # Agent 模块
@agent-group # Agent Group 模块
@page # Page 文稿模块
@knowledge # 知识库模块
@memory # 记忆模块
```
### 执行策略
```bash
# CI - P0 冒烟测试(每次 PR)
pnpm exec cucumber-js --config cucumber.config.js --tags "@smoke and @P0"
# Nightly - 所有用户旅程
pnpm exec cucumber-js --config cucumber.config.js --tags "@journey"
# 发版前 - 完整回归
pnpm exec cucumber-js --config cucumber.config.js --tags "@P0 or @P1"
# 完整测试
pnpm exec cucumber-js --config cucumber.config.js
```
### 测试设计原则
1. **按 CRUD + 核心交互覆盖**:每个模块覆盖创建、读取、更新、删除及核心交互流程
2. **LLM 响应必须 Mock**:保证测试稳定性和可重复性
3. **中文描述场景**:Feature 文件使用中文,贴近产品需求
4. **优先级分层**:合理分配 P0/P1/P2,控制 CI 执行时间
## 目录结构
```
e2e/
├── src/
│ ├── features/ # Cucumber feature 文件
│ │ ├── journeys/ # 用户旅程(体验基准线)
│ │ │ ├── agent/
│ │ │ │ ├── agent-builder.feature
│ │ │ │ ├── agent-conversation.feature ✅
│ │ │ │ └── agent-task.feature
│ │ │ ├── agent-group/
│ │ │ │ ├── group-builder.feature
│ │ │ │ └── group-chat.feature
│ │ │ ├── page/
│ │ │ │ └── page-crud.feature
│ │ │ ├── knowledge/
│ │ │ │ └── knowledge-rag.feature
│ │ │ └── memory/
│ │ │ └── memory-crud.feature
│ │ ├── smoke/ # 冒烟测试
│ │ │ └── discover/
│ │ └── regression/ # 回归测试
│ ├── steps/ # Step definitions
│ │ ├── agent/ # Agent 相关 steps
│ │ ├── common/ # 通用 steps (auth, navigation)
│ │ └── hooks.ts # Before/After hooks
│ ├── mocks/ # Mock 框架
│ │ └── llm/ # LLM Mock (拦截 AI 请求) ✅
│ └── support/ # 测试支持文件
│ └── world.ts # CustomWorld 定义
├── screenshots/ # 失败截图
├── reports/ # 测试报告
├── cucumber.config.js # Cucumber 配置
└── CLAUDE.md # 本文档
```
## 本地环境启动
> 详细流程参考 [e2e/docs/local-setup.md](./docs/local-setup.md)
### 快速启动流程
```bash
# Step 1: 清理环境
docker stop postgres-e2e 2> /dev/null; docker rm postgres-e2e 2> /dev/null
lsof -ti:3006 | xargs kill -9 2> /dev/null
lsof -ti:5433 | xargs kill -9 2> /dev/null
# Step 2: 启动数据库(使用 paradedb 镜像,支持 pgvector
docker run -d --name postgres-e2e \
-e POSTGRES_PASSWORD=postgres \
-p 5433:5432 \
paradedb/paradedb:latest
# 等待数据库就绪
until docker exec postgres-e2e pg_isready; do sleep 2; done
# Step 3: 运行数据库迁移(项目根目录)
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
bun run db:migrate
# Step 4: 构建应用(首次或代码变更后)
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
BETTER_AUTH_SECRET=e2e-test-secret-key-for-better-auth-32chars! \
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 \
SKIP_LINT=1 \
bun run build
# Step 5: 启动服务器(必须在项目根目录运行!)
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
BETTER_AUTH_SECRET=e2e-test-secret-key-for-better-auth-32chars! \
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 \
NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION=0 \
S3_ACCESS_KEY_ID=e2e-mock-access-key \
S3_SECRET_ACCESS_KEY=e2e-mock-secret-key \
S3_BUCKET=e2e-mock-bucket \
S3_ENDPOINT=https://e2e-mock-s3.localhost \
bunx next start -p 3006
```
**重要提示**:
- 必须使用 `paradedb/paradedb:latest` 镜像(支持 pgvector 扩展)
- 服务器必须在**项目根目录**启动,不能在 e2e 目录
- S3 环境变量是**必需**的,即使不测试文件上传
## 运行测试
```bash
# 从 e2e 目录运行
cd e2e
# 运行特定标签的测试
BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js --tags "@AGENT-CHAT-001"
# 调试模式(显示浏览器)
HEADLESS=false BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js --tags "@conversation"
# 运行所有测试
BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js
```
**重要**: 必须显式指定 `--config cucumber.config.js`,否则配置不会被正确加载。
## LLM Mock 实现
### 核心原理
LLM Mock 通过 Playwright 的 `page.route()` 拦截对 `/webapi/chat/openai` 的请求,返回预设的 SSE 流式响应。
### SSE 响应格式
LobeHub 使用特定的 SSE 格式,必须严格匹配:
```typescript
// 1. 初始 data 事件
id: msg_xxx
event: data
data: {"id":"msg_xxx","model":"gpt-4o-mini","role":"assistant","type":"message",...}
// 2. 文本内容分块(text 事件)
id: msg_xxx
event: text
data: "Hello"
id: msg_xxx
event: text
data: "! I am"
// 3. 停止事件
id: msg_xxx
event: stop
data: "end_turn"
// 4. 使用量统计
id: msg_xxx
event: usage
data: {"totalTokens":100,...}
// 5. 最终停止
id: msg_xxx
event: stop
data: "message_stop"
```
### 使用示例
```typescript
import { llmMockManager, presetResponses } from '../../mocks/llm';
// 在测试步骤中设置 mock
llmMockManager.setResponse('hello', presetResponses.greeting);
await llmMockManager.setup(this.page);
```
### 添加自定义响应
```typescript
// 为特定用户消息设置响应
llmMockManager.setResponse('你好', '你好!我是 Lobe AI,有什么可以帮助你的?');
// 清除所有自定义响应
llmMockManager.clearResponses();
```
## 页面元素定位技巧
### 富文本编辑器 (contenteditable) 输入
LobeHub 使用 `@lobehub/editor` 作为聊天输入框,是一个 contenteditable 的富文本编辑器。
**关键点**:
1. 不能直接用 `locator.fill()` - 对 contenteditable 不生效
2. 需要先 click 容器让编辑器获得焦点
3. 使用 `keyboard.type()` 输入文本
```typescript
// 正确的输入方式
await chatInputContainer.click();
await this.page.waitForTimeout(500); // 等待焦点
await this.page.keyboard.type(message, { delay: 30 });
await this.page.keyboard.press('Enter'); // 发送
```
### 添加 data-testid
为了更可靠的元素定位,可以在组件上添加 `data-testid`
```tsx
// src/features/ChatInput/Desktop/index.tsx
<ChatInput
data-testid="chat-input"
...
/>
```
## 调试技巧
### 添加步骤日志
在每个关键步骤添加 console.log,帮助定位问题:
```typescript
Given('用户进入页面', async function (this: CustomWorld) {
console.log(' 📍 Step: 导航到首页...');
await this.page.goto('/');
console.log(' 📍 Step: 查找元素...');
const element = this.page.locator('...');
console.log(' ✅ 步骤完成');
});
```
### 查看失败截图
测试失败时会自动保存截图到 `e2e/screenshots/` 目录。
### 非 headless 模式
设置 `HEADLESS=false` 可以看到浏览器操作:
```bash
HEADLESS=false pnpm exec cucumber-js --config cucumber.config.js --tags "@smoke"
```
## 环境变量
运行测试需要以下环境变量:
```bash
BASE_URL=http://localhost:3010 # 测试服务器地址
DATABASE_URL=postgresql://... # 数据库连接
DATABASE_DRIVER=node # 数据库驱动
KEY_VAULTS_SECRET=... # 密钥
BETTER_AUTH_SECRET=... # Auth 密钥
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 # 启用 Better Auth
# 可选:S3 相关(如果测试涉及文件上传)
S3_ACCESS_KEY_ID=e2e-mock-access-key
S3_SECRET_ACCESS_KEY=e2e-mock-secret-key
S3_BUCKET=e2e-mock-bucket
S3_ENDPOINT=https://e2e-mock-s3.localhost
```
## 清理环境
测试完成后或需要重置环境时,执行以下清理操作:
### 停止服务器
```bash
# 查找并停止占用端口的进程
lsof -ti:3006 | xargs kill -9 2> /dev/null
lsof -ti:3010 | xargs kill -9 2> /dev/null
```
### 停止 Docker 容器
```bash
# 停止并删除 PostgreSQL 容器
docker stop postgres-e2e 2> /dev/null
docker rm postgres-e2e 2> /dev/null
```
### 一键清理(推荐)
```bash
# 清理所有 E2E 相关进程和容器
docker stop postgres-e2e 2> /dev/null
docker rm postgres-e2e 2> /dev/null
lsof -ti:3006 | xargs kill -9 2> /dev/null
lsof -ti:3010 | xargs kill -9 2> /dev/null
lsof -ti:5433 | xargs kill -9 2> /dev/null
echo "Cleanup done"
```
### 清理端口占用
如果遇到端口被占用的错误,可以清理特定端口:
```bash
# 清理 Next.js 服务器端口
lsof -ti:3006 | xargs kill -9
# 清理 PostgreSQL 端口
lsof -ti:5433 | xargs kill -9
```
## 常见问题
### 1. 测试超时 (function timed out)
**原因**: 元素定位失败或等待时间不足
**解决**:
- 检查选择器是否正确
- 增加 timeout 参数
- 添加显式等待 `waitForTimeout()`
### 2. strict mode violation (多个元素匹配)
**原因**: 选择器匹配到多个元素(如 desktop/mobile 双组件)
**解决**:
- 使用 `.first()``.nth(n)`
- 使用 `boundingBox()` 过滤可见元素
### 3. LLM Mock 未生效
**原因**: 路由拦截设置在页面导航之后
**解决**: 确保在 `page.goto()` 之前调用 `llmMockManager.setup(page)`
### 4. 输入框内容为空
**原因**: contenteditable 编辑器的特殊性
**解决**:
- 先 click 容器确保焦点
- 使用 `keyboard.type()` 而非 `fill()`
- 添加适当的等待时间
## 编写新测试的流程
1. **创建 Feature 文件** (`src/features/xxx/xxx.feature`)
- 使用中文描述场景
- 添加适当的标签 (@journey, @P0, @smoke 等)
2. **创建 Step Definitions** (`src/steps/xxx/xxx.steps.ts`)
- 导入必要的 mock 和工具
- 每个步骤添加日志
- 处理元素定位的边界情况
3. **设置 Mock**(如需要)
-`src/mocks/` 下创建对应的 mock
- 在步骤中初始化 mock
4. **调试和验证**
- 先用 `HEADLESS=false` 运行观察
- 检查失败截图
- 确保稳定通过后再提交
+2 -2
View File
@@ -10,11 +10,11 @@ export default {
formatOptions: {
snippetInterface: 'async-await',
},
parallel: process.env.CI ? 1 : 4,
parallel: 1,
paths: ['src/features/**/*.feature'],
publishQuiet: true,
require: ['src/steps/**/*.ts', 'src/support/**/*.ts'],
requireModule: ['tsx/cjs'],
retry: 0,
timeout: 120_000,
timeout: 30_000,
};
+68
View File
@@ -0,0 +1,68 @@
# LLM Mock 实现
## 核心原理
LLM Mock 通过 Playwright 的 `page.route()` 拦截对 `/webapi/chat/openai` 的请求,返回预设的 SSE 流式响应。
## SSE 响应格式
LobeHub 使用特定的 SSE 格式,必须严格匹配:
```
// 1. 初始 data 事件
id: msg_xxx
event: data
data: {"id":"msg_xxx","model":"gpt-4o-mini","role":"assistant","type":"message",...}
// 2. 文本内容分块(text 事件)
id: msg_xxx
event: text
data: "Hello"
id: msg_xxx
event: text
data: "! I am"
// 3. 停止事件
id: msg_xxx
event: stop
data: "end_turn"
// 4. 使用量统计
id: msg_xxx
event: usage
data: {"totalTokens":100,...}
// 5. 最终停止
id: msg_xxx
event: stop
data: "message_stop"
```
## 使用示例
```typescript
import { llmMockManager, presetResponses } from '../../mocks/llm';
// 在测试步骤中设置 mock
llmMockManager.setResponse('hello', presetResponses.greeting);
await llmMockManager.setup(this.page);
```
## 添加自定义响应
```typescript
// 为特定用户消息设置响应
llmMockManager.setResponse('你好', '你好!我是 Lobe AI,有什么可以帮助你的?');
// 清除所有自定义响应
llmMockManager.clearResponses();
```
## 常见问题
### LLM Mock 未生效
**原因**: 路由拦截设置在页面导航之后
**解决**: 确保在 `page.goto()` 之前调用 `llmMockManager.setup(page)`
+354
View File
@@ -0,0 +1,354 @@
# 本地运行 E2E 测试
## 前置要求
- Docker Desktop 已安装并**正在运行**
- Node.js 18+
- pnpm 已安装
- 项目已 `pnpm install`
## 完整启动流程
### Step 0: 环境清理(重要!)
每次运行测试前,建议先清理环境,避免残留状态导致问题。
```bash
# 0.1 确保 Docker Desktop 正在运行
# 如果未运行,请先启动 Docker Desktop
# 0.2 清理旧的 PostgreSQL 容器
docker stop postgres-e2e 2> /dev/null
docker rm postgres-e2e 2> /dev/null
# 0.3 清理占用的端口
lsof -ti:3006 | xargs kill -9 2> /dev/null # Next.js 服务器端口
lsof -ti:5433 | xargs kill -9 2> /dev/null # PostgreSQL 端口
```
### Step 1: 启动数据库
```bash
# 启动 PostgreSQL (端口 5433)
docker run -d --name postgres-e2e \
-e POSTGRES_PASSWORD=postgres \
-p 5433:5432 \
paradedb/paradedb:latest
# 等待数据库就绪
until docker exec postgres-e2e pg_isready; do sleep 2; done
echo "PostgreSQL is ready!"
```
### Step 2: 运行数据库迁移
```bash
# 在项目根目录运行
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
bun run db:migrate
```
### Step 3: 构建应用(首次或代码变更后)
```bash
# 在项目根目录运行
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
BETTER_AUTH_SECRET=e2e-test-secret-key-for-better-auth-32chars! \
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 \
SKIP_LINT=1 \
bun run build
```
### Step 4: 启动应用服务器
**重要**: 必须在**项目根目录**运行,不能在 e2e 目录运行!
```bash
# 在项目根目录运行(注意:不是 e2e 目录)
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
BETTER_AUTH_SECRET=e2e-test-secret-key-for-better-auth-32chars! \
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 \
NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION=0 \
S3_ACCESS_KEY_ID=e2e-mock-access-key \
S3_SECRET_ACCESS_KEY=e2e-mock-secret-key \
S3_BUCKET=e2e-mock-bucket \
S3_ENDPOINT=https://e2e-mock-s3.localhost \
bunx next start -p 3006
```
### Step 5: 等待服务器就绪
```bash
# 在另一个终端运行,确认服务器已启动
until curl -s http://localhost:3006 > /dev/null; do
sleep 2
echo "Waiting..."
done
echo "Server is ready!"
```
### Step 6: 运行测试
```bash
# 在 e2e 目录运行测试
cd e2e
# 运行特定标签(默认无头模式)
BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js --tags "@conversation"
# 运行所有测试
BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js
# 调试模式(显示浏览器,观察执行过程)
HEADLESS=false \
BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js --tags "@conversation"
```
## 一键启动脚本
### 完整初始化(首次运行或需要重建)
在项目根目录创建 `e2e-init.sh`
```bash
#!/bin/bash
set -e
echo "🧹 Step 0: Cleaning up..."
docker stop postgres-e2e 2> /dev/null || true
docker rm postgres-e2e 2> /dev/null || true
lsof -ti:3006 | xargs kill -9 2> /dev/null || true
lsof -ti:5433 | xargs kill -9 2> /dev/null || true
echo "🐘 Step 1: Starting PostgreSQL..."
docker run -d --name postgres-e2e \
-e POSTGRES_PASSWORD=postgres \
-p 5433:5432 \
paradedb/paradedb:latest
echo "⏳ Waiting for PostgreSQL..."
until docker exec postgres-e2e pg_isready 2> /dev/null; do sleep 2; done
echo "✅ PostgreSQL is ready!"
echo "🔄 Step 2: Running migrations..."
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
bun run db:migrate
echo "🔨 Step 3: Building application..."
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
BETTER_AUTH_SECRET=e2e-test-secret-key-for-better-auth-32chars! \
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 \
SKIP_LINT=1 \
bun run build
echo "✅ Initialization complete! Now run e2e-start.sh to start the server."
```
### 快速启动服务器
在项目根目录创建 `e2e-start.sh`
```bash
#!/bin/bash
set -e
echo "🧹 Cleaning up ports..."
lsof -ti:3006 | xargs kill -9 2> /dev/null || true
echo "🚀 Starting Next.js server on port 3006..."
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
BETTER_AUTH_SECRET=e2e-test-secret-key-for-better-auth-32chars! \
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 \
NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION=0 \
S3_ACCESS_KEY_ID=e2e-mock-access-key \
S3_SECRET_ACCESS_KEY=e2e-mock-secret-key \
S3_BUCKET=e2e-mock-bucket \
S3_ENDPOINT=https://e2e-mock-s3.localhost \
bunx next start -p 3006
```
### 运行测试
在 e2e 目录创建 `run-test.sh`
```bash
#!/bin/bash
# 默认参数
TAGS="${1:-@journey}"
HEADLESS="${HEADLESS:-true}" # 默认无头模式
echo "🧪 Running E2E tests with tags: $TAGS"
echo " Headless: $HEADLESS"
HEADLESS=$HEADLESS \
BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js --tags "$TAGS"
```
使用方式:
```bash
# 运行特定标签(默认无头模式)
./run-test.sh "@conversation"
# 调试模式(显示浏览器)
HEADLESS=false ./run-test.sh "@conversation"
```
## 快速启动(假设数据库和构建已完成)
```bash
# Terminal 1: 启动服务器(项目根目录)
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
DATABASE_DRIVER=node \
KEY_VAULTS_SECRET=LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s= \
BETTER_AUTH_SECRET=e2e-test-secret-key-for-better-auth-32chars! \
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1 \
NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION=0 \
S3_ACCESS_KEY_ID=e2e-mock-access-key \
S3_SECRET_ACCESS_KEY=e2e-mock-secret-key \
S3_BUCKET=e2e-mock-bucket \
S3_ENDPOINT=https://e2e-mock-s3.localhost \
bunx next start -p 3006
# Terminal 2: 运行测试(e2e 目录,默认无头模式)
cd e2e
BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js --tags "@conversation"
# 调试模式(显示浏览器)
HEADLESS=false BASE_URL=http://localhost:3006 \
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres \
pnpm exec cucumber-js --config cucumber.config.js --tags "@conversation"
```
## 环境变量参考
### 测试运行时环境变量
| 变量 | 值 | 说明 |
| -------------- | -------------------------------------------------------- | --------------------------------------------------- |
| `BASE_URL` | `http://localhost:3006` | 测试服务器地址 |
| `DATABASE_URL` | `postgresql://postgres:postgres@localhost:5433/postgres` | 数据库连接 |
| `HEADLESS` | `true`(默认)/`false` | 是否无头模式运行浏览器,设为 `false` 可观察执行过程 |
### 服务器启动环境变量(全部必需)
| 变量 | 值 | 说明 |
| ------------------------------------- | -------------------------------------------------------- | ---------------- |
| `DATABASE_URL` | `postgresql://postgres:postgres@localhost:5433/postgres` | 数据库连接 |
| `DATABASE_DRIVER` | `node` | 数据库驱动 |
| `KEY_VAULTS_SECRET` | `LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=` | 密钥保险库密钥 |
| `BETTER_AUTH_SECRET` | `e2e-test-secret-key-for-better-auth-32chars!` | 认证密钥 |
| `NEXT_PUBLIC_ENABLE_BETTER_AUTH` | `1` | 启用 Better Auth |
| `NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION` | `0` | 禁用邮箱验证 |
### S3 Mock 变量(必需!)
| 变量 | 值 |
| ---------------------- | ------------------------------- |
| `S3_ACCESS_KEY_ID` | `e2e-mock-access-key` |
| `S3_SECRET_ACCESS_KEY` | `e2e-mock-secret-key` |
| `S3_BUCKET` | `e2e-mock-bucket` |
| `S3_ENDPOINT` | `https://e2e-mock-s3.localhost` |
**注意**: S3 环境变量是**必需**的,即使不测试文件上传功能。缺少这些变量会导致发送消息时报错 "S3 environment variables are not set completely"。
## 常见问题排查
### Docker daemon is not running
**症状**: `Cannot connect to the Docker daemon`
**解决**: 启动 Docker Desktop 应用
### PostgreSQL 容器已存在
**症状**: `docker: Error response from daemon: Conflict. The container name "/postgres-e2e" is already in use`
**解决**:
```bash
docker stop postgres-e2e
docker rm postgres-e2e
```
### S3 environment variables are not set completely
**原因**: 服务器启动时缺少 S3 环境变量
**解决**: 启动服务器时必须设置所有 S3 mock 变量
### Cannot find module './src/libs/next/config/define-config'
**原因**: 在 e2e 目录下运行 `next start`
**解决**: 必须在**项目根目录**运行 `bunx next start`,不能在 e2e 目录运行
### EADDRINUSE: address already in use
**原因**: 端口被占用
**解决**:
```bash
# 查找并杀掉占用端口的进程
lsof -ti:3006 | xargs kill -9
lsof -ti:5433 | xargs kill -9
```
### BeforeAll hook errored: net::ERR_CONNECTION_REFUSED
**原因**: 服务器未启动或未就绪
**解决**:
1. 确认服务器已启动:`curl http://localhost:3006`
2. 确认 `BASE_URL` 环境变量设置正确
3. 等待服务器完全就绪后再运行测试
### 测试超时或不稳定
**可能原因**:
1. 网络延迟
2. 服务器响应慢
3. 元素定位问题
**解决**:
1. 使用 `HEADLESS=false` 观察测试执行过程
2. 检查 `screenshots/` 目录中的失败截图
3. 增加等待时间或使用更稳定的定位器
## 清理环境
测试完成后,清理环境:
```bash
# 停止服务器
lsof -ti:3006 | xargs kill -9
# 停止并删除 PostgreSQL 容器
docker stop postgres-e2e
docker rm postgres-e2e
```
+124
View File
@@ -0,0 +1,124 @@
# 测试技巧
## 页面元素定位
### 富文本编辑器 (contenteditable) 输入
LobeHub 使用 `@lobehub/editor` 作为聊天输入框,是一个 contenteditable 的富文本编辑器。
**关键点**:
1. 不能直接用 `locator.fill()` - 对 contenteditable 不生效
2. 需要先 click 容器让编辑器获得焦点
3. 使用 `keyboard.type()` 输入文本
```typescript
// 正确的输入方式
await chatInputContainer.click();
await this.page.waitForTimeout(500); // 等待焦点
await this.page.keyboard.type(message, { delay: 30 });
await this.page.keyboard.press('Enter'); // 发送
```
### 添加 data-testid
为了更可靠的元素定位,可以在组件上添加 `data-testid`
```tsx
// src/features/ChatInput/Desktop/index.tsx
<ChatInput
data-testid="chat-input"
...
/>
```
## 调试技巧
### 添加步骤日志
在每个关键步骤添加 console.log,帮助定位问题:
```typescript
Given('用户进入页面', async function (this: CustomWorld) {
console.log(' 📍 Step: 导航到首页...');
await this.page.goto('/');
console.log(' 📍 Step: 查找元素...');
const element = this.page.locator('...');
console.log(' ✅ 步骤完成');
});
```
### 查看失败截图
测试失败时会自动保存截图到 `e2e/screenshots/` 目录。
### 非 headless 模式
设置 `HEADLESS=false` 可以看到浏览器操作:
```bash
HEADLESS=false pnpm exec cucumber-js --config cucumber.config.js --tags "@smoke"
```
## 常见问题
### waitForLoadState ('networkidle') 超时
**原因**: `networkidle` 表示 500ms 内没有网络请求。在 CI 环境中,由于分析脚本、外部资源加载、轮询等持续网络活动,这个状态可能永远无法达到。
**错误示例**:
```
page.waitForLoadState: Timeout 10000ms exceeded.
=========================== logs ===========================
"load" event fired
============================================================
```
**解决**:
- **避免使用 `networkidle`** - 这是不可靠的等待策略
- **直接等待目标元素** - 使用 `expect(element).toBeVisible({ timeout: 30_000 })` 替代
- 如果必须等待页面加载完成,使用 `domcontentloaded``load` 事件
```typescript
// ❌ 不推荐 - networkidle 在 CI 中容易超时
await this.page.waitForLoadState('networkidle', { timeout: 10_000 });
const element = this.page.locator('[data-testid="my-element"]');
await expect(element).toBeVisible();
// ✅ 推荐 - 直接等待目标元素
const element = this.page.locator('[data-testid="my-element"]');
await expect(element).toBeVisible({ timeout: 30_000 });
```
### 测试超时 (function timed out)
**原因**: 元素定位失败或等待时间不足
**解决**:
- 检查选择器是否正确
- 增加 timeout 参数
- 添加显式等待 `waitForTimeout()`
### strict mode violation (多个元素匹配)
**原因**: 选择器匹配到多个元素(如 desktop/mobile 双组件)
**解决**:
- 使用 `.first()``.nth(n)`
- 使用 `boundingBox()` 过滤可见元素
### 输入框内容为空
**原因**: contenteditable 编辑器的特殊性
**解决**:
- 先 click 容器确保焦点
- 使用 `keyboard.type()` 而非 `fill()`
- 添加适当的等待时间
+4
View File
@@ -4,7 +4,9 @@
"private": true,
"description": "E2E tests for LobeChat using Cucumber and Playwright",
"scripts": {
"build": "cd .. && bun run build",
"test": "cucumber-js --config cucumber.config.js",
"test:ci": "bun run build && bun run test",
"test:discover": "cucumber-js --config cucumber.config.js src/features/discover/",
"test:headed": "HEADLESS=false cucumber-js --config cucumber.config.js",
"test:routes": "cucumber-js --config cucumber.config.js --tags '@routes'",
@@ -14,6 +16,8 @@
"dependencies": {
"@cucumber/cucumber": "^12.2.0",
"@playwright/test": "^1.57.0",
"bcryptjs": "^3.0.3",
"pg": "^8.16.0",
"playwright": "^1.57.0"
},
"devDependencies": {
@@ -11,7 +11,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-001 @P1
Scenario: Load assistant detail page and verify content
Given I navigate to "/discover/assistant"
Given I navigate to "/community/assistant"
And I wait for the page to fully load
When I click on the first assistant card
Then I should be on an assistant detail page
@@ -22,7 +22,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-002 @P1
Scenario: Navigate back from assistant detail page
Given I navigate to "/discover/assistant"
Given I navigate to "/community/assistant"
And I wait for the page to fully load
And I click on the first assistant card
When I click the back button
@@ -34,7 +34,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-003 @P1
Scenario: Load model detail page and verify content
Given I navigate to "/discover/model"
Given I navigate to "/community/model"
And I wait for the page to fully load
When I click on the first model card
Then I should be on a model detail page
@@ -44,7 +44,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-004 @P1
Scenario: Navigate back from model detail page
Given I navigate to "/discover/model"
Given I navigate to "/community/model"
And I wait for the page to fully load
And I click on the first model card
When I click the back button
@@ -56,7 +56,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-005 @P1
Scenario: Load provider detail page and verify content
Given I navigate to "/discover/provider"
Given I navigate to "/community/provider"
And I wait for the page to fully load
When I click on the first provider card
Then I should be on a provider detail page
@@ -66,7 +66,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-006 @P1
Scenario: Navigate back from provider detail page
Given I navigate to "/discover/provider"
Given I navigate to "/community/provider"
And I wait for the page to fully load
And I click on the first provider card
When I click the back button
@@ -78,7 +78,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-007 @P1
Scenario: Load MCP detail page and verify content
Given I navigate to "/discover/mcp"
Given I navigate to "/community/mcp"
And I wait for the page to fully load
When I click on the first MCP card
Then I should be on an MCP detail page
@@ -88,7 +88,7 @@ Feature: Discover Detail Pages
@DISCOVER-DETAIL-008 @P1
Scenario: Navigate back from MCP detail page
Given I navigate to "/discover/mcp"
Given I navigate to "/community/mcp"
And I wait for the page to fully load
And I click on the first MCP card
When I click the back button
+14 -14
View File
@@ -11,14 +11,14 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-001 @P1
Scenario: Search for assistants
Given I navigate to "/discover/assistant"
Given I navigate to "/community/assistant"
When I type "developer" in the search bar
And I wait for the search results to load
Then I should see filtered assistant cards
@DISCOVER-INTERACT-002 @P1
Scenario: Filter assistants by category
Given I navigate to "/discover/assistant"
Given I navigate to "/community/assistant"
When I click on a category in the category menu
And I wait for the filtered results to load
Then I should see assistant cards filtered by the selected category
@@ -26,7 +26,7 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-003 @P1
Scenario: Navigate to next page of assistants
Given I navigate to "/discover/assistant"
Given I navigate to "/community/assistant"
When I click the next page button
And I wait for the next page to load
Then I should see different assistant cards
@@ -34,7 +34,7 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-004 @P1
Scenario: Navigate to assistant detail page
Given I navigate to "/discover/assistant"
Given I navigate to "/community/assistant"
When I click on the first assistant card
Then I should be navigated to the assistant detail page
And I should see the assistant detail content
@@ -45,7 +45,7 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-005 @P1
Scenario: Sort models
Given I navigate to "/discover/model"
Given I navigate to "/community/model"
When I click on the sort dropdown
And I select a sort option
And I wait for the sorted results to load
@@ -53,7 +53,7 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-006 @P1
Scenario: Navigate to model detail page
Given I navigate to "/discover/model"
Given I navigate to "/community/model"
When I click on the first model card
Then I should be navigated to the model detail page
And I should see the model detail content
@@ -64,7 +64,7 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-007 @P1
Scenario: Navigate to provider detail page
Given I navigate to "/discover/provider"
Given I navigate to "/community/provider"
When I click on the first provider card
Then I should be navigated to the provider detail page
And I should see the provider detail content
@@ -75,14 +75,14 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-008 @P1
Scenario: Filter MCP tools by category
Given I navigate to "/discover/mcp"
Given I navigate to "/community/mcp"
When I click on a category in the category filter
And I wait for the filtered results to load
Then I should see MCP cards filtered by the selected category
@DISCOVER-INTERACT-009 @P1
Scenario: Navigate to MCP detail page
Given I navigate to "/discover/mcp"
Given I navigate to "/community/mcp"
When I click on the first MCP card
Then I should be navigated to the MCP detail page
And I should see the MCP detail content
@@ -93,21 +93,21 @@ Feature: Discover Interactions
@DISCOVER-INTERACT-010 @P1
Scenario: Navigate from home to assistant list
Given I navigate to "/discover"
Given I navigate to "/community"
When I click on the "more" link in the featured assistants section
Then I should be navigated to "/discover/assistant"
Then I should be navigated to "/community/assistant"
And I should see the page body
@DISCOVER-INTERACT-011 @P1
Scenario: Navigate from home to MCP list
Given I navigate to "/discover"
Given I navigate to "/community"
When I click on the "more" link in the featured MCP tools section
Then I should be navigated to "/discover/mcp"
Then I should be navigated to "/community/mcp"
And I should see the page body
@DISCOVER-INTERACT-012 @P1
Scenario: Click featured assistant from home
Given I navigate to "/discover"
Given I navigate to "/community"
When I click on the first featured assistant card
Then I should be navigated to the assistant detail page
And I should see the assistant detail content
+8 -8
View File
@@ -1,10 +1,10 @@
@discover @smoke
Feature: Discover Smoke Tests
Critical path tests to ensure the discover module is functional
Feature: Community Smoke Tests
Critical path tests to ensure the community/discover module is functional
@DISCOVER-SMOKE-001 @P0
Scenario: Load Discover Home Page
Given I navigate to "/discover"
Scenario: Load Community Home Page
Given I navigate to "/community"
Then the page should load without errors
And I should see the page body
And I should see the featured assistants section
@@ -12,7 +12,7 @@ Feature: Discover Smoke Tests
@DISCOVER-SMOKE-002 @P0
Scenario: Load Assistant List Page
Given I navigate to "/discover/assistant"
Given I navigate to "/community/assistant"
Then the page should load without errors
And I should see the page body
And I should see the search bar
@@ -22,7 +22,7 @@ Feature: Discover Smoke Tests
@DISCOVER-SMOKE-003 @P0
Scenario: Load Model List Page
Given I navigate to "/discover/model"
Given I navigate to "/community/model"
Then the page should load without errors
And I should see the page body
And I should see model cards
@@ -30,14 +30,14 @@ Feature: Discover Smoke Tests
@DISCOVER-SMOKE-004 @P0
Scenario: Load Provider List Page
Given I navigate to "/discover/provider"
Given I navigate to "/community/provider"
Then the page should load without errors
And I should see the page body
And I should see provider cards
@DISCOVER-SMOKE-005 @P0
Scenario: Load MCP List Page
Given I navigate to "/discover/mcp"
Given I navigate to "/community/mcp"
Then the page should load without errors
And I should see the page body
And I should see MCP cards
@@ -0,0 +1,45 @@
@journey @agent @conversation-mgmt
Feature: Agent 对话管理用户体验链路
Background:
Given
And Lobe AI
@AGENT-CONV-001 @P0
Scenario: 创建新对话
Given
When
Then
And
@AGENT-CONV-002 @P0
Scenario: 切换不同对话
Given
When
Then
And
@AGENT-CONV-003 @P0
Scenario: 重命名对话
Given
When
And
And ""
Then ""
@AGENT-CONV-004 @P0
Scenario: 删除对话
Given
When
And
And
Then
And
@AGENT-CONV-005 @P1
Scenario: 搜索历史对话
Given
When ""
Then ""
And
@@ -0,0 +1,13 @@
@journey @agent @conversation
Feature: Agent 对话用户体验链路
AI
Background:
Given
@AGENT-CHAT-001 @P0 @smoke
Scenario: 使用 Lobe AI 发送消息并获得回复
Given Lobe AI
When "hello"
Then
And
@@ -0,0 +1,36 @@
@journey @agent @message-ops
Feature: Agent 消息操作用户体验链路
Background:
Given
And Lobe AI
And "hello"
@AGENT-MSG-001 @P1
Scenario: 复制消息内容
When
Then
@AGENT-MSG-002 @P1
Scenario: 编辑助手消息
When
And ""
And
Then ""
@AGENT-MSG-003 @P1
Scenario: 删除单条消息
When
And
And
Then
@AGENT-MSG-004 @P1
Scenario: 折叠和展开消息
When
And
Then
When
And
Then
+212
View File
@@ -0,0 +1,212 @@
/**
* Mock data for Discover/Community module
*/
import type {
AssistantListResponse,
McpListResponse,
ModelListResponse,
ProviderListResponse,
} from './types';
// ============================================
// Assistant Mock Data
// ============================================
export const mockAssistantList: AssistantListResponse = {
items: [
{
author: 'LobeHub',
avatar: '🤖',
backgroundColor: '#1890ff',
category: 'general',
createdAt: '2024-01-01T00:00:00.000Z',
description: 'A versatile AI assistant for general tasks and conversations.',
identifier: 'general-assistant',
installCount: 1000,
knowledgeCount: 5,
pluginCount: 3,
title: 'General Assistant',
tokenUsage: 4096,
userName: 'lobehub',
},
{
author: 'LobeHub',
avatar: '💻',
backgroundColor: '#52c41a',
category: 'programming',
createdAt: '2024-01-02T00:00:00.000Z',
description: 'Expert coding assistant for software development.',
identifier: 'code-assistant',
installCount: 800,
knowledgeCount: 10,
pluginCount: 5,
title: 'Code Assistant',
tokenUsage: 8192,
userName: 'lobehub',
},
{
author: 'LobeHub',
avatar: '✍️',
backgroundColor: '#722ed1',
category: 'copywriting',
createdAt: '2024-01-03T00:00:00.000Z',
description: 'Professional writing assistant for content creation.',
identifier: 'writing-assistant',
installCount: 600,
knowledgeCount: 3,
pluginCount: 2,
title: 'Writing Assistant',
tokenUsage: 4096,
userName: 'lobehub',
},
],
pagination: {
page: 1,
pageSize: 12,
total: 3,
totalPages: 1,
},
};
export const mockAssistantCategories = [
{ id: 'general', name: 'General' },
{ id: 'programming', name: 'Programming' },
{ id: 'copywriting', name: 'Copywriting' },
{ id: 'education', name: 'Education' },
];
// ============================================
// Model Mock Data
// ============================================
export const mockModelList: ModelListResponse = {
items: [
{
abilities: { functionCall: true, reasoning: true, vision: true },
contextWindowTokens: 128_000,
createdAt: '2024-01-01T00:00:00.000Z',
description: 'Most capable model for complex tasks',
displayName: 'GPT-4o',
id: 'gpt-4o',
providerId: 'openai',
providerName: 'OpenAI',
type: 'chat',
},
{
abilities: { functionCall: true, reasoning: true, vision: false },
contextWindowTokens: 200_000,
createdAt: '2024-01-02T00:00:00.000Z',
description: 'Advanced AI assistant by Anthropic',
displayName: 'Claude 3.5 Sonnet',
id: 'claude-3-5-sonnet-20241022',
providerId: 'anthropic',
providerName: 'Anthropic',
type: 'chat',
},
{
abilities: { functionCall: false, reasoning: false, vision: false },
contextWindowTokens: 32_768,
createdAt: '2024-01-03T00:00:00.000Z',
description: 'Open source language model',
displayName: 'Llama 3.1 70B',
id: 'llama-3.1-70b',
providerId: 'meta',
providerName: 'Meta',
type: 'chat',
},
],
pagination: {
page: 1,
pageSize: 12,
total: 3,
totalPages: 1,
},
};
// ============================================
// Provider Mock Data
// ============================================
export const mockProviderList: ProviderListResponse = {
items: [
{
description: 'Leading AI research company',
id: 'openai',
logo: 'https://example.com/openai.png',
modelCount: 10,
name: 'OpenAI',
},
{
description: 'AI safety focused research company',
id: 'anthropic',
logo: 'https://example.com/anthropic.png',
modelCount: 5,
name: 'Anthropic',
},
{
description: 'Open source AI leader',
id: 'meta',
logo: 'https://example.com/meta.png',
modelCount: 8,
name: 'Meta',
},
],
pagination: {
page: 1,
pageSize: 12,
total: 3,
totalPages: 1,
},
};
// ============================================
// MCP Mock Data
// ============================================
export const mockMcpList: McpListResponse = {
items: [
{
author: 'LobeHub',
avatar: '🔍',
category: 'search',
createdAt: '2024-01-01T00:00:00.000Z',
description: 'Web search capabilities for AI assistants',
identifier: 'web-search',
installCount: 500,
title: 'Web Search',
},
{
author: 'LobeHub',
avatar: '📁',
category: 'file',
createdAt: '2024-01-02T00:00:00.000Z',
description: 'File system operations and management',
identifier: 'file-manager',
installCount: 300,
title: 'File Manager',
},
{
author: 'LobeHub',
avatar: '🗄️',
category: 'database',
createdAt: '2024-01-03T00:00:00.000Z',
description: 'Database query and management tools',
identifier: 'db-tools',
installCount: 200,
title: 'Database Tools',
},
],
pagination: {
page: 1,
pageSize: 12,
total: 3,
totalPages: 1,
},
};
export const mockMcpCategories = [
{ id: 'search', name: 'Search' },
{ id: 'file', name: 'File' },
{ id: 'database', name: 'Database' },
{ id: 'utility', name: 'Utility' },
];
+179
View File
@@ -0,0 +1,179 @@
/**
* Mock handlers for Discover/Community API endpoints
*/
import type { Route } from 'playwright';
import { type MockHandler, createTrpcResponse } from '../index';
import {
mockAssistantCategories,
mockAssistantList,
mockMcpCategories,
mockMcpList,
mockModelList,
mockProviderList,
} from './data';
// ============================================
// Helper to parse tRPC batch requests
// ============================================
function parseTrpcUrl(url: string): { input?: Record<string, unknown>; procedure: string } {
const urlObj = new URL(url);
const pathname = urlObj.pathname;
// Extract procedure name from path like /trpc/lambda.market.getAssistantList
const procedureMatch = pathname.match(/lambda\.market\.(\w+)/);
const procedure = procedureMatch ? procedureMatch[1] : '';
// Parse input from query string
let input: Record<string, unknown> | undefined;
const inputParam = urlObj.searchParams.get('input');
if (inputParam) {
try {
input = JSON.parse(inputParam);
} catch {
// Ignore parse errors
}
}
return { input, procedure };
}
// ============================================
// Mock Handlers
// ============================================
/**
* Handler for assistant list endpoint
*/
const assistantListHandler: MockHandler = {
handler: async (route: Route) => {
await route.fulfill({
body: createTrpcResponse(mockAssistantList),
contentType: 'application/json',
status: 200,
});
},
pattern: '**/trpc/lambda/market.getAssistantList**',
};
/**
* Handler for assistant categories endpoint
*/
const assistantCategoriesHandler: MockHandler = {
handler: async (route: Route) => {
await route.fulfill({
body: createTrpcResponse(mockAssistantCategories),
contentType: 'application/json',
status: 200,
});
},
pattern: '**/trpc/lambda/market.getAssistantCategories**',
};
/**
* Handler for model list endpoint
*/
const modelListHandler: MockHandler = {
handler: async (route: Route) => {
await route.fulfill({
body: createTrpcResponse(mockModelList),
contentType: 'application/json',
status: 200,
});
},
pattern: '**/trpc/lambda/market.getModelList**',
};
/**
* Handler for provider list endpoint
*/
const providerListHandler: MockHandler = {
handler: async (route: Route) => {
await route.fulfill({
body: createTrpcResponse(mockProviderList),
contentType: 'application/json',
status: 200,
});
},
pattern: '**/trpc/lambda/market.getProviderList**',
};
/**
* Handler for MCP list endpoint
*/
const mcpListHandler: MockHandler = {
handler: async (route: Route) => {
await route.fulfill({
body: createTrpcResponse(mockMcpList),
contentType: 'application/json',
status: 200,
});
},
pattern: '**/trpc/lambda/market.getMcpList**',
};
/**
* Handler for MCP categories endpoint
*/
const mcpCategoriesHandler: MockHandler = {
handler: async (route: Route) => {
await route.fulfill({
body: createTrpcResponse(mockMcpCategories),
contentType: 'application/json',
status: 200,
});
},
pattern: '**/trpc/lambda/market.getMcpCategories**',
};
/**
* Debug handler to log all trpc requests
*/
const trpcDebugHandler: MockHandler = {
handler: async (route: Route) => {
const url = route.request().url();
console.log(` 🔍 TRPC Request: ${url}`);
await route.continue();
},
pattern: '**/trpc/**',
};
/**
* Fallback handler for any unhandled market endpoints
* Returns empty data to prevent hanging requests
*/
const marketFallbackHandler: MockHandler = {
handler: async (route: Route) => {
const url = route.request().url();
const { procedure } = parseTrpcUrl(url);
console.log(` ⚠️ Unhandled market endpoint: ${procedure}`);
// Return empty response to prevent timeout
await route.fulfill({
body: createTrpcResponse({ items: [], pagination: { page: 1, pageSize: 12, total: 0 } }),
contentType: 'application/json',
status: 200,
});
},
pattern: '**/trpc/lambda/market.**',
};
// ============================================
// Export all handlers
// ============================================
export const discoverHandlers: MockHandler[] = [
// Debug handler first to log all requests
trpcDebugHandler,
// Specific handlers (order matters - more specific first)
assistantListHandler,
assistantCategoriesHandler,
modelListHandler,
providerListHandler,
mcpListHandler,
mcpCategoriesHandler,
// Fallback handler (should be last)
marketFallbackHandler,
];
+7
View File
@@ -0,0 +1,7 @@
/**
* Discover/Community module mocks
*/
export * from './data';
export { discoverHandlers as discoverMocks } from './handlers';
export * from './types';
+98
View File
@@ -0,0 +1,98 @@
/**
* Type definitions for Discover mock data
* These mirror the actual types from the application
*/
export interface PaginationInfo {
page: number;
pageSize: number;
total: number;
totalPages: number;
}
// ============================================
// Assistant Types
// ============================================
export interface DiscoverAssistantItem {
author: string;
avatar: string;
backgroundColor?: string;
category: string;
createdAt: string;
description: string;
identifier: string;
installCount?: number;
knowledgeCount?: number;
pluginCount?: number;
title: string;
tokenUsage?: number;
userName?: string;
}
export interface AssistantListResponse {
items: DiscoverAssistantItem[];
pagination: PaginationInfo;
}
// ============================================
// Model Types
// ============================================
export interface DiscoverModelItem {
abilities: {
functionCall?: boolean;
reasoning?: boolean;
vision?: boolean;
};
contextWindowTokens: number;
createdAt: string;
description: string;
displayName: string;
id: string;
providerId: string;
providerName: string;
type: string;
}
export interface ModelListResponse {
items: DiscoverModelItem[];
pagination: PaginationInfo;
}
// ============================================
// Provider Types
// ============================================
export interface DiscoverProviderItem {
description: string;
id: string;
logo?: string;
modelCount: number;
name: string;
}
export interface ProviderListResponse {
items: DiscoverProviderItem[];
pagination: PaginationInfo;
}
// ============================================
// MCP Types
// ============================================
export interface DiscoverMcpItem {
author: string;
avatar: string;
category: string;
createdAt: string;
description: string;
identifier: string;
installCount?: number;
title: string;
}
export interface McpListResponse {
items: DiscoverMcpItem[];
pagination: PaginationInfo;
}
+158
View File
@@ -0,0 +1,158 @@
/**
* E2E Mock Framework
*
* This module provides a centralized way to mock API responses in E2E tests.
* It uses Playwright's route interception to mock tRPC and REST API calls.
*/
import type { Page, Route } from 'playwright';
import { discoverMocks } from './discover';
// ============================================
// Types
// ============================================
export interface MockHandler {
/** Optional: only apply this mock when condition is true */
enabled?: boolean;
/** Handler function to process the request */
handler: (route: Route, request: Request) => Promise<void>;
/** URL pattern to match (supports wildcards) */
pattern: string | RegExp;
}
export interface MockConfig {
/** Enable/disable all mocks globally */
enabled: boolean;
/** Mock handlers grouped by domain */
handlers: Record<string, MockHandler[]>;
}
// ============================================
// Default Configuration
// ============================================
const defaultConfig: MockConfig = {
enabled: true,
handlers: {
discover: discoverMocks,
// Add more domains here as needed:
// user: userMocks,
// chat: chatMocks,
},
};
// ============================================
// Mock Manager
// ============================================
export class MockManager {
private config: MockConfig;
private page: Page | null = null;
constructor(config: Partial<MockConfig> = {}) {
this.config = { ...defaultConfig, ...config };
}
/**
* Setup all mock handlers for a page
*/
async setup(page: Page): Promise<void> {
this.page = page;
if (!this.config.enabled) {
console.log('🔇 Mocks disabled');
return;
}
console.log('🎭 Setting up API mocks...');
for (const [domain, handlers] of Object.entries(this.config.handlers)) {
for (const mock of handlers) {
if (mock.enabled === false) continue;
await page.route(mock.pattern, async (route) => {
try {
await mock.handler(route, route.request() as unknown as Request);
} catch (error) {
console.error(`Mock handler error for ${mock.pattern}:`, error);
await route.continue();
}
});
}
console.log(`${domain} mocks registered`);
}
}
/**
* Disable a specific mock domain
*/
disableDomain(domain: string): void {
if (this.config.handlers[domain]) {
for (const handler of this.config.handlers[domain]) {
handler.enabled = false;
}
}
}
/**
* Enable a specific mock domain
*/
enableDomain(domain: string): void {
if (this.config.handlers[domain]) {
for (const handler of this.config.handlers[domain]) {
handler.enabled = true;
}
}
}
/**
* Add custom mock handlers at runtime
*/
addHandlers(domain: string, handlers: MockHandler[]): void {
if (!this.config.handlers[domain]) {
this.config.handlers[domain] = [];
}
this.config.handlers[domain].push(...handlers);
}
}
// ============================================
// Helper Functions
// ============================================
/**
* Create a JSON response for tRPC endpoints
*/
export function createTrpcResponse<T>(data: T): string {
return JSON.stringify({
result: {
data,
},
});
}
/**
* Create an error response for tRPC endpoints
*/
export function createTrpcError(message: string, code = 'INTERNAL_SERVER_ERROR'): string {
return JSON.stringify({
error: {
code,
message,
},
});
}
/**
* Create a standard JSON response
*/
export function createJsonResponse<T>(data: T): string {
return JSON.stringify(data);
}
// ============================================
// Singleton Instance
// ============================================
export const mockManager = new MockManager();
+245
View File
@@ -0,0 +1,245 @@
/**
* LLM Mock Framework
*
* Intercepts /webapi/chat/[provider] requests and returns mock SSE responses.
* This allows E2E tests to run without real LLM API calls.
*/
import type { Page, Route } from 'playwright';
// ============================================
// Types
// ============================================
export interface LLMMockConfig {
/** Default response content when no specific mock is set */
defaultResponse: string;
/** Whether to enable LLM mocking */
enabled: boolean;
/** Response delay in ms (simulates network latency) */
responseDelay: number;
/** Chunk size for streaming (characters per chunk) */
streamChunkSize: number;
/** Delay between chunks in ms */
streamDelay: number;
}
export interface ChatMessage {
content: string;
role: 'user' | 'assistant' | 'system';
}
// ============================================
// Default Configuration
// ============================================
const defaultConfig: LLMMockConfig = {
defaultResponse: 'Hello! I am a mock AI assistant. How can I help you today?',
enabled: true,
responseDelay: 100,
streamChunkSize: 10,
streamDelay: 20,
};
// ============================================
// SSE Response Builder
// ============================================
/**
* Build SSE formatted response chunks
* Follows LobeChat's actual streaming format
*/
function buildSSEChunks(content: string, chunkSize: number): string[] {
const chunks: string[] = [];
const id = `msg_mock_${Date.now()}`;
// Initial message data
const initialData = {
content: [],
id,
model: 'gpt-4o-mini',
role: 'assistant',
stop_reason: null,
stop_sequence: null,
type: 'message',
usage: { input_tokens: 10, output_tokens: 0 },
};
chunks.push(`id: ${id}\nevent: data\ndata: ${JSON.stringify(initialData)}\n\n`);
// Split content into chunks and send as text events
for (let i = 0; i < content.length; i += chunkSize) {
const chunk = content.slice(i, i + chunkSize);
chunks.push(`id: ${id}\nevent: text\ndata: "${chunk.replaceAll('"', '\\"')}"\n\n`);
}
// Stop event
chunks.push(`id: ${id}\nevent: stop\ndata: "end_turn"\n\n`);
// Usage event
const usageData = {
cost: 0.0001,
inputCacheMissTokens: 10,
inputCachedTokens: 0,
totalInputTokens: 10,
totalOutputTokens: Math.ceil(content.length / 4),
totalTokens: 10 + Math.ceil(content.length / 4),
};
chunks.push(
`id: ${id}\nevent: usage\ndata: ${JSON.stringify(usageData)}\n\n`,
`id: ${id}\nevent: stop\ndata: "message_stop"\n\n`,
);
return chunks;
}
// ============================================
// LLM Mock Manager
// ============================================
export class LLMMockManager {
private config: LLMMockConfig;
private customResponses: Map<string, string> = new Map();
private page: Page | null = null;
constructor(config: Partial<LLMMockConfig> = {}) {
this.config = { ...defaultConfig, ...config };
}
/**
* Set a custom response for a specific user message
*/
setResponse(userMessage: string, response: string): void {
this.customResponses.set(userMessage.toLowerCase().trim(), response);
}
/**
* Clear all custom responses
*/
clearResponses(): void {
this.customResponses.clear();
}
/**
* Get response for a user message
*/
private getResponse(messages: ChatMessage[]): string {
// Find the last user message
const lastUserMessage = [...messages].reverse().find((m) => m.role === 'user');
if (lastUserMessage) {
const key = lastUserMessage.content.toLowerCase().trim();
if (this.customResponses.has(key)) {
return this.customResponses.get(key)!;
}
}
return this.config.defaultResponse;
}
/**
* Setup LLM mock handlers for a page
*/
async setup(page: Page): Promise<void> {
this.page = page;
if (!this.config.enabled) {
console.log(' 🔇 LLM mocks disabled');
return;
}
// Intercept OpenAI chat API requests
await page.route('**/webapi/chat/openai**', async (route) => {
await this.handleChatRequest(route);
});
console.log(' ✓ LLM mocks registered (openai)');
}
/**
* Handle intercepted chat request
*/
private async handleChatRequest(route: Route): Promise<void> {
const request = route.request();
try {
// Parse request body
const body = request.postDataJSON();
const messages: ChatMessage[] = body?.messages || [];
console.log(` 🤖 LLM Request intercepted (${messages.length} messages)`);
// Get response content
const responseContent = this.getResponse(messages);
// Build SSE chunks
const chunks = buildSSEChunks(responseContent, this.config.streamChunkSize);
// Simulate initial delay
await new Promise((resolve) => {
setTimeout(resolve, this.config.responseDelay);
});
// Create streaming response
const stream = chunks.join('');
await route.fulfill({
body: stream,
headers: {
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'Content-Type': 'text/event-stream',
},
status: 200,
});
console.log(` ✅ LLM Response sent (${responseContent.length} chars)`);
} catch (error) {
console.error(' ❌ LLM Mock error:', error);
await route.fulfill({
body: JSON.stringify({ error: 'Mock error' }),
headers: { 'Content-Type': 'application/json' },
status: 500,
});
}
}
/**
* Disable LLM mocking
*/
disable(): void {
this.config.enabled = false;
}
/**
* Enable LLM mocking
*/
enable(): void {
this.config.enabled = true;
}
}
// ============================================
// Singleton Instance
// ============================================
export const llmMockManager = new LLMMockManager();
// ============================================
// Preset Responses
// ============================================
export const presetResponses = {
codeHelp: 'I can help you with coding! Please share the code you would like me to review.',
error: 'I apologize, but I encountered an error processing your request.',
greeting: 'Hello! I am Lobe AI, your AI assistant. How can I help you today?',
// Long response for stop generation test
longArticle:
'这是一篇很长的文章。第一段:人工智能是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器。第二段:人工智能研究的主要目标包括推理、知识、规划、学习、自然语言处理、感知和移动与操控物体的能力。第三段:目前,人工智能已经在许多领域取得了重大突破,包括图像识别、语音识别、自然语言处理等。',
// Multi-turn conversation responses
nameIntro: '好的,我记住了,你的名字是小明。很高兴认识你,小明!有什么我可以帮助你的吗?',
nameRecall: '你刚才说你的名字是小明。',
// Regenerate response
regenerated: '这是重新生成的回复内容。我是 Lobe AI,很高兴为你服务!',
};
@@ -0,0 +1,428 @@
/**
* Agent Conversation Management Steps
*
* Step definitions for Agent conversation management E2E tests
* - Create new conversation
* - Switch conversations
* - Rename conversation
* - Delete conversation
* - Search conversations
*/
import { Given, Then, When } from '@cucumber/cucumber';
import { expect } from '@playwright/test';
import { CustomWorld } from '../../support/world';
// ============================================
// Given Steps
// ============================================
Given('用户已有一个对话', async function (this: CustomWorld) {
console.log(' 📍 Step: 创建一个对话...');
// Send a message to create a conversation
const chatInputs = this.page.locator('[data-testid="chat-input"]');
const count = await chatInputs.count();
let chatInputContainer = chatInputs.first();
for (let i = 0; i < count; i++) {
const elem = chatInputs.nth(i);
const box = await elem.boundingBox();
if (box && box.width > 0 && box.height > 0) {
chatInputContainer = elem;
break;
}
}
await chatInputContainer.click();
await this.page.waitForTimeout(300);
await this.page.keyboard.type('hello', { delay: 30 });
await this.page.keyboard.press('Enter');
// Wait for response
await this.page.waitForTimeout(2000);
// Store the current conversation title for later reference
const topicItems = this.page.locator('.ant-menu-item, [class*="NavItem"]');
const topicCount = await topicItems.count();
console.log(` 📍 Found ${topicCount} topic items after creating conversation`);
console.log(' ✅ 已创建一个对话');
});
Given('用户有多个对话历史', async function (this: CustomWorld) {
console.log(' 📍 Step: 创建多个对话...');
// Create first conversation
const chatInputs = this.page.locator('[data-testid="chat-input"]');
let chatInputContainer = chatInputs.first();
const count = await chatInputs.count();
for (let i = 0; i < count; i++) {
const elem = chatInputs.nth(i);
const box = await elem.boundingBox();
if (box && box.width > 0 && box.height > 0) {
chatInputContainer = elem;
break;
}
}
// First conversation - use "测试" content for search test
await chatInputContainer.click();
await this.page.waitForTimeout(300);
await this.page.keyboard.type('测试对话内容', { delay: 30 });
await this.page.keyboard.press('Enter');
await this.page.waitForTimeout(2000);
// Store first conversation reference
this.testContext.firstConversation = 'first';
// Create new topic and second conversation
console.log(' 📍 Creating second conversation...');
const addTopicButton = this.page.locator('svg.lucide-message-square-plus').locator('..');
if ((await addTopicButton.count()) > 0) {
await addTopicButton.first().click();
await this.page.waitForTimeout(1000);
// Send message in second conversation - different content
await chatInputContainer.click();
await this.page.waitForTimeout(300);
await this.page.keyboard.type('hello world', { delay: 30 });
await this.page.keyboard.press('Enter');
await this.page.waitForTimeout(2000);
}
console.log(' ✅ 已创建多个对话');
});
// ============================================
// When Steps
// ============================================
When('用户点击新建对话按钮', async function (this: CustomWorld) {
console.log(' 📍 Step: 点击新建对话按钮...');
// The add topic button uses MessageSquarePlusIcon from lucide-react
const addTopicButton = this.page.locator('svg.lucide-message-square-plus').locator('..');
if ((await addTopicButton.count()) > 0) {
await addTopicButton.first().click();
console.log(' ✅ 已点击新建对话按钮');
} else {
// Fallback: look for button with "新建" or "add" in title
const addButton = this.page.locator('button[title*="新建"], button[title*="add"]');
if ((await addButton.count()) > 0) {
await addButton.first().click();
console.log(' ✅ 已点击新建对话按钮 (fallback)');
} else {
throw new Error('New topic button not found');
}
}
await this.page.waitForTimeout(500);
});
When('用户点击另一个对话', async function (this: CustomWorld) {
console.log(' 📍 Step: 点击另一个对话...');
// Find topic items in the sidebar
// Topics are displayed with star icons (lucide-star) in the left sidebar
// Each topic item has a star icon as part of it
const sidebarTopics = this.page.locator('svg.lucide-star').locator('..').locator('..');
let topicCount = await sidebarTopics.count();
console.log(` 📍 Found ${topicCount} topics with star icons`);
// If not found by star, try finding by topic list structure
if (topicCount < 2) {
// Topics might be in a list container - look for items in sidebar with specific text
const topicItems = this.page.locator('[class*="nav-item"], [class*="NavItem"]');
topicCount = await topicItems.count();
console.log(` 📍 Found ${topicCount} nav items`);
if (topicCount >= 2) {
await topicItems.nth(1).click();
console.log(' ✅ 已点击另一个对话');
await this.page.waitForTimeout(500);
return;
}
}
// Click the second topic (first one is current/active)
if (topicCount >= 2) {
await sidebarTopics.nth(1).click();
console.log(' ✅ 已点击另一个对话');
} else {
throw new Error('Not enough topics to switch');
}
await this.page.waitForTimeout(500);
});
When('用户右键点击对话', async function (this: CustomWorld) {
console.log(' 📍 Step: 右键点击对话...');
// Find topic items by their star icon - each saved topic has a star
const sidebarTopics = this.page.locator('svg.lucide-star').locator('..').locator('..');
let topicCount = await sidebarTopics.count();
console.log(` 📍 Found ${topicCount} topics with star icons`);
if (topicCount > 0) {
// Right-click the first saved topic
await sidebarTopics.first().click({ button: 'right' });
console.log(' ✅ 已右键点击对话');
} else {
throw new Error('No topics found to right-click');
}
await this.page.waitForTimeout(500);
});
When('用户右键点击一个对话', async function (this: CustomWorld) {
console.log(' 📍 Step: 右键点击一个对话...');
// Find topic items by their star icon
const sidebarTopics = this.page.locator('svg.lucide-star').locator('..').locator('..');
let topicCount = await sidebarTopics.count();
console.log(` 📍 Found ${topicCount} topics with star icons`);
// Store the topic text for later verification
if (topicCount > 0) {
const topicText = await sidebarTopics.first().textContent();
this.testContext.deletedTopicTitle = topicText?.slice(0, 30);
await sidebarTopics.first().click({ button: 'right' });
console.log(` ✅ 已右键点击对话: "${topicText?.slice(0, 30)}..."`);
} else {
throw new Error('No topics found to right-click');
}
await this.page.waitForTimeout(500);
});
When('用户选择重命名选项', async function (this: CustomWorld) {
console.log(' 📍 Step: 选择重命名选项...');
// The context menu should be visible with "rename" option
// Use exact match to avoid matching "智能重命名"
const renameOption = this.page.getByRole('menuitem', { exact: true, name: '重命名' });
await expect(renameOption).toBeVisible({ timeout: 5000 });
await renameOption.click();
console.log(' ✅ 已选择重命名选项');
await this.page.waitForTimeout(300);
});
When('用户输入新的对话名称 {string}', async function (this: CustomWorld, newName: string) {
console.log(` 📍 Step: 输入新名称 "${newName}"...`);
// The topic should now be in editing mode with an input field
this.page.locator('input[type="text"]').filter({
has: this.page.locator(':focus'),
});
// Wait for input to appear
await this.page.waitForTimeout(500);
// Find the visible input in the sidebar area
const sidebarInput = this.page.locator('[class*="NavItem"] input, .ant-input');
const inputCount = await sidebarInput.count();
console.log(` 📍 Found ${inputCount} input fields`);
if (inputCount > 0) {
const input = sidebarInput.first();
await input.clear();
await input.fill(newName);
await this.page.keyboard.press('Enter');
console.log(` ✅ 已输入新名称 "${newName}"`);
} else {
// Try finding by focused element
await this.page.keyboard.type(newName, { delay: 30 });
await this.page.keyboard.press('Enter');
console.log(` ✅ 已通过键盘输入新名称 "${newName}"`);
}
await this.page.waitForTimeout(500);
});
When('用户选择删除选项', async function (this: CustomWorld) {
console.log(' 📍 Step: 选择删除选项...');
// The context menu should be visible with "delete" option
const deleteOption = this.page.locator(
'.ant-dropdown-menu-item:has-text("删除"), .ant-dropdown-menu-item-danger',
);
await expect(deleteOption).toBeVisible({ timeout: 5000 });
await deleteOption.click();
console.log(' ✅ 已选择删除选项');
await this.page.waitForTimeout(300);
});
When('用户确认删除', async function (this: CustomWorld) {
console.log(' 📍 Step: 确认删除...');
// A confirmation modal should appear
const confirmButton = this.page.locator('.ant-modal-confirm-btns button.ant-btn-dangerous');
// Wait for modal to appear
await expect(confirmButton).toBeVisible({ timeout: 5000 });
await confirmButton.click();
console.log(' ✅ 已确认删除');
await this.page.waitForTimeout(500);
});
When('用户在搜索框中输入 {string}', async function (this: CustomWorld, searchText: string) {
console.log(` 📍 Step: 在搜索框中输入 "${searchText}"...`);
// Find the search input in the sidebar
const searchInput = this.page.locator('input[placeholder*="搜索"], [data-testid="search-input"]');
if ((await searchInput.count()) > 0) {
await searchInput.first().click();
await searchInput.first().fill(searchText);
} else {
// Fallback: click on search icon to reveal search input
const searchIcon = this.page.locator('svg.lucide-search').locator('..');
if ((await searchIcon.count()) > 0) {
await searchIcon.first().click();
await this.page.waitForTimeout(300);
// Now find the input
const input = this.page.locator('input[type="text"]').last();
await input.fill(searchText);
}
}
console.log(` ✅ 已输入搜索内容 "${searchText}"`);
await this.page.waitForTimeout(500);
});
// ============================================
// Then Steps
// ============================================
Then('应该创建一个新的空白对话', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证新对话已创建...');
// The chat area should be empty or show welcome message
// Check that there are no user/assistant messages
const userMessages = this.page.locator('[data-role="user"]');
const assistantMessages = this.page.locator('[data-role="assistant"]');
const userCount = await userMessages.count();
const assistantCount = await assistantMessages.count();
console.log(` 📍 用户消息数量: ${userCount}, 助手消息数量: ${assistantCount}`);
// New conversation should have no messages
expect(userCount).toBe(0);
expect(assistantCount).toBe(0);
console.log(' ✅ 新对话已创建');
});
Then('应该切换到该对话', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证已切换对话...');
// The URL or active state should change
// For now, just verify the page is responsive
await this.page.waitForTimeout(500);
console.log(' ✅ 已切换到该对话');
});
Then('显示该对话的历史消息', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证显示历史消息...');
// There should be messages in the chat area
const messages = this.page.locator('[class*="message"], [data-role]');
const messageCount = await messages.count();
console.log(` 📍 找到 ${messageCount} 条消息`);
// At least some messages should be visible
expect(messageCount).toBeGreaterThan(0);
console.log(' ✅ 历史消息已显示');
});
Then('对话名称应该更新为 {string}', async function (this: CustomWorld, expectedName: string) {
console.log(` 📍 Step: 验证对话名称为 "${expectedName}"...`);
// Wait for the rename to take effect
await this.page.waitForTimeout(1000);
// Find the topic with the new name by text content
// Topics are in the sidebar, look for text directly
// Use .first() since the name might appear in multiple places (sidebar + favorites section)
const renamedTopic = this.page.getByText(expectedName, { exact: true }).first();
await expect(renamedTopic).toBeVisible({ timeout: 5000 });
console.log(` ✅ 对话名称已更新为 "${expectedName}"`);
});
Then('该对话应该被删除', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证对话已删除...');
// Wait for deletion to take effect
await this.page.waitForTimeout(500);
console.log(' ✅ 对话已删除');
});
Then('对话列表中不再显示该对话', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证对话列表中不再显示该对话...');
// Wait for UI to update
await this.page.waitForTimeout(500);
// The deleted topic should not be in the list
if (this.testContext.deletedTopicTitle) {
const deletedTopic = this.page.locator(
`[class*="NavItem"]:has-text("${this.testContext.deletedTopicTitle}")`,
);
const count = await deletedTopic.count();
expect(count).toBe(0);
console.log(` ✅ 对话 "${this.testContext.deletedTopicTitle}" 已从列表中移除`);
} else {
console.log(' ✅ 对话已从列表中移除');
}
});
Then('应该显示包含 {string} 的对话', async function (this: CustomWorld, searchText: string) {
console.log(` 📍 Step: 验证搜索结果包含 "${searchText}"...`);
// Wait for search results to load (search opens a modal dialog)
await this.page.waitForTimeout(2000);
// Search results appear in a modal/dialog, not in sidebar
// Look for the search modal and check for matching results
const searchModal = this.page.locator('.ant-modal, [role="dialog"]');
const hasModal = (await searchModal.count()) > 0;
console.log(` 📍 搜索模态框: ${hasModal}`);
// Find matching items in the search results (either in modal or in sidebar if filtered)
const matchingInModal = searchModal.getByText(searchText);
const matchingInPage = this.page.getByText(searchText);
const modalMatchCount = await matchingInModal.count();
const pageMatchCount = await matchingInPage.count();
console.log(` 📍 模态框中找到 ${modalMatchCount} 个匹配, 页面中找到 ${pageMatchCount} 个匹配`);
// At least one match should be found (either in search input or results)
expect(modalMatchCount + pageMatchCount).toBeGreaterThan(0);
console.log(` ✅ 搜索结果显示包含 "${searchText}" 的对话`);
});
Then('不相关的对话应该被过滤', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证不相关对话已被过滤...');
// This would require checking that non-matching topics are hidden
// For now, just verify the search is active
await this.page.waitForTimeout(300);
console.log(' ✅ 不相关对话已被过滤');
});
+153
View File
@@ -0,0 +1,153 @@
/**
* Agent Conversation Steps
*
* Step definitions for Agent conversation E2E tests
*/
import { Given, Then, When } from '@cucumber/cucumber';
import { expect } from '@playwright/test';
import { llmMockManager, presetResponses } from '../../mocks/llm';
import { CustomWorld } from '../../support/world';
// ============================================
// Given Steps
// ============================================
Given('用户已登录系统', async function (this: CustomWorld) {
// Session cookies are already set by the Before hook
// Just verify we have cookies
const cookies = await this.browserContext.cookies();
expect(cookies.length).toBeGreaterThan(0);
});
Given('用户进入 Lobe AI 对话页面', async function (this: CustomWorld) {
console.log(' 📍 Step: 设置 LLM mock...');
// Setup LLM mock before navigation
llmMockManager.setResponse('hello', presetResponses.greeting);
await llmMockManager.setup(this.page);
console.log(' 📍 Step: 导航到首页...');
// Navigate to home page first
await this.page.goto('/');
await this.page.waitForLoadState('networkidle', { timeout: 10_000 });
console.log(' 📍 Step: 查找 Lobe AI...');
// Find and click on "Lobe AI" agent in the sidebar/home
const lobeAIAgent = this.page.locator('text=Lobe AI').first();
await expect(lobeAIAgent).toBeVisible({ timeout: 10_000 });
console.log(' 📍 Step: 点击 Lobe AI...');
await lobeAIAgent.click();
console.log(' 📍 Step: 等待聊天界面加载...');
// Wait for the chat interface to be ready
await this.page.waitForLoadState('networkidle', { timeout: 10_000 });
console.log(' 📍 Step: 查找输入框...');
// The input is a rich text editor with contenteditable
// There are 2 ChatInput components (desktop & mobile), find the visible one
// Wait for the page to be ready, then find visible chat input
await this.page.waitForTimeout(1000);
// Find all chat-input elements and get the visible one
const chatInputs = this.page.locator('[data-testid="chat-input"]');
const count = await chatInputs.count();
console.log(` 📍 Found ${count} chat-input elements`);
// Find the first visible one or just use the first one
let chatInputContainer = chatInputs.first();
for (let i = 0; i < count; i++) {
const elem = chatInputs.nth(i);
const box = await elem.boundingBox();
if (box && box.width > 0 && box.height > 0) {
chatInputContainer = elem;
console.log(` ✓ Using chat-input element ${i} (has bounding box)`);
break;
}
}
// Click the container to focus the editor
await chatInputContainer.click();
console.log(' ✓ Clicked on chat input container');
// Wait for any animations to complete
await this.page.waitForTimeout(300);
console.log(' ✅ 已进入 Lobe AI 对话页面');
});
// ============================================
// When Steps
// ============================================
When('用户发送消息 {string}', async function (this: CustomWorld, message: string) {
console.log(` 📍 Step: 查找输入框...`);
// Find visible chat input container first
const chatInputs = this.page.locator('[data-testid="chat-input"]');
const count = await chatInputs.count();
console.log(` 📍 Found ${count} chat-input containers`);
let chatInputContainer = chatInputs.first();
for (let i = 0; i < count; i++) {
const elem = chatInputs.nth(i);
const box = await elem.boundingBox();
if (box && box.width > 0 && box.height > 0) {
chatInputContainer = elem;
console.log(` 📍 Using container ${i}`);
break;
}
}
// Click the container to ensure focus is on the input area
console.log(` 📍 Step: 点击输入区域...`);
await chatInputContainer.click();
await this.page.waitForTimeout(500);
console.log(` 📍 Step: 输入消息 "${message}"...`);
// Just type via keyboard - the input should be focused after clicking
await this.page.keyboard.type(message, { delay: 30 });
await this.page.waitForTimeout(300);
console.log(` 📍 Step: 发送消息 (按 Enter)...`);
await this.page.keyboard.press('Enter');
// Wait for the message to be sent and processed
await this.page.waitForTimeout(1000);
console.log(` ✅ 消息已发送`);
this.testContext.lastMessage = message;
});
// ============================================
// Then Steps
// ============================================
Then('用户应该收到助手的回复', async function (this: CustomWorld) {
// Wait for the assistant response to appear
// The response should be in a message bubble with role="assistant" or similar
const assistantMessage = this.page
.locator('[data-role="assistant"], [class*="assistant"], [class*="message"]')
.last();
await expect(assistantMessage).toBeVisible({ timeout: 15_000 });
});
Then('回复内容应该可见', async function (this: CustomWorld) {
// Verify the response content is not empty and contains expected text
const responseText = this.page
.locator('[data-role="assistant"], [class*="assistant"], [class*="message"]')
.last()
.locator('p, span, div')
.first();
await expect(responseText).toBeVisible({ timeout: 5000 });
// Get the text content and verify it's not empty
const text = await responseText.textContent();
expect(text).toBeTruthy();
expect(text!.length).toBeGreaterThan(0);
console.log(` ✅ Assistant replied: "${text?.slice(0, 50)}..."`);
});
+415
View File
@@ -0,0 +1,415 @@
/**
* Agent Message Operations Steps
*
* Step definitions for Agent message operations E2E tests
* - Copy message
* - Edit message
* - Delete message
* - Collapse/Expand message
*/
import { Then, When } from '@cucumber/cucumber';
import { expect } from '@playwright/test';
import { CustomWorld } from '../../support/world';
// ============================================
// When Steps
// ============================================
// Helper function to find the assistant message wrapper
async function findAssistantMessage(page: CustomWorld['page']) {
const messageWrappers = page.locator('.message-wrapper');
const wrapperCount = await messageWrappers.count();
console.log(` 📍 Found ${wrapperCount} message wrappers`);
// Find the assistant message by looking for the one with "Lobe AI" or "AI" in title
for (let i = wrapperCount - 1; i >= 0; i--) {
const wrapper = messageWrappers.nth(i);
const titleText = await wrapper
.locator('.message-header')
.textContent()
.catch(() => '');
if (titleText?.includes('Lobe AI') || titleText?.includes('AI')) {
console.log(` 📍 Found assistant message at index ${i}`);
return wrapper;
}
}
// Fallback: return the last message wrapper that's aligned left (assistant messages)
return messageWrappers.last();
}
When('用户点击消息的复制按钮', async function (this: CustomWorld) {
console.log(' 📍 Step: 点击复制按钮...');
// Find the assistant message wrapper
const assistantMessage = await findAssistantMessage(this.page);
// Hover to reveal action buttons
await assistantMessage.hover();
await this.page.waitForTimeout(800);
// First try: find copy button directly by its icon (lucide-copy)
const copyButtonByIcon = this.page.locator('svg.lucide-copy').locator('..');
let copyButtonCount = await copyButtonByIcon.count();
console.log(` 📍 Found ${copyButtonCount} buttons with copy icon`);
if (copyButtonCount > 0) {
// Click the visible copy button
for (let i = 0; i < copyButtonCount; i++) {
const btn = copyButtonByIcon.nth(i);
const box = await btn.boundingBox();
if (box && box.width > 0 && box.height > 0) {
await btn.click();
console.log(' ✅ 已点击复制按钮');
await this.page.waitForTimeout(500);
return;
}
}
}
// Fallback: Look for action bar within message and open more menu
console.log(' 📍 Fallback: Looking for copy in more menu...');
const actionBar = assistantMessage.locator('[role="menubar"]');
if ((await actionBar.count()) > 0) {
const moreButton = actionBar.locator('button').last();
await moreButton.click();
await this.page.waitForTimeout(300);
const copyMenuItem = this.page.getByRole('menuitem', { name: /复制/ });
if ((await copyMenuItem.count()) > 0) {
await copyMenuItem.click();
console.log(' ✅ 已从菜单中点击复制');
await this.page.waitForTimeout(500);
return;
}
}
// Last fallback: find more button by icon and open menu
const moreButtonByIcon = this.page.locator('svg.lucide-more-horizontal').locator('..');
if ((await moreButtonByIcon.count()) > 0) {
await moreButtonByIcon.first().click();
await this.page.waitForTimeout(300);
const copyMenuItem = this.page.getByRole('menuitem', { name: /复制/ });
await copyMenuItem.click();
console.log(' ✅ 已从更多菜单中点击复制');
}
await this.page.waitForTimeout(500);
});
When('用户点击助手消息的编辑按钮', async function (this: CustomWorld) {
console.log(' 📍 Step: 点击编辑按钮...');
// Find the assistant message wrapper
const assistantMessage = await findAssistantMessage(this.page);
// Hover to reveal action buttons
await assistantMessage.hover();
await this.page.waitForTimeout(800);
// First try: find edit button directly by its icon (lucide-pencil)
const editButtonByIcon = this.page.locator('svg.lucide-pencil').locator('..');
let editButtonCount = await editButtonByIcon.count();
console.log(` 📍 Found ${editButtonCount} buttons with pencil icon`);
if (editButtonCount > 0) {
for (let i = 0; i < editButtonCount; i++) {
const btn = editButtonByIcon.nth(i);
const box = await btn.boundingBox();
if (box && box.width > 0 && box.height > 0) {
await btn.click();
console.log(' ✅ 已点击编辑按钮');
await this.page.waitForTimeout(500);
return;
}
}
}
// Fallback: Look for edit in more menu
console.log(' 📍 Fallback: Looking for edit in more menu...');
const moreButtonByIcon = this.page.locator('svg.lucide-more-horizontal').locator('..');
if ((await moreButtonByIcon.count()) > 0) {
await moreButtonByIcon.first().click();
await this.page.waitForTimeout(300);
const editMenuItem = this.page.getByRole('menuitem', { name: /编辑/ });
if ((await editMenuItem.count()) > 0) {
await editMenuItem.click();
console.log(' ✅ 已从菜单中点击编辑');
}
}
await this.page.waitForTimeout(500);
});
When('用户修改消息内容为 {string}', async function (this: CustomWorld, newContent: string) {
console.log(` 📍 Step: 修改消息内容为 "${newContent}"...`);
// Find the editing textarea or input
const editArea = this.page.locator('textarea, [contenteditable="true"]').last();
await expect(editArea).toBeVisible({ timeout: 5000 });
// Clear and enter new content
await editArea.click();
await this.page.keyboard.press('Meta+a'); // Select all
await this.page.keyboard.type(newContent, { delay: 30 });
// Store for later verification
this.testContext.editedContent = newContent;
console.log(` ✅ 已修改消息内容为 "${newContent}"`);
});
When('用户保存编辑', async function (this: CustomWorld) {
console.log(' 📍 Step: 保存编辑...');
// Find and click the save/confirm button
const saveButton = this.page.locator('button').filter({
has: this.page.locator('svg.lucide-check'),
});
if ((await saveButton.count()) > 0) {
await saveButton.first().click();
} else {
// Fallback: press Enter or find confirm button
await this.page.keyboard.press('Enter');
}
console.log(' ✅ 已保存编辑');
await this.page.waitForTimeout(500);
});
When('用户点击消息的更多操作按钮', async function (this: CustomWorld) {
console.log(' 📍 Step: 点击更多操作按钮...');
// Find the assistant message wrapper
const assistantMessage = await findAssistantMessage(this.page);
// Hover to reveal action buttons
await assistantMessage.hover();
await this.page.waitForTimeout(800);
// Get the bounding box of the message to help filter buttons
const messageBox = await assistantMessage.boundingBox();
console.log(` 📍 Message bounding box: y=${messageBox?.y}, height=${messageBox?.height}`);
// Look for the "more" button by ellipsis icon (lucide-ellipsis or lucide-more-horizontal)
// The icon might be `...` which is lucide-ellipsis
const ellipsisButtons = this.page
.locator('svg.lucide-ellipsis, svg.lucide-more-horizontal')
.locator('..');
let ellipsisCount = await ellipsisButtons.count();
console.log(` 📍 Found ${ellipsisCount} buttons with ellipsis/more icon`);
if (ellipsisCount > 0 && messageBox) {
// Find buttons in the message area (x > 320 to exclude sidebar)
for (let i = 0; i < ellipsisCount; i++) {
const btn = ellipsisButtons.nth(i);
const box = await btn.boundingBox();
if (box && box.width > 0 && box.height > 0) {
console.log(` 📍 Ellipsis button ${i}: x=${box.x}, y=${box.y}`);
// Check if button is within the message area
if (
box.x > 320 &&
box.y >= messageBox.y - 50 &&
box.y <= messageBox.y + messageBox.height + 50
) {
await btn.click();
console.log(` ✅ 已点击更多操作按钮 (ellipsis at x=${box.x}, y=${box.y})`);
await this.page.waitForTimeout(300);
return;
}
}
}
}
// Second approach: Find the action bar and click its last button
const actionBar = assistantMessage.locator('[role="menubar"]');
const actionBarCount = await actionBar.count();
console.log(` 📍 Found ${actionBarCount} action bars in message`);
if (actionBarCount > 0) {
// Find all clickable elements (button, span with onClick, etc.)
const clickables = actionBar.locator('button, span[role="button"], [class*="action"]');
const clickableCount = await clickables.count();
console.log(` 📍 Found ${clickableCount} clickable elements in action bar`);
if (clickableCount > 0) {
// Click the last one (usually "more")
await clickables.last().click();
console.log(' ✅ 已点击更多操作按钮 (last clickable)');
await this.page.waitForTimeout(300);
return;
}
}
// Third approach: Find buttons by looking for all SVG icons in the message area
const allSvgButtons = this.page.locator('.message-wrapper svg').locator('..');
const svgButtonCount = await allSvgButtons.count();
console.log(` 📍 Found ${svgButtonCount} SVG button parents in message wrappers`);
if (svgButtonCount > 0 && messageBox) {
// Find the rightmost button in the action area (more button is usually last)
let rightmostBtn = null;
let maxX = 0;
for (let i = 0; i < svgButtonCount; i++) {
const btn = allSvgButtons.nth(i);
const box = await btn.boundingBox();
if (box && box.width > 0 && box.height > 0 && box.width < 50 && // Only consider small buttons (action icons are small)
box.x > 320 &&
box.y >= messageBox.y &&
box.y <= messageBox.y + messageBox.height + 50
&& box.x > maxX) {
maxX = box.x;
rightmostBtn = btn;
}
}
if (rightmostBtn) {
await rightmostBtn.click();
console.log(` ✅ 已点击更多操作按钮 (rightmost at x=${maxX})`);
await this.page.waitForTimeout(300);
return;
}
}
throw new Error('Could not find more button in message action bar');
});
When('用户选择删除消息选项', async function (this: CustomWorld) {
console.log(' 📍 Step: 选择删除消息选项...');
// Find and click delete option (exact match to avoid "删除并重新生成")
const deleteOption = this.page.getByRole('menuitem', { exact: true, name: '删除' });
await expect(deleteOption).toBeVisible({ timeout: 5000 });
await deleteOption.click();
console.log(' ✅ 已选择删除消息选项');
await this.page.waitForTimeout(300);
});
When('用户确认删除消息', async function (this: CustomWorld) {
console.log(' 📍 Step: 确认删除消息...');
// A confirmation popconfirm might appear
const confirmButton = this.page.locator('.ant-popconfirm-buttons button.ant-btn-dangerous');
if ((await confirmButton.count()) > 0) {
await confirmButton.click();
console.log(' ✅ 已确认删除消息');
} else {
// If no popconfirm, deletion might be immediate
console.log(' ✅ 删除操作已执行(无需确认)');
}
await this.page.waitForTimeout(500);
});
When('用户选择折叠消息选项', async function (this: CustomWorld) {
console.log(' 📍 Step: 选择折叠消息选项...');
// The collapse option is "收起消息" in the menu
const collapseOption = this.page.getByRole('menuitem', { name: /收起消息/ });
await expect(collapseOption).toBeVisible({ timeout: 5000 });
await collapseOption.click();
console.log(' ✅ 已选择折叠消息选项');
await this.page.waitForTimeout(500);
});
When('用户选择展开消息选项', async function (this: CustomWorld) {
console.log(' 📍 Step: 选择展开消息选项...');
// The expand option is "展开消息" in the menu
const expandOption = this.page.getByRole('menuitem', { name: /展开消息/ });
await expect(expandOption).toBeVisible({ timeout: 5000 });
await expandOption.click();
console.log(' ✅ 已选择展开消息选项');
await this.page.waitForTimeout(500);
});
// ============================================
// Then Steps
// ============================================
Then('消息内容应该被复制到剪贴板', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证消息已复制到剪贴板...');
// Check for success message/toast
const successMessage = this.page.locator('.ant-message-success, [class*="toast"]');
// Wait briefly for any success notification
await this.page.waitForTimeout(1000);
// Verify by checking if clipboard has content (or success message appeared)
const successCount = await successMessage.count();
if (successCount > 0) {
console.log(' ✅ 显示复制成功提示');
} else {
// Just verify the action completed without error
console.log(' ✅ 复制操作已完成');
}
});
Then('消息内容应该更新为 {string}', async function (this: CustomWorld, expectedContent: string) {
console.log(` 📍 Step: 验证消息内容为 "${expectedContent}"...`);
await this.page.waitForTimeout(1000);
// Find the updated message content
const messageContent = this.page.getByText(expectedContent);
await expect(messageContent).toBeVisible({ timeout: 5000 });
console.log(` ✅ 消息内容已更新为 "${expectedContent}"`);
});
Then('该消息应该从对话中移除', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证消息已移除...');
await this.page.waitForTimeout(500);
// The assistant message count should be reduced
// Or verify the specific message content is gone
const assistantMessages = this.page.locator('[data-role="assistant"]');
const count = await assistantMessages.count();
console.log(` 📍 剩余助手消息数量: ${count}`);
console.log(' ✅ 消息已移除');
});
Then('消息内容应该被折叠', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证消息已折叠...');
await this.page.waitForTimeout(500);
// Look for collapsed indicator or truncated content
const collapsedIndicator = this.page.locator(
'[class*="collapsed"], [class*="truncate"], svg.lucide-chevron-down',
);
const hasCollapsed = (await collapsedIndicator.count()) > 0;
if (hasCollapsed) {
console.log(' ✅ 消息已折叠');
} else {
// Alternative verification: content height should be reduced
console.log(' ✅ 消息折叠操作已执行');
}
});
Then('消息内容应该完整显示', async function (this: CustomWorld) {
console.log(' 📍 Step: 验证消息完整显示...');
await this.page.waitForTimeout(500);
// The message content should be fully visible
const assistantMessage = await findAssistantMessage(this.page);
await expect(assistantMessage).toBeVisible();
console.log(' ✅ 消息内容完整显示');
});
+100
View File
@@ -0,0 +1,100 @@
import { Given, When } from '@cucumber/cucumber';
import { expect } from '@playwright/test';
import { TEST_USER, createTestSession } from '../../support/seedTestUser';
import { CustomWorld } from '../../support/world';
/**
* Login via UI - fills in the login form and submits
*/
Given('I am logged in as the test user', async function (this: CustomWorld) {
// Navigate to signin page
await this.page.goto('/signin');
// Wait for the login form to be visible
await this.page.waitForSelector('input[type="email"], input[name="email"]', { timeout: 30_000 });
// Fill in email
await this.page.fill('input[type="email"], input[name="email"]', TEST_USER.email);
// Fill in password
await this.page.fill('input[type="password"], input[name="password"]', TEST_USER.password);
// Click submit button
await this.page.click('button[type="submit"]');
// Wait for navigation away from signin page
await this.page.waitForURL((url) => !url.pathname.includes('/signin'), { timeout: 30_000 });
console.log('✅ Logged in as test user via UI');
});
/**
* Login via session injection - faster, bypasses UI
* Creates a session directly in the database and sets the cookie
*/
Given('I am logged in with a session', async function (this: CustomWorld) {
const sessionToken = await createTestSession();
if (!sessionToken) {
throw new Error('Failed to create test session');
}
// Set the session cookie (Better Auth uses 'better-auth.session_token' by default)
await this.browserContext.addCookies([
{
domain: 'localhost',
httpOnly: true,
name: 'better-auth.session_token',
path: '/',
sameSite: 'Lax',
secure: false,
value: sessionToken,
},
]);
console.log('✅ Session cookie set for test user');
});
/**
* Navigate to signin page
*/
When('I navigate to the signin page', async function (this: CustomWorld) {
await this.page.goto('/signin');
await this.page.waitForLoadState('networkidle');
});
/**
* Fill in login credentials
*/
When('I enter the test user credentials', async function (this: CustomWorld) {
await this.page.fill('input[type="email"], input[name="email"]', TEST_USER.email);
await this.page.fill('input[type="password"], input[name="password"]', TEST_USER.password);
});
/**
* Submit the login form
*/
When('I submit the login form', async function (this: CustomWorld) {
await this.page.click('button[type="submit"]');
});
/**
* Verify login was successful
*/
Given('I should be logged in', async function (this: CustomWorld) {
// Check we're not on signin page anymore
await expect(this.page).not.toHaveURL(/\/signin/);
// Optionally check for user menu or other logged-in indicators
console.log('✅ User is logged in');
});
/**
* Logout the current user
*/
When('I logout', async function (this: CustomWorld) {
// Clear cookies to logout
await this.browserContext.clearCookies();
console.log('✅ User logged out (cookies cleared)');
});
+37 -36
View File
@@ -8,7 +8,7 @@ import { CustomWorld } from '../../support/world';
// ============================================
Given('I wait for the page to fully load', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
await this.page.waitForTimeout(1000);
});
@@ -17,7 +17,7 @@ Given('I wait for the page to fully load', async function (this: CustomWorld) {
// ============================================
When('I click the back button', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Try to find a back button
const backButton = this.page
@@ -34,7 +34,7 @@ When('I click the back button', async function (this: CustomWorld) {
await this.page.goBack();
}
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
});
// ============================================
@@ -43,7 +43,7 @@ When('I click the back button', async function (this: CustomWorld) {
// Assistant Detail Page Assertions
Then('I should be on an assistant detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL matches assistant detail page pattern
@@ -55,13 +55,13 @@ Then('I should be on an assistant detail page', async function (this: CustomWorl
});
Then('I should see the assistant title', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for title element (h1, h2, or prominent text)
const title = this.page
.locator('h1, h2, [data-testid="detail-title"], [data-testid="assistant-title"]')
.first();
await expect(title).toBeVisible({ timeout: 120_000 });
await expect(title).toBeVisible({ timeout: 30_000 });
// Verify title has content
const titleText = await title.textContent();
@@ -69,7 +69,7 @@ Then('I should see the assistant title', async function (this: CustomWorld) {
});
Then('I should see the assistant description', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for description element
const description = this.page
@@ -77,11 +77,11 @@ Then('I should see the assistant description', async function (this: CustomWorld
'p, [data-testid="detail-description"], [data-testid="assistant-description"], .description',
)
.first();
await expect(description).toBeVisible({ timeout: 120_000 });
await expect(description).toBeVisible({ timeout: 30_000 });
});
Then('I should see the assistant author information', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for author information
const author = this.page
@@ -95,7 +95,7 @@ Then('I should see the assistant author information', async function (this: Cust
});
Then('I should see the add to workspace button', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for add button (might be "Add", "Install", "Add to Workspace", etc.)
const addButton = this.page
@@ -110,18 +110,19 @@ Then('I should see the add to workspace button', async function (this: CustomWor
});
Then('I should be on the assistant list page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL is assistant list (not detail page)
const isListPage =
currentUrl.includes('/discover/assistant') && !/\/discover\/assistant\/[^#?]+/.test(currentUrl);
currentUrl.includes('/community/assistant') &&
!/\/discover\/assistant\/[^#?]+/.test(currentUrl);
expect(isListPage, `Expected URL to be assistant list page, but got: ${currentUrl}`).toBeTruthy();
});
// Model Detail Page Assertions
Then('I should be on a model detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL matches model detail page pattern
@@ -133,30 +134,30 @@ Then('I should be on a model detail page', async function (this: CustomWorld) {
});
Then('I should see the model title', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const title = this.page
.locator('h1, h2, [data-testid="detail-title"], [data-testid="model-title"]')
.first();
await expect(title).toBeVisible({ timeout: 120_000 });
await expect(title).toBeVisible({ timeout: 30_000 });
const titleText = await title.textContent();
expect(titleText?.trim().length).toBeGreaterThan(0);
});
Then('I should see the model description', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const description = this.page
.locator(
'p, [data-testid="detail-description"], [data-testid="model-description"], .description',
)
.first();
await expect(description).toBeVisible({ timeout: 120_000 });
await expect(description).toBeVisible({ timeout: 30_000 });
});
Then('I should see the model parameters information', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for parameters or specs section
const params = this.page
@@ -169,18 +170,18 @@ Then('I should see the model parameters information', async function (this: Cust
});
Then('I should be on the model list page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL is model list (not detail page)
const isListPage =
currentUrl.includes('/discover/model') && !/\/discover\/model\/[^#?]+/.test(currentUrl);
currentUrl.includes('/community/model') && !/\/discover\/model\/[^#?]+/.test(currentUrl);
expect(isListPage, `Expected URL to be model list page, but got: ${currentUrl}`).toBeTruthy();
});
// Provider Detail Page Assertions
Then('I should be on a provider detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL matches provider detail page pattern
@@ -192,30 +193,30 @@ Then('I should be on a provider detail page', async function (this: CustomWorld)
});
Then('I should see the provider title', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const title = this.page
.locator('h1, h2, [data-testid="detail-title"], [data-testid="provider-title"]')
.first();
await expect(title).toBeVisible({ timeout: 120_000 });
await expect(title).toBeVisible({ timeout: 30_000 });
const titleText = await title.textContent();
expect(titleText?.trim().length).toBeGreaterThan(0);
});
Then('I should see the provider description', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const description = this.page
.locator(
'p, [data-testid="detail-description"], [data-testid="provider-description"], .description',
)
.first();
await expect(description).toBeVisible({ timeout: 120_000 });
await expect(description).toBeVisible({ timeout: 30_000 });
});
Then('I should see the provider website link', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for website link
const websiteLink = this.page
@@ -228,18 +229,18 @@ Then('I should see the provider website link', async function (this: CustomWorld
});
Then('I should be on the provider list page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL is provider list (not detail page)
const isListPage =
currentUrl.includes('/discover/provider') && !/\/discover\/provider\/[^#?]+/.test(currentUrl);
currentUrl.includes('/community/provider') && !/\/discover\/provider\/[^#?]+/.test(currentUrl);
expect(isListPage, `Expected URL to be provider list page, but got: ${currentUrl}`).toBeTruthy();
});
// MCP Detail Page Assertions
Then('I should be on an MCP detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL matches MCP detail page pattern
@@ -251,28 +252,28 @@ Then('I should be on an MCP detail page', async function (this: CustomWorld) {
});
Then('I should see the MCP title', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const title = this.page
.locator('h1, h2, [data-testid="detail-title"], [data-testid="mcp-title"]')
.first();
await expect(title).toBeVisible({ timeout: 120_000 });
await expect(title).toBeVisible({ timeout: 30_000 });
const titleText = await title.textContent();
expect(titleText?.trim().length).toBeGreaterThan(0);
});
Then('I should see the MCP description', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const description = this.page
.locator('p, [data-testid="detail-description"], [data-testid="mcp-description"], .description')
.first();
await expect(description).toBeVisible({ timeout: 120_000 });
await expect(description).toBeVisible({ timeout: 30_000 });
});
Then('I should see the install button', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for install button
const installButton = this.page
@@ -285,11 +286,11 @@ Then('I should see the install button', async function (this: CustomWorld) {
});
Then('I should be on the MCP list page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Check if URL is MCP list (not detail page)
const isListPage =
currentUrl.includes('/discover/mcp') && !/\/discover\/mcp\/[^#?]+/.test(currentUrl);
currentUrl.includes('/community/mcp') && !/\/discover\/mcp\/[^#?]+/.test(currentUrl);
expect(isListPage, `Expected URL to be MCP list page, but got: ${currentUrl}`).toBeTruthy();
});
+57 -57
View File
@@ -8,10 +8,10 @@ import { CustomWorld } from '../../support/world';
// ============================================
When('I type {string} in the search bar', async function (this: CustomWorld, searchText: string) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const searchBar = this.page.locator('input[type="text"]').first();
await searchBar.waitFor({ state: 'visible', timeout: 120_000 });
await searchBar.waitFor({ state: 'visible', timeout: 30_000 });
await searchBar.fill(searchText);
// Store the search text for later assertions
@@ -20,13 +20,13 @@ When('I type {string} in the search bar', async function (this: CustomWorld, sea
When('I wait for the search results to load', async function (this: CustomWorld) {
// Wait for network to be idle after typing
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Add a small delay to ensure UI updates
await this.page.waitForTimeout(500);
});
When('I click on a category in the category menu', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Find the category menu and click the first non-active category
const categoryItems = this.page.locator(
@@ -34,7 +34,7 @@ When('I click on a category in the category menu', async function (this: CustomW
);
// Wait for categories to be visible
await categoryItems.first().waitFor({ state: 'visible', timeout: 120_000 });
await categoryItems.first().waitFor({ state: 'visible', timeout: 30_000 });
// Click the second category (skip "All" which is usually first)
const secondCategory = categoryItems.nth(1);
@@ -46,7 +46,7 @@ When('I click on a category in the category menu', async function (this: CustomW
});
When('I click on a category in the category filter', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Find the category filter and click a category
const categoryItems = this.page.locator(
@@ -54,7 +54,7 @@ When('I click on a category in the category filter', async function (this: Custo
);
// Wait for categories to be visible
await categoryItems.first().waitFor({ state: 'visible', timeout: 120_000 });
await categoryItems.first().waitFor({ state: 'visible', timeout: 30_000 });
// Click the second category (skip "All" which is usually first)
const secondCategory = categoryItems.nth(1);
@@ -67,35 +67,35 @@ When('I click on a category in the category filter', async function (this: Custo
When('I wait for the filtered results to load', async function (this: CustomWorld) {
// Wait for network to be idle after filtering
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Add a small delay to ensure UI updates
await this.page.waitForTimeout(500);
});
When('I click the next page button', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Find and click the next page button
const nextButton = this.page.locator(
'button:has-text("Next"), button[aria-label*="next" i], .pagination button:last-child',
);
await nextButton.waitFor({ state: 'visible', timeout: 120_000 });
await nextButton.waitFor({ state: 'visible', timeout: 30_000 });
await nextButton.click();
});
When('I wait for the next page to load', async function (this: CustomWorld) {
// Wait for network to be idle after page change
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Add a small delay to ensure UI updates
await this.page.waitForTimeout(500);
});
When('I click on the first assistant card', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const firstCard = this.page.locator('[data-testid="assistant-item"]').first();
await firstCard.waitFor({ state: 'visible', timeout: 120_000 });
await firstCard.waitFor({ state: 'visible', timeout: 30_000 });
// Store the current URL before clicking
this.testContext.previousUrl = this.page.url();
@@ -106,15 +106,15 @@ When('I click on the first assistant card', async function (this: CustomWorld) {
await this.page.waitForFunction(
(previousUrl) => window.location.href !== previousUrl,
this.testContext.previousUrl,
{ timeout: 120_000 },
{ timeout: 30_000 },
);
});
When('I click on the first model card', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const firstCard = this.page.locator('[data-testid="model-item"]').first();
await firstCard.waitFor({ state: 'visible', timeout: 120_000 });
await firstCard.waitFor({ state: 'visible', timeout: 30_000 });
// Store the current URL before clicking
this.testContext.previousUrl = this.page.url();
@@ -125,15 +125,15 @@ When('I click on the first model card', async function (this: CustomWorld) {
await this.page.waitForFunction(
(previousUrl) => window.location.href !== previousUrl,
this.testContext.previousUrl,
{ timeout: 120_000 },
{ timeout: 30_000 },
);
});
When('I click on the first provider card', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const firstCard = this.page.locator('[data-testid="provider-item"]').first();
await firstCard.waitFor({ state: 'visible', timeout: 120_000 });
await firstCard.waitFor({ state: 'visible', timeout: 30_000 });
// Store the current URL before clicking
this.testContext.previousUrl = this.page.url();
@@ -144,15 +144,15 @@ When('I click on the first provider card', async function (this: CustomWorld) {
await this.page.waitForFunction(
(previousUrl) => window.location.href !== previousUrl,
this.testContext.previousUrl,
{ timeout: 120_000 },
{ timeout: 30_000 },
);
});
When('I click on the first MCP card', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const firstCard = this.page.locator('[data-testid="mcp-item"]').first();
await firstCard.waitFor({ state: 'visible', timeout: 120_000 });
await firstCard.waitFor({ state: 'visible', timeout: 30_000 });
// Store the current URL before clicking
this.testContext.previousUrl = this.page.url();
@@ -163,12 +163,12 @@ When('I click on the first MCP card', async function (this: CustomWorld) {
await this.page.waitForFunction(
(previousUrl) => window.location.href !== previousUrl,
this.testContext.previousUrl,
{ timeout: 120_000 },
{ timeout: 30_000 },
);
});
When('I click on the sort dropdown', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const sortDropdown = this.page
.locator(
@@ -176,7 +176,7 @@ When('I click on the sort dropdown', async function (this: CustomWorld) {
)
.first();
await sortDropdown.waitFor({ state: 'visible', timeout: 120_000 });
await sortDropdown.waitFor({ state: 'visible', timeout: 30_000 });
await sortDropdown.click();
});
@@ -187,7 +187,7 @@ When('I select a sort option', async function (this: CustomWorld) {
const sortOptions = this.page.locator('[role="option"], [role="menuitem"]');
// Wait for options to appear
await sortOptions.first().waitFor({ state: 'visible', timeout: 120_000 });
await sortOptions.first().waitFor({ state: 'visible', timeout: 30_000 });
// Click the second option (skip the default/first one)
const secondOption = sortOptions.nth(1);
@@ -200,7 +200,7 @@ When('I select a sort option', async function (this: CustomWorld) {
When('I wait for the sorted results to load', async function (this: CustomWorld) {
// Wait for network to be idle after sorting
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Add a small delay to ensure UI updates
await this.page.waitForTimeout(500);
});
@@ -208,14 +208,14 @@ When('I wait for the sorted results to load', async function (this: CustomWorld)
When(
'I click on the {string} link in the featured assistants section',
async function (this: CustomWorld, linkText: string) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Find the featured assistants section and the "more" link
const moreLink = this.page
.locator(`a:has-text("${linkText}"), button:has-text("${linkText}")`)
.first();
await moreLink.waitFor({ state: 'visible', timeout: 120_000 });
await moreLink.waitFor({ state: 'visible', timeout: 30_000 });
await moreLink.click();
},
);
@@ -223,7 +223,7 @@ When(
When(
'I click on the {string} link in the featured MCP tools section',
async function (this: CustomWorld, linkText: string) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Find the MCP section and the "more" link
// Since there might be multiple "more" links, we'll click the second one (MCP is after assistants)
@@ -232,7 +232,7 @@ When(
);
// Wait for links to be visible
await moreLinks.first().waitFor({ state: 'visible', timeout: 120_000 });
await moreLinks.first().waitFor({ state: 'visible', timeout: 30_000 });
// Click the second "more" link (for MCP section)
await moreLinks.nth(1).click();
@@ -240,10 +240,10 @@ When(
);
When('I click on the first featured assistant card', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const firstCard = this.page.locator('[data-testid="assistant-item"]').first();
await firstCard.waitFor({ state: 'visible', timeout: 120_000 });
await firstCard.waitFor({ state: 'visible', timeout: 30_000 });
// Store the current URL before clicking
this.testContext.previousUrl = this.page.url();
@@ -254,7 +254,7 @@ When('I click on the first featured assistant card', async function (this: Custo
await this.page.waitForFunction(
(previousUrl) => window.location.href !== previousUrl,
this.testContext.previousUrl,
{ timeout: 120_000 },
{ timeout: 30_000 },
);
});
@@ -263,12 +263,12 @@ When('I click on the first featured assistant card', async function (this: Custo
// ============================================
Then('I should see filtered assistant cards', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const assistantItems = this.page.locator('[data-testid="assistant-item"]');
// Wait for at least one item to be visible
await expect(assistantItems.first()).toBeVisible({ timeout: 120_000 });
await expect(assistantItems.first()).toBeVisible({ timeout: 30_000 });
// Verify that at least one item exists
const count = await assistantItems.count();
@@ -278,12 +278,12 @@ Then('I should see filtered assistant cards', async function (this: CustomWorld)
Then(
'I should see assistant cards filtered by the selected category',
async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const assistantItems = this.page.locator('[data-testid="assistant-item"]');
// Wait for at least one item to be visible
await expect(assistantItems.first()).toBeVisible({ timeout: 120_000 });
await expect(assistantItems.first()).toBeVisible({ timeout: 30_000 });
// Verify that at least one item exists
const count = await assistantItems.count();
@@ -301,12 +301,12 @@ Then('the URL should contain the category parameter', async function (this: Cust
});
Then('I should see different assistant cards', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const assistantItems = this.page.locator('[data-testid="assistant-item"]');
// Wait for at least one item to be visible
await expect(assistantItems.first()).toBeVisible({ timeout: 120_000 });
await expect(assistantItems.first()).toBeVisible({ timeout: 30_000 });
// Verify that at least one item exists
const count = await assistantItems.count();
@@ -323,7 +323,7 @@ Then('the URL should contain the page parameter', async function (this: CustomWo
});
Then('I should be navigated to the assistant detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Verify that URL changed and contains /assistant/ followed by an identifier
@@ -337,20 +337,20 @@ Then('I should be navigated to the assistant detail page', async function (this:
});
Then('I should see the assistant detail content', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for detail page elements (e.g., title, description, etc.)
const detailContent = this.page.locator('[data-testid="detail-content"], main, article').first();
await expect(detailContent).toBeVisible({ timeout: 120_000 });
await expect(detailContent).toBeVisible({ timeout: 30_000 });
});
Then('I should see model cards in the sorted order', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const modelItems = this.page.locator('[data-testid="model-item"]');
// Wait for at least one item to be visible
await expect(modelItems.first()).toBeVisible({ timeout: 120_000 });
await expect(modelItems.first()).toBeVisible({ timeout: 30_000 });
// Verify that at least one item exists
const count = await modelItems.count();
@@ -358,7 +358,7 @@ Then('I should see model cards in the sorted order', async function (this: Custo
});
Then('I should be navigated to the model detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Verify that URL changed and contains /model/ followed by an identifier
@@ -372,15 +372,15 @@ Then('I should be navigated to the model detail page', async function (this: Cus
});
Then('I should see the model detail content', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for detail page elements
const detailContent = this.page.locator('[data-testid="detail-content"], main, article').first();
await expect(detailContent).toBeVisible({ timeout: 120_000 });
await expect(detailContent).toBeVisible({ timeout: 30_000 });
});
Then('I should be navigated to the provider detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Verify that URL changed and contains /provider/ followed by an identifier
@@ -394,22 +394,22 @@ Then('I should be navigated to the provider detail page', async function (this:
});
Then('I should see the provider detail content', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for detail page elements
const detailContent = this.page.locator('[data-testid="detail-content"], main, article').first();
await expect(detailContent).toBeVisible({ timeout: 120_000 });
await expect(detailContent).toBeVisible({ timeout: 30_000 });
});
Then(
'I should see MCP cards filtered by the selected category',
async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const mcpItems = this.page.locator('[data-testid="mcp-item"]');
// Wait for at least one item to be visible
await expect(mcpItems.first()).toBeVisible({ timeout: 120_000 });
await expect(mcpItems.first()).toBeVisible({ timeout: 30_000 });
// Verify that at least one item exists
const count = await mcpItems.count();
@@ -418,7 +418,7 @@ Then(
);
Then('I should be navigated to the MCP detail page', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Verify that URL changed and contains /mcp/ followed by an identifier
@@ -432,15 +432,15 @@ Then('I should be navigated to the MCP detail page', async function (this: Custo
});
Then('I should see the MCP detail content', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
// Look for detail page elements
const detailContent = this.page.locator('[data-testid="detail-content"], main, article').first();
await expect(detailContent).toBeVisible({ timeout: 120_000 });
await expect(detailContent).toBeVisible({ timeout: 30_000 });
});
Then('I should be navigated to {string}', async function (this: CustomWorld, expectedPath: string) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
await this.page.waitForLoadState('networkidle', { timeout: 30_000 });
const currentUrl = this.page.url();
// Verify that URL contains the expected path
+28 -67
View File
@@ -9,55 +9,40 @@ import { CustomWorld } from '../../support/world';
// Home Page Steps
Then('I should see the featured assistants section', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for featured assistants section by data-testid or heading
// Look for "Featured Agents" heading text (i18n key: home.featuredAssistants)
// Supports: en-US "Featured Agents", zh-CN "推荐助理"
const featuredSection = this.page
.locator(
'[data-testid="featured-assistants"], h2:has-text("Featured"), h3:has-text("Featured")',
)
.getByRole('heading', { name: /featured agents|推荐助理/i })
.first();
await expect(featuredSection).toBeVisible({ timeout: 120_000 });
await expect(featuredSection).toBeVisible({ timeout: 30_000 });
});
Then('I should see the featured MCP tools section', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for featured MCP section by data-testid or heading
const mcpSection = this.page
.locator('[data-testid="featured-mcp"], h2:has-text("MCP"), h3:has-text("MCP")')
.first();
await expect(mcpSection).toBeVisible({ timeout: 120_000 });
// Look for "Featured Skills" heading text (i18n key: home.featuredTools)
// Supports: en-US "Featured Skills", zh-CN "推荐技能"
const mcpSection = this.page.getByRole('heading', { name: /featured skills|推荐技能/i }).first();
await expect(mcpSection).toBeVisible({ timeout: 30_000 });
});
// Assistant List Page Steps
Then('I should see the search bar', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// The SearchBar component from @lobehub/ui may not pass through data-testid
// Try to find the input element within the search component
const searchBar = this.page.locator('input[type="text"]').first();
await expect(searchBar).toBeVisible({ timeout: 120_000 });
// SearchBar component has data-testid="search-bar"
const searchBar = this.page.locator('[data-testid="search-bar"]').first();
await expect(searchBar).toBeVisible({ timeout: 30_000 });
});
Then('I should see the category menu', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for category menu/filter by data-testid or role
const categoryMenu = this.page
.locator('[data-testid="category-menu"], [role="menu"], nav[aria-label*="categor" i]')
.first();
await expect(categoryMenu).toBeVisible({ timeout: 120_000 });
// CategoryMenu component has data-testid="category-menu"
const categoryMenu = this.page.locator('[data-testid="category-menu"]').first();
await expect(categoryMenu).toBeVisible({ timeout: 30_000 });
});
Then('I should see assistant cards', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for assistant items by data-testid
const assistantItems = this.page.locator('[data-testid="assistant-item"]');
// Wait for at least one item to be visible
await expect(assistantItems.first()).toBeVisible({ timeout: 120_000 });
await expect(assistantItems.first()).toBeVisible({ timeout: 30_000 });
// Check we have multiple items
const count = await assistantItems.count();
@@ -65,26 +50,18 @@ Then('I should see assistant cards', async function (this: CustomWorld) {
});
Then('I should see pagination controls', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for pagination controls by data-testid, role, or common pagination elements
const pagination = this.page
.locator(
'[data-testid="pagination"], nav[aria-label*="pagination" i], .pagination, button:has-text("Next"), button:has-text("Previous")',
)
.first();
await expect(pagination).toBeVisible({ timeout: 120_000 });
// Pagination component has data-testid="pagination"
const pagination = this.page.locator('[data-testid="pagination"]').first();
await expect(pagination).toBeVisible({ timeout: 30_000 });
});
// Model List Page Steps
Then('I should see model cards', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for model items by data-testid
// Model items have data-testid="model-item"
const modelItems = this.page.locator('[data-testid="model-item"]');
// Wait for at least one item to be visible
await expect(modelItems.first()).toBeVisible({ timeout: 120_000 });
await expect(modelItems.first()).toBeVisible({ timeout: 30_000 });
// Check we have multiple items
const count = await modelItems.count();
@@ -92,26 +69,18 @@ Then('I should see model cards', async function (this: CustomWorld) {
});
Then('I should see the sort dropdown', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for sort dropdown by data-testid, role, or select element
const sortDropdown = this.page
.locator(
'[data-testid="sort-dropdown"], select, button[aria-label*="sort" i], [role="combobox"]',
)
.first();
await expect(sortDropdown).toBeVisible({ timeout: 120_000 });
// SortButton has data-testid="sort-dropdown"
const sortDropdown = this.page.locator('[data-testid="sort-dropdown"]').first();
await expect(sortDropdown).toBeVisible({ timeout: 30_000 });
});
// Provider List Page Steps
Then('I should see provider cards', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for provider items by data-testid
const providerItems = this.page.locator('[data-testid="provider-item"]');
// Wait for at least one item to be visible
await expect(providerItems.first()).toBeVisible({ timeout: 120_000 });
await expect(providerItems.first()).toBeVisible({ timeout: 30_000 });
// Check we have multiple items
const count = await providerItems.count();
@@ -120,13 +89,11 @@ Then('I should see provider cards', async function (this: CustomWorld) {
// MCP List Page Steps
Then('I should see MCP cards', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for MCP items by data-testid
const mcpItems = this.page.locator('[data-testid="mcp-item"]');
// Wait for at least one item to be visible
await expect(mcpItems.first()).toBeVisible({ timeout: 120_000 });
await expect(mcpItems.first()).toBeVisible({ timeout: 30_000 });
// Check we have multiple items
const count = await mcpItems.count();
@@ -134,13 +101,7 @@ Then('I should see MCP cards', async function (this: CustomWorld) {
});
Then('I should see the category filter', async function (this: CustomWorld) {
await this.page.waitForLoadState('networkidle', { timeout: 120_000 });
// Look for category filter by data-testid or similar to category menu
const categoryFilter = this.page
.locator(
'[data-testid="category-filter"], [data-testid="category-menu"], [role="menu"], nav[aria-label*="categor" i]',
)
.first();
await expect(categoryFilter).toBeVisible({ timeout: 120_000 });
// CategoryMenu component has data-testid="category-menu" (shared across list pages)
const categoryFilter = this.page.locator('[data-testid="category-menu"]').first();
await expect(categoryFilter).toBeVisible({ timeout: 30_000 });
});
+68 -7
View File
@@ -1,28 +1,80 @@
import { After, AfterAll, Before, BeforeAll, Status, setDefaultTimeout } from '@cucumber/cucumber';
import { type Cookie, chromium } from 'playwright';
import { TEST_USER, seedTestUser } from '../support/seedTestUser';
import { startWebServer, stopWebServer } from '../support/webServer';
import { CustomWorld } from '../support/world';
process.env['E2E'] = '1';
// Set default timeout for all steps to 120 seconds
setDefaultTimeout(120_000);
// Set default timeout for all steps to 10 seconds
setDefaultTimeout(10_000);
BeforeAll({ timeout: 120_000 }, async function () {
// Store base URL and cached session cookies
let baseUrl: string;
let sessionCookies: Cookie[] = [];
BeforeAll({ timeout: 600_000 }, async function () {
console.log('🚀 Starting E2E test suite...');
const PORT = process.env.PORT ? Number(process.env.PORT) : 3010;
const BASE_URL = process.env.BASE_URL || `http://localhost:${PORT}`;
const PORT = process.env.PORT ? Number(process.env.PORT) : 3006;
baseUrl = process.env.BASE_URL || `http://localhost:${PORT}`;
console.log(`Base URL: ${BASE_URL}`);
console.log(`Base URL: ${baseUrl}`);
// Seed test user before starting web server
await seedTestUser();
// Start web server if not using external BASE_URL
if (!process.env.BASE_URL) {
await startWebServer({
command: 'npm run dev',
command: `bunx next start -p ${PORT}`,
port: PORT,
reuseExistingServer: !process.env.CI,
timeout: 60_000,
});
}
// Login once and cache the session cookies
console.log('🔐 Performing one-time login to cache session...');
const browser = await chromium.launch({ headless: process.env.HEADLESS !== 'false' });
const context = await browser.newContext();
const page = await context.newPage();
try {
// Navigate to signin page
await page.goto(`${baseUrl}/signin`, { waitUntil: 'networkidle' });
// Step 1: Enter email
console.log(' Step 1: Entering email...');
const emailInput = page.locator('input[id="email"]').first();
await emailInput.waitFor({ state: 'visible', timeout: 30_000 });
await emailInput.fill(TEST_USER.email);
// Click the next button
const nextButton = page.locator('form button').first();
await nextButton.click();
// Step 2: Wait for password step and enter password
console.log(' Step 2: Entering password...');
const passwordInput = page.locator('input[id="password"]').first();
await passwordInput.waitFor({ state: 'visible', timeout: 30_000 });
await passwordInput.fill(TEST_USER.password);
// Click submit button
const submitButton = page.locator('form button').first();
await submitButton.click();
// Wait for navigation away from signin page
await page.waitForURL((url) => !url.pathname.includes('/signin'), { timeout: 30_000 });
await page.waitForLoadState('networkidle');
// Cache the session cookies
sessionCookies = await context.cookies();
console.log(`✅ Login successful, cached ${sessionCookies.length} cookies`);
} finally {
await browser.close();
}
});
Before(async function (this: CustomWorld, { pickle }) {
@@ -30,6 +82,15 @@ Before(async function (this: CustomWorld, { pickle }) {
const testId = pickle.tags.find((tag) => tag.name.startsWith('@DISCOVER-'));
console.log(`\n📝 Running: ${pickle.name}${testId ? ` (${testId.name.replace('@', '')})` : ''}`);
// Setup API mocks before any page navigation
// await mockManager.setup(this.page);
// Set cached session cookies to skip login
if (sessionCookies.length > 0) {
await this.browserContext.addCookies(sessionCookies);
console.log('🍪 Session cookies restored');
}
});
After(async function (this: CustomWorld, { pickle, result }) {
+126
View File
@@ -0,0 +1,126 @@
import bcrypt from 'bcryptjs';
// Test user credentials - these are used for e2e testing only
export const TEST_USER = {
email: 'e2e-test@lobehub.com',
fullName: 'E2E Test User',
id: 'user_e2e_test_user_001',
password: 'TestPassword123!',
username: 'e2e_test_user',
};
/**
* Create a bcrypt password hash
* Better Auth supports bcrypt for passwords migrated from Clerk
*/
async function hashPassword(password: string): Promise<string> {
return bcrypt.hash(password, 10);
}
/**
* Seed test user into the database for e2e testing
* This function connects directly to PostgreSQL and creates the necessary records
*/
export async function seedTestUser(): Promise<void> {
const databaseUrl = process.env.DATABASE_URL;
if (!databaseUrl) {
console.log('⚠️ DATABASE_URL not set, skipping test user seeding');
return;
}
// Dynamic import pg to avoid bundling issues
const { default: pg } = await import('pg');
const client = new pg.Client({ connectionString: databaseUrl });
try {
await client.connect();
console.log('🔌 Connected to database for test user seeding');
const now = new Date().toISOString();
// Use fixed account ID to avoid conflicts when multiple workers run concurrently
const accountId = 'e2e_test_account_001';
// Use upsert to handle concurrent worker execution
// Insert user or do nothing if already exists (handles all unique constraints)
const passwordHash = await hashPassword(TEST_USER.password);
// Use ON CONFLICT DO NOTHING to handle all unique constraint conflicts
// This is safe because we're using fixed test user credentials
// Set onboarding as completed to skip onboarding flow in tests
const onboarding = JSON.stringify({ finishedAt: now, version: 1 });
await client.query(
`INSERT INTO users (id, email, normalized_email, username, full_name, email_verified, onboarding, created_at, updated_at, last_active_at)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $8, $8)
ON CONFLICT (id) DO UPDATE SET onboarding = $7, updated_at = $8`,
[
TEST_USER.id,
TEST_USER.email,
TEST_USER.email.toLowerCase(),
TEST_USER.username,
TEST_USER.fullName,
true, // email_verified
onboarding,
now,
],
);
// Create account record with password (for credential login)
await client.query(
`INSERT INTO accounts (id, user_id, account_id, provider_id, password, created_at, updated_at)
VALUES ($1, $2, $3, $4, $5, $6, $6)
ON CONFLICT DO NOTHING`,
[
accountId,
TEST_USER.id,
TEST_USER.email, // account_id is email for credential provider
'credential', // provider_id
passwordHash,
now,
],
);
console.log('✅ Test user seeded successfully');
console.log(` Email: ${TEST_USER.email}`);
console.log(` Password: ${TEST_USER.password}`);
} catch (error) {
console.error('❌ Failed to seed test user:', error);
throw error;
} finally {
await client.end();
}
}
/**
* Clean up test user data after tests
*/
export async function cleanupTestUser(): Promise<void> {
const databaseUrl = process.env.DATABASE_URL;
if (!databaseUrl) {
return;
}
const { default: pg } = await import('pg');
const client = new pg.Client({ connectionString: databaseUrl });
try {
await client.connect();
// Delete sessions first (foreign key)
await client.query('DELETE FROM auth_sessions WHERE user_id = $1', [TEST_USER.id]);
// Delete accounts (foreign key)
await client.query('DELETE FROM accounts WHERE user_id = $1', [TEST_USER.id]);
// Delete user
await client.query('DELETE FROM users WHERE id = $1', [TEST_USER.id]);
console.log('🧹 Test user cleaned up');
} catch (error) {
console.error('❌ Failed to cleanup test user:', error);
} finally {
await client.end();
}
}
+68 -5
View File
@@ -1,9 +1,13 @@
import { type ChildProcess, exec } from 'node:child_process';
import { existsSync, unlinkSync, writeFileSync } from 'node:fs';
import { resolve } from 'node:path';
let serverProcess: ChildProcess | null = null;
let serverStartPromise: Promise<void> | null = null;
// File-based lock to coordinate between parallel workers
const LOCK_FILE = resolve(__dirname, '../../.server-starting.lock');
interface WebServerOptions {
command: string;
env?: Record<string, string>;
@@ -24,7 +28,7 @@ async function isServerRunning(port: number): Promise<boolean> {
}
export async function startWebServer(options: WebServerOptions): Promise<void> {
const { command, port, timeout = 120_000, env = {}, reuseExistingServer = true } = options;
const { command, port, timeout = 30_000, env = {}, reuseExistingServer = true } = options;
// If server is already being started by another worker, wait for it
if (serverStartPromise) {
@@ -38,6 +42,51 @@ export async function startWebServer(options: WebServerOptions): Promise<void> {
return;
}
// Check if another worker is starting the server (file-based lock for cross-process coordination)
if (existsSync(LOCK_FILE)) {
console.log(`⏳ Another worker is starting the server, waiting...`);
const startTime = Date.now();
while (!(await isServerRunning(port))) {
if (Date.now() - startTime > timeout) {
// Lock file might be stale, try to clean up and proceed
try {
unlinkSync(LOCK_FILE);
} catch {
// Ignore
}
break;
}
await new Promise((resolve) => {
setTimeout(resolve, 1000);
});
}
if (await isServerRunning(port)) {
console.log(`✅ Server is now ready on port ${port}`);
return;
}
}
// Create lock file to signal other workers
try {
writeFileSync(LOCK_FILE, String(process.pid));
} catch {
// Another worker might have created it, check again
if (existsSync(LOCK_FILE)) {
console.log(`⏳ Lock file created by another worker, waiting...`);
const startTime = Date.now();
while (!(await isServerRunning(port))) {
if (Date.now() - startTime > timeout) {
throw new Error(`Server failed to start within ${timeout}ms`);
}
await new Promise((resolve) => {
setTimeout(resolve, 1000);
});
}
console.log(`✅ Server is now ready on port ${port}`);
return;
}
}
// Create a promise for the server startup and store it
serverStartPromise = (async () => {
console.log(`🚀 Starting web server: ${command}`);
@@ -50,12 +99,20 @@ export async function startWebServer(options: WebServerOptions): Promise<void> {
cwd: projectRoot,
env: {
...process.env,
ENABLE_AUTH_PROTECTION: '0',
ENABLE_OIDC: '0',
NEXT_PUBLIC_ENABLE_CLERK_AUTH: '0',
NEXT_PUBLIC_ENABLE_NEXT_AUTH: '0',
// E2E test secret keys
BETTER_AUTH_SECRET: 'e2e-test-secret-key-for-better-auth-32chars!',
KEY_VAULTS_SECRET: 'LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=',
// Disable email verification for e2e
NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION: '0',
// Enable Better Auth for e2e tests with real authentication
NEXT_PUBLIC_ENABLE_BETTER_AUTH: '1',
NODE_OPTIONS: '--max-old-space-size=6144',
PORT: String(port),
// Mock S3 env vars to prevent initialization errors
S3_ACCESS_KEY_ID: 'e2e-mock-access-key',
S3_BUCKET: 'e2e-mock-bucket',
S3_ENDPOINT: 'https://e2e-mock-s3.localhost',
S3_SECRET_ACCESS_KEY: 'e2e-mock-secret-key',
...env,
},
});
@@ -93,4 +150,10 @@ export async function stopWebServer(): Promise<void> {
serverProcess = null;
serverStartPromise = null;
}
// Clean up lock file
try {
unlinkSync(LOCK_FILE);
} catch {
// Ignore if file doesn't exist
}
}
+17 -5
View File
@@ -1,5 +1,7 @@
import { IWorldOptions, World, setWorldConstructor } from '@cucumber/cucumber';
import { Browser, BrowserContext, Page, Response, chromium } from '@playwright/test';
import * as fs from 'node:fs';
import * as path from 'node:path';
export interface TestContext {
[key: string]: any;
@@ -29,7 +31,7 @@ export class CustomWorld extends World {
}
async init() {
const PORT = process.env.PORT ? Number(process.env.PORT) : 3010;
const PORT = process.env.PORT ? Number(process.env.PORT) : 3006;
const BASE_URL = process.env.BASE_URL || `http://localhost:${PORT}`;
this.browser = await chromium.launch({
@@ -42,7 +44,7 @@ export class CustomWorld extends World {
});
// Set expect timeout for assertions (e.g., toBeVisible, toHaveText)
this.browserContext.setDefaultTimeout(120_000);
this.browserContext.setDefaultTimeout(30_000);
this.page = await this.browserContext.newPage();
@@ -58,7 +60,7 @@ export class CustomWorld extends World {
}
});
this.page.setDefaultTimeout(120_000);
this.page.setDefaultTimeout(30_000);
}
async cleanup() {
@@ -68,8 +70,18 @@ export class CustomWorld extends World {
}
async takeScreenshot(name: string): Promise<Buffer> {
console.log(name);
return await this.page.screenshot({ fullPage: true });
const screenshot = await this.page.screenshot({ fullPage: true });
// Save screenshot to file
const screenshotsDir = path.join(process.cwd(), 'screenshots');
if (!fs.existsSync(screenshotsDir)) {
fs.mkdirSync(screenshotsDir, { recursive: true });
}
const filepath = path.join(screenshotsDir, `${name}.png`);
fs.writeFileSync(filepath, screenshot);
console.log(`📸 Screenshot saved: ${filepath}`);
return screenshot;
}
}
+110 -99
View File
@@ -1,39 +1,39 @@
{
"apikey.display.autoGenerated": "تم الإنشاء تلقائيًا",
"apikey.display.autoGenerated": "تم إنشاؤه تلقائيًا",
"apikey.display.copy": "نسخ",
"apikey.display.copyError": "فشل النسخ",
"apikey.display.copySuccess": "تم نسخ مفتاح API إلى الحافظة",
"apikey.display.enterPlaceholder": "الرجاء الإدخال",
"apikey.display.enterPlaceholder": "يرجى الإدخال",
"apikey.display.hide": "إخفاء",
"apikey.display.neverExpires": "لا تنتهي صلاحيتها أبدًا",
"apikey.display.neverUsed": "لم يُستخدم أبدًا",
"apikey.display.show": "عرض",
"apikey.display.neverExpires": "لا تنتهي صلاحيته",
"apikey.display.neverUsed": "لم يُستخدم من قبل",
"apikey.display.show": "إظهار",
"apikey.form.fields.expiresAt.label": "تاريخ الانتهاء",
"apikey.form.fields.expiresAt.placeholder": "لا تنتهي صلاحيتها أبدًا",
"apikey.form.fields.expiresAt.placeholder": "لا تنتهي صلاحيته",
"apikey.form.fields.name.label": "الاسم",
"apikey.form.fields.name.placeholder": "الرجاء إدخال اسم مفتاح API",
"apikey.form.fields.name.placeholder": "يرجى إدخال اسم مفتاح API",
"apikey.form.submit": "إنشاء",
"apikey.form.title": "إنشاء مفتاح API",
"apikey.list.actions.create": "إنشاء مفتاح API",
"apikey.list.actions.delete": "حذف",
"apikey.list.actions.deleteConfirm.actions.cancel": "إلغاء",
"apikey.list.actions.deleteConfirm.actions.ok": "تأكيد",
"apikey.list.actions.deleteConfirm.content": "هل أنت متأكد من حذف هذا المفتاح؟",
"apikey.list.actions.deleteConfirm.title": "تأكيد العملية",
"apikey.list.actions.deleteConfirm.content": "هل أنت متأكد أنك تريد حذف مفتاح API هذا؟",
"apikey.list.actions.deleteConfirm.title": "تأكيد الإجراء",
"apikey.list.columns.actions": "الإجراءات",
"apikey.list.columns.expiresAt": "تاريخ الانتهاء",
"apikey.list.columns.key": "المفتاح",
"apikey.list.columns.lastUsedAt": "آخر استخدام",
"apikey.list.columns.name": "الاسم",
"apikey.list.columns.status": "حالة التفعيل",
"apikey.list.columns.status": "حالة التمكين",
"apikey.list.title": "قائمة مفاتيح API",
"apikey.validation.required": "لا يمكن أن يكون المحتوى فارغًا",
"apikey.validation.required": "لا يمكن ترك هذا الحقل فارغًا",
"betterAuth.errors.confirmPasswordRequired": "يرجى تأكيد كلمة المرور",
"betterAuth.errors.emailExists": "هذا البريد الإلكتروني مسجّل بالفعل، يرجى تسجيل الدخول مباشرة",
"betterAuth.errors.emailInvalid": "يرجى إدخال عنوان بريد إلكتروني صالح",
"betterAuth.errors.emailNotRegistered": "هذا البريد الإلكتروني غير مسجل",
"betterAuth.errors.emailNotVerified": "لم يتم التحقق من البريد الإلكتروني، يرجى التحقق أولاً",
"betterAuth.errors.emailRequired": "يرجى إدخال عنوان البريد الإلكتروني",
"betterAuth.errors.emailExists": "هذا البريد الإلكتروني مسجل بالفعل. يرجى تسجيل الدخول بدلاً من ذلك",
"betterAuth.errors.emailInvalid": "يرجى إدخال بريد إلكتروني أو اسم مستخدم صالح",
"betterAuth.errors.emailNotRegistered": "هذا البريد الإلكتروني أو اسم المستخدم غير مسجل",
"betterAuth.errors.emailNotVerified": "البريد الإلكتروني غير مفعل، يرجى تفعيله أولاً",
"betterAuth.errors.emailRequired": "يرجى إدخال بريدك الإلكتروني أو اسم المستخدم",
"betterAuth.errors.firstNameRequired": "يرجى إدخال الاسم الأول",
"betterAuth.errors.lastNameRequired": "يرجى إدخال اسم العائلة",
"betterAuth.errors.loginFailed": "فشل تسجيل الدخول، يرجى التحقق من البريد الإلكتروني وكلمة المرور",
@@ -44,77 +44,82 @@
"betterAuth.errors.passwordRequired": "يرجى إدخال كلمة المرور",
"betterAuth.errors.usernameNotRegistered": "اسم المستخدم هذا غير مسجل",
"betterAuth.errors.usernameRequired": "يرجى إدخال اسم المستخدم",
"betterAuth.resetPassword.backToSignIn": "العودة إلى تسجيل الدخول",
"betterAuth.resetPassword.backToSignIn": "العودة لتسجيل الدخول",
"betterAuth.resetPassword.confirmPasswordPlaceholder": "تأكيد كلمة المرور الجديدة",
"betterAuth.resetPassword.confirmPasswordRequired": "يرجى تأكيد كلمة المرور الجديدة",
"betterAuth.resetPassword.description": "يرجى إدخال كلمة المرور الجديدة",
"betterAuth.resetPassword.error": "فشل إعادة تعيين كلمة المرور، يرجى المحاولة مرة أخرى",
"betterAuth.resetPassword.error": "فشل في إعادة تعيين كلمة المرور، يرجى المحاولة مرة أخرى",
"betterAuth.resetPassword.invalidToken": "رابط إعادة التعيين غير صالح أو منتهي الصلاحية",
"betterAuth.resetPassword.newPasswordPlaceholder": "أدخل كلمة المرور الجديدة",
"betterAuth.resetPassword.passwordMismatch": "كلمتا المرور غير متطابقتين",
"betterAuth.resetPassword.submit": "إعادة تعيين كلمة المرور",
"betterAuth.resetPassword.success": "تمت إعادة تعيين كلمة المرور بنجاح، يرجى تسجيل الدخول باستخدام كلمة المرور الجديدة",
"betterAuth.resetPassword.success": "تمت إعادة تعيين كلمة المرور بنجاح، يرجى تسجيل الدخول بكلمة المرور الجديدة",
"betterAuth.resetPassword.title": "إعادة تعيين كلمة المرور",
"betterAuth.signin.backToEmail": "العودة لتعديل البريد الإلكتروني",
"betterAuth.signin.continueWithApple": "تسجيل الدخول باستخدام Apple",
"betterAuth.signin.backToEmail": "العودة لتغيير البريد الإلكتروني",
"betterAuth.signin.continueWithApple": "المتابعة باستخدام Apple",
"betterAuth.signin.continueWithAuth0": "تسجيل الدخول باستخدام Auth0",
"betterAuth.signin.continueWithAuthelia": "تسجيل الدخول باستخدام Authelia",
"betterAuth.signin.continueWithAuthentik": "تسجيل الدخول باستخدام Authentik",
"betterAuth.signin.continueWithCasdoor": "تسجيل الدخول باستخدام Casdoor",
"betterAuth.signin.continueWithCloudflareZeroTrust": "تسجيل الدخول باستخدام Cloudflare Zero Trust",
"betterAuth.signin.continueWithCognito": "تسجيل الدخول باستخدام AWS Cognito",
"betterAuth.signin.continueWithCognito": "المتابعة باستخدام AWS Cognito",
"betterAuth.signin.continueWithFeishu": "تسجيل الدخول باستخدام Feishu",
"betterAuth.signin.continueWithGithub": "تسجيل الدخول باستخدام GitHub",
"betterAuth.signin.continueWithGoogle": "تسجيل الدخول باستخدام Google",
"betterAuth.signin.continueWithGithub": "المتابعة باستخدام GitHub",
"betterAuth.signin.continueWithGoogle": "المتابعة باستخدام Google",
"betterAuth.signin.continueWithKeycloak": "تسجيل الدخول باستخدام Keycloak",
"betterAuth.signin.continueWithLogto": "تسجيل الدخول باستخدام Logto",
"betterAuth.signin.continueWithMicrosoft": "تسجيل الدخول باستخدام Microsoft",
"betterAuth.signin.continueWithMicrosoft": "المتابعة باستخدام Microsoft",
"betterAuth.signin.continueWithOIDC": "تسجيل الدخول باستخدام OIDC",
"betterAuth.signin.continueWithOkta": "تسجيل الدخول باستخدام Okta",
"betterAuth.signin.continueWithWechat": "تسجيل الدخول باستخدام WeChat",
"betterAuth.signin.continueWithZitadel": "تسجيل الدخول باستخدام Zitadel",
"betterAuth.signin.emailPlaceholder": "يرجى إدخال عنوان البريد الإلكتروني",
"betterAuth.signin.emailPlaceholder": "أدخل بريدك الإلكتروني أو اسم المستخدم",
"betterAuth.signin.emailStep.title": "تسجيل الدخول",
"betterAuth.signin.error": "فشل تسجيل الدخول، يرجى التحقق من البريد الإلكتروني وكلمة المرور",
"betterAuth.signin.forgotPassword": "هل نسيت كلمة المرور؟",
"betterAuth.signin.forgotPasswordError": "فشل إرسال رابط إعادة تعيين كلمة المرور",
"betterAuth.signin.forgotPasswordError": "فشل في إرسال رابط إعادة تعيين كلمة المرور",
"betterAuth.signin.forgotPasswordSent": "تم إرسال رابط إعادة تعيين كلمة المرور، يرجى التحقق من بريدك الإلكتروني",
"betterAuth.signin.invalidReferralCodeContent": "رمز الإحالة \"{{code}}\" الذي استخدمته غير صالح أو منتهي الصلاحية. هل ترغب في المتابعة؟",
"betterAuth.signin.invalidReferralCodeTitle": "رمز إحالة غير صالح",
"betterAuth.signin.magicLinkButton": "إرسال رابط تسجيل الدخول",
"betterAuth.signin.magicLinkError": "فشل إرسال رابط تسجيل الدخول، يرجى المحاولة لاحقًا",
"betterAuth.signin.magicLinkError": "فشل في إرسال رابط تسجيل الدخول، يرجى المحاولة لاحقًا",
"betterAuth.signin.magicLinkSent": "تم إرسال رابط تسجيل الدخول، يرجى التحقق من بريدك الإلكتروني",
"betterAuth.signin.nextStep": "الخطوة التالية",
"betterAuth.signin.nextStep": "التالي",
"betterAuth.signin.noAccount": "ليس لديك حساب؟",
"betterAuth.signin.orContinueWith": "أو المتابعة باستخدام",
"betterAuth.signin.passwordPlaceholder": "يرجى إدخال كلمة المرور",
"betterAuth.signin.passwordStep.subtitle": "يرجى إدخال كلمة المرور للمتابعة",
"betterAuth.signin.orContinueWith": "أو",
"betterAuth.signin.passwordPlaceholder": "أدخل كلمة المرور",
"betterAuth.signin.passwordStep.subtitle": "أدخل كلمة المرور للمتابعة",
"betterAuth.signin.signupLink": "سجّل الآن",
"betterAuth.signin.socialError": "فشل تسجيل الدخول عبر الشبكات الاجتماعية، يرجى المحاولة مرة أخرى",
"betterAuth.signin.socialOnlyHint": "تم تسجيل هذا البريد الإلكتروني باستخدام حساب اجتماعي، يرجى تسجيل الدخول باستخدامه",
"betterAuth.signin.socialError": "فشل تسجيل الدخول الاجتماعي، يرجى المحاولة مرة أخرى",
"betterAuth.signin.socialOnlyHint": "تم تسجيل هذا البريد الإلكتروني باستخدام حساب اجتماعي. يرجى تسجيل الدخول باستخدام مزود الخدمة المناسب.",
"betterAuth.signin.submit": "تسجيل الدخول",
"betterAuth.signup.confirmPasswordPlaceholder": "يرجى تأكيد كلمة المرور",
"betterAuth.signup.emailPlaceholder": "يرجى إدخال عنوان البريد الإلكتروني",
"betterAuth.signup.confirmPasswordPlaceholder": "تأكيد كلمة المرور",
"betterAuth.signup.emailPlaceholder": "أدخل عنوان بريدك الإلكتروني",
"betterAuth.signup.error": "فشل التسجيل، يرجى المحاولة مرة أخرى",
"betterAuth.signup.firstNamePlaceholder": "الاسم الأول",
"betterAuth.signup.hasAccount": "هل لديك حساب؟",
"betterAuth.signup.hasAccount": "هل لديك حساب بالفعل؟",
"betterAuth.signup.invalidReferralCodeContent": "رمز الإحالة \"{{code}}\" الذي أدخلته غير صالح أو منتهي الصلاحية. هل ترغب في المتابعة؟",
"betterAuth.signup.invalidReferralCodeTitle": "رمز إحالة غير صالح",
"betterAuth.signup.lastNamePlaceholder": "اسم العائلة",
"betterAuth.signup.passwordPlaceholder": "يرجى إدخال كلمة المرور",
"betterAuth.signup.signinLink": "تسجيل الدخول الآن",
"betterAuth.signup.submit": "تسجيل",
"betterAuth.signup.subtitle": "ابدأ مساحة التعاون الخاصة بـ Agents",
"betterAuth.signup.passwordPlaceholder": "أدخل كلمة المرور",
"betterAuth.signup.referralCodePlaceholder": "رمز الإحالة (اختياري)",
"betterAuth.signup.signinLink": "سجّل الدخول الآن",
"betterAuth.signup.submit": "إنشاء حساب",
"betterAuth.signup.subtitle": "ابدأ مساحة التعاون الخاصة بك مع Agents",
"betterAuth.signup.success": "تم التسجيل بنجاح! يرجى التحقق من بريدك الإلكتروني لتأكيد الحساب",
"betterAuth.signup.title": "إنشاء حساب",
"betterAuth.signup.usernamePlaceholder": "يرجى إدخال اسم المستخدم",
"betterAuth.verifyEmail.backToSignIn": "العودة إلى تسجيل الدخول",
"betterAuth.verifyEmail.checkSpam": "إذا لم تتلقَ البريد الإلكتروني، يرجى التحقق من مجلد الرسائل غير المرغوب فيها",
"betterAuth.signup.usernamePlaceholder": "أدخل اسم المستخدم",
"betterAuth.verifyEmail.backToSignIn": "العودة لتسجيل الدخول",
"betterAuth.verifyEmail.checkSpam": "إذا لم يصلك البريد الإلكتروني، يرجى التحقق من مجلد الرسائل غير المرغوب فيها",
"betterAuth.verifyEmail.description": "تم إرسال رسالة تحقق إلى {{email}}",
"betterAuth.verifyEmail.resend.button": "إعادة إرسال رسالة التحقق",
"betterAuth.verifyEmail.resend.error": "فشل الإرسال، يرجى المحاولة لاحقًا",
"betterAuth.verifyEmail.resend.error": "فشل الإرسال. يرجى المحاولة لاحقًا.",
"betterAuth.verifyEmail.resend.noEmail": "عنوان البريد الإلكتروني مفقود",
"betterAuth.verifyEmail.resend.success": "تمت إعادة إرسال رسالة التحقق، يرجى التحقق من بريدك الإلكتروني",
"betterAuth.verifyEmail.resend.success": "تمت إعادة إرسال رسالة التحقق. يرجى التحقق من بريدك الوارد.",
"betterAuth.verifyEmail.title": "تحقق من بريدك الإلكتروني",
"date.prevMonth": "الشهر الماضي",
"date.recent30Days": "آخر 30 يومًا",
"footer.agreement": "بالمتابعة، فإنك تؤكد أنك قد قرأت ووافقت على <terms>الشروط والأحكام</terms> و<privacy>سياسة الخصوصية</privacy>",
"footer.agreement": "بالمتابعة، فإنك تؤكد أنك قرأت ووافقت على <terms>الشروط والأحكام</terms> و<privacy>سياسة الخصوصية</privacy>",
"footer.privacy": "سياسة الخصوصية",
"footer.terms": "شروط الخدمة",
"header.desc": "إدارة معلومات حسابك.",
@@ -133,104 +138,110 @@
"heatmaps.months.nov": "نوفمبر",
"heatmaps.months.oct": "أكتوبر",
"heatmaps.months.sep": "سبتمبر",
"heatmaps.tooltip": "{{date}} أرسل {{count}} رسائل في ذلك اليوم",
"heatmaps.totalCount": "إجمالي {{count}} رسائل أرسلت في العام الماضي",
"heatmaps.tooltip": "{{date}} تم إرسال {{count}} رسالة في هذا اليوم",
"heatmaps.totalCount": "تم إرسال ما مجموعه {{count}} رسالة خلال العام الماضي",
"login": "تسجيل الدخول",
"loginOrSignup": "تسجيل الدخول / الاشتراك",
"profile.authorizations.actions.revoke": "إلغاء التفويض",
"profile.authorizations.revoke.description": "بعد إلغاء التفويض، لن يتمكن هذا التطبيق من الوصول إلى بياناتك. لإعادة استخدامه، ستحتاج إلى منحه التفويض مرة أخرى.",
"profile.authorizations.revoke.title": "هل أنت متأكد من إلغاء التفويض لـ {{name}}؟",
"loginGuide.f1": "احصل على استخدام مجاني",
"loginGuide.f2": "مزامنة الرسائل عبر الأجهزة",
"loginGuide.f3": "الوصول إلى مجموعة كبيرة من الوكلاء",
"loginGuide.f4": "استكشاف الإضافات القوية",
"loginGuide.title": "بعد تسجيل الدخول، يمكنك:",
"loginOrSignup": "تسجيل الدخول / إنشاء حساب",
"profile.account": "الحساب",
"profile.authorizations.actions.revoke": "إلغاء",
"profile.authorizations.revoke.description": "بعد الإلغاء، لن يتمكن الأداة من الوصول إلى بياناتك. ستحتاج إلى إعادة التفويض لاستخدامها مرة أخرى.",
"profile.authorizations.revoke.title": "هل تريد إلغاء تفويض {{name}}؟",
"profile.authorizations.title": "إدارة التفويضات",
"profile.avatar": "الصورة الشخصية",
"profile.avatar": "الصورة الرمزية",
"profile.cancel": "إلغاء",
"profile.changePassword": "إعادة تعيين كلمة المرور",
"profile.email": "عنوان البريد الإلكتروني",
"profile.fullName": "الاسم الكامل",
"profile.fullNameInputHint": "يرجى إدخال الاسم الكامل الجديد",
"profile.interests": "مجالات الاهتمام",
"profile.fullNameInputHint": "يرجى إدخال اسمك الكامل الجديد",
"profile.interests": "الاهتمامات",
"profile.interestsAdd": "إضافة",
"profile.interestsPlaceholder": "أدخل مجالات الاهتمام",
"profile.interestsPlaceholder": "أدخل اهتمامًا",
"profile.password": "كلمة المرور",
"profile.resetPasswordError": "فشل إرسال رابط إعادة تعيين كلمة المرور",
"profile.resetPasswordError": "فشل في إرسال رابط إعادة تعيين كلمة المرور",
"profile.resetPasswordSent": "تم إرسال رابط إعادة تعيين كلمة المرور، يرجى التحقق من بريدك الإلكتروني",
"profile.save": "حفظ",
"profile.setPassword": "تعيين كلمة المرور",
"profile.sso.link.button": "ربط الحساب",
"profile.sso.link.success": "تم ربط الحساب بنجاح",
"profile.sso.loading": "جارٍ تحميل الحسابات المرتبطة من طرف ثالث",
"profile.sso.providers": "الحسابات المتصلة",
"profile.sso.unlink.description": "بعد إلغاء الربط، لن تتمكن من تسجيل الدخول باستخدام حساب {{provider}} \"{{providerAccountId}}\". إذا كنت ترغب في ربط حساب {{provider}} بهذا الحساب مرة أخرى، يرجى التأكد من أن عنوان البريد الإلكتروني لحساب {{provider}} هو {{email}}، وسنقوم بربطه تلقائيًا عند تسجيل الدخول.",
"profile.sso.unlink.forbidden": "يجب أن تحتفظ بحساب طرف ثالث واحد على الأقل مرتبطًا.",
"profile.sso.unlink.title": "هل تريد فصل حساب الطرف الثالث {{provider}}؟",
"profile.title": "تفاصيل الملف الشخصي",
"profile.updateAvatar": "تحديث الصورة الشخصية",
"profile.sso.loading": "جاري تحميل الحسابات المرتبطة من جهات خارجية",
"profile.sso.providers": "الحسابات المرتبطة",
"profile.sso.unlink.description": "ستحتاج إلى إعادة التفويض أو الربط لتسجيل الدخول باستخدام {{provider}} مرة أخرى بعد إلغاء الربط.",
"profile.sso.unlink.forbidden": "يجب الاحتفاظ بطريقة تسجيل دخول واحدة على الأقل.",
"profile.sso.unlink.title": "هل تريد إلغاء ربط حساب {{provider}}؟",
"profile.title": "الملف الشخصي",
"profile.updateAvatar": "تحديث الصورة الرمزية",
"profile.updateFullName": "تحديث الاسم الكامل",
"profile.updateInterests": "تحديث مجالات الاهتمام",
"profile.updateInterests": "تحديث الاهتمامات",
"profile.updateUsername": "تحديث اسم المستخدم",
"profile.username": "اسم المستخدم",
"profile.usernameDuplicate": "اسم المستخدم مستخدم بالفعل",
"profile.usernameInputHint": "يرجى إدخال اسم مستخدم جديد",
"profile.usernamePlaceholder": "يرجى إدخال اسم مستخدم مكوّن من أحرف أو أرقام أو شرطة سفلية",
"profile.usernameRequired": "اسم المستخدم لا يمكن أن يكون فارغًا",
"profile.usernameRule": "اسم المستخدم يجب أن يحتوي فقط على أحرف أو أرقام أو شرطة سفلية",
"profile.usernameInputHint": "يرجى إدخال اسم المستخدم الجديد",
"profile.usernamePlaceholder": "أدخل اسم مستخدم يحتوي على أحرف أو أرقام أو شرطة سفلية",
"profile.usernameRequired": "لا يمكن أن يكون اسم المستخدم فارغًا",
"profile.usernameRule": "يمكن أن يحتوي اسم المستخدم على أحرف أو أرقام أو شرطة سفلية فقط",
"profile.usernameUpdateFailed": "فشل في تحديث اسم المستخدم، يرجى المحاولة لاحقًا",
"signin.subtitle": "سجّل أو قم بتسجيل الدخول إلى حسابك في {{appName}}",
"signin.title": "مساحة التعاون الخاصة بك في Agents",
"signin.subtitle": "سجّل أو قم بتسجيل الدخول إلى حساب {{appName}} الخاص بك",
"signin.title": "للتعاون مع الوكلاء",
"signout": "تسجيل الخروج",
"signup": "الاشتراك",
"signup": "إنشاء حساب",
"stats.aiheatmaps": "مؤشر النشاط",
"stats.assistants": "المساعدون",
"stats.assistantsRank.left": "المساعد",
"stats.assistants": "الوكلاء",
"stats.assistantsRank.left": "الوكيل",
"stats.assistantsRank.right": "المواضيع",
"stats.assistantsRank.title": "ترتيب استخدام المساعد",
"stats.assistantsRank.title": "ترتيب استخدام الوكلاء",
"stats.createdAt": "تاريخ التسجيل",
"stats.days": "أيام",
"stats.empty.desc": "يرجى تجميع المزيد من بيانات الدردشة للعرض",
"stats.empty.desc": "يرجى جمع المزيد من بيانات الدردشة لعرضها",
"stats.empty.title": "لا توجد بيانات",
"stats.lastYearActivity": "النشاط في العام الماضي",
"stats.lastYearActivity": "النشاط خلال العام الماضي",
"stats.loginGuide.f1": "احصل على استخدام مجاني",
"stats.loginGuide.f2": "مزامنة الرسائل عبر الأجهزة المتعددة",
"stats.loginGuide.f3": "تمتع بمساعدين متنوعين",
"stats.loginGuide.f4": "استكشف الإضافات القوية",
"stats.loginGuide.title": "بعد تسجيل الدخول يمكنك:",
"stats.messages": "رسائل",
"stats.loginGuide.f2": "مزامنة الرسائل عبر الأجهزة",
"stats.loginGuide.f3": "الوصول إلى مجموعة كبيرة من الوكلاء",
"stats.loginGuide.f4": "استكشاف المهارات القوية",
"stats.loginGuide.title": "بعد تسجيل الدخول، يمكنك:",
"stats.messages": "الرسائل",
"stats.modelsRank.left": "النموذج",
"stats.modelsRank.right": "الرسائل",
"stats.modelsRank.title": "ترتيب استخدام النموذج",
"stats.share.title": "مؤشر نشاط الذكاء الاصطناعي الخاص بي",
"stats.modelsRank.title": "ترتيب استخدام النماذج",
"stats.share.title": "مؤشر نشاطي مع الذكاء الاصطناعي",
"stats.topics": "المواضيع",
"stats.topicsRank.left": "الموضوع",
"stats.topicsRank.right": "الرسائل",
"stats.topicsRank.title": "ترتيب محتوى الموضوع",
"stats.updatedAt": اريخ التحديث",
"stats.welcome": "{{username}}، هذا هو يومك <span>{{days}}</span> مع {{appName}}",
"stats.words": "كلمات",
"stats.topicsRank.title": "ترتيب محتوى المواضيع",
"stats.updatedAt": م التحديث في",
"stats.welcome": "{{username}}، هذه هي يومك <span>{{days}}</span> مع {{appName}}",
"stats.words": "إجمالي الكلمات",
"tab.apikey": "إدارة مفاتيح API",
"tab.profile": "حسابي",
"tab.security": "الأمان",
"tab.stats": "الإحصائيات",
"tab.usage": "إحصاءات الاستخدام",
"tab.usage": "إحصائيات الاستخدام",
"usage.activeModels.modelTable": "قائمة النماذج",
"usage.activeModels.models": "النماذج النشطة",
"usage.activeModels.providerTable": "قائمة المزودين",
"usage.activeModels.providers": "المزودون النشطون",
"usage.activeModels.table.calls": "عدد الاستدعاءات",
"usage.activeModels.table.calls": "المكالمات",
"usage.activeModels.table.model": "النموذج",
"usage.activeModels.table.provider": "المزود",
"usage.activeModels.table.spend": "التكلفة",
"usage.cards.month.modelCalls": "استدعاءات النموذج",
"usage.cards.month.title": "إنفاق هذا الشهر",
"usage.activeModels.table.spend": "الإنفاق",
"usage.cards.month.modelCalls": "مكالمات النموذج",
"usage.cards.month.title": "الإنفاق هذا الشهر",
"usage.cards.today.title": "إنفاق اليوم",
"usage.cards.today.yesterday": "أمس",
"usage.table.actions": "إجراءات",
"usage.table.actions": "الإجراءات",
"usage.table.createdAt": "وقت الاستخدام",
"usage.table.inputTokens": "رموز الإدخال",
"usage.table.inputTokens": "الرموز المدخلة",
"usage.table.model": "النموذج",
"usage.table.outputTokens": "رموز الإخراج",
"usage.table.spend": "التكلفة",
"usage.table.outputTokens": "الرموز الناتجة",
"usage.table.spend": "الإنفاق",
"usage.table.tps": "TPS",
"usage.table.ttft": "TTFT",
"usage.table.type": "نوع الاستدعاء",
"usage.table.type": "نوع المكالمة",
"usage.trends.spend": "المبلغ",
"usage.trends.tokens": "الرموز",
"usage.welcome.model": "النموذج",
+13 -13
View File
@@ -1,36 +1,36 @@
{
"actions.discord": "اذهب إلى Discord لإرسال الملاحظات",
"actions.discord": "اذهب إلى Discord للحصول على الملاحظات",
"actions.home": "العودة إلى الصفحة الرئيسية",
"actions.retry": "تسجيل الدخول مرة أخرى",
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "تم ربط هذا الحساب بمستخدم آخر",
"codes.ACCOUNT_ALREADY_LINKED_TO_DIFFERENT_USER": "هذا الحساب مرتبط بالفعل بمستخدم آخر",
"codes.ACCOUNT_NOT_FOUND": "لم يتم العثور على الحساب",
"codes.CREDENTIAL_ACCOUNT_NOT_FOUND": "حساب بيانات الاعتماد غير موجود",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "لا يمكن تعديل البريد الإلكتروني لهذا الحساب",
"codes.EMAIL_CAN_NOT_BE_UPDATED": "لا يمكن تحديث البريد الإلكتروني لهذا الحساب",
"codes.EMAIL_NOT_VERIFIED": "يرجى التحقق من بريدك الإلكتروني أولاً",
"codes.FAILED_TO_CREATE_SESSION": "فشل في إنشاء الجلسة",
"codes.FAILED_TO_CREATE_USER": "فشل في إنشاء المستخدم",
"codes.FAILED_TO_GET_SESSION": "فشل في الحصول على الجلسة",
"codes.FAILED_TO_GET_USER_INFO": "فشل في جلب معلومات المستخدم",
"codes.FAILED_TO_GET_SESSION": "فشل في استرجاع الجلسة",
"codes.FAILED_TO_GET_USER_INFO": "فشل في استرجاع معلومات المستخدم",
"codes.FAILED_TO_UNLINK_LAST_ACCOUNT": "لا يمكن إلغاء ربط آخر حساب مرتبط",
"codes.FAILED_TO_UPDATE_USER": "فشل في تحديث معلومات المستخدم",
"codes.ID_TOKEN_NOT_SUPPORTED": "رمز الهوية غير مدعوم",
"codes.INVALID_EMAIL": "تنسيق البريد الإلكتروني غير صحيح",
"codes.INVALID_EMAIL": "تنسيق البريد الإلكتروني غير صالح",
"codes.INVALID_EMAIL_OR_PASSWORD": "البريد الإلكتروني أو كلمة المرور غير صحيحة",
"codes.INVALID_PASSWORD": "تنسيق كلمة المرور غير صالح",
"codes.INVALID_TOKEN": "الرمز غير صالح أو منتهي الصلاحية",
"codes.PASSWORD_TOO_LONG": "كلمة المرور طويلة جداً",
"codes.PASSWORD_TOO_SHORT": "كلمة المرور قصيرة جداً",
"codes.PROVIDER_NOT_FOUND": "لم يتم العثور على مزود الهوية المناسب",
"codes.RATE_LIMIT_EXCEEDED": "عدد الطلبات كبير جداً، يرجى المحاولة لاحقاً",
"codes.SESSION_EXPIRED": "انتهت صلاحية الجلسة، يرجى تسجيل الدخول مجدداً",
"codes.SOCIAL_ACCOUNT_ALREADY_LINKED": "تم ربط هذا الحساب الاجتماعي بمستخدم آخر",
"codes.PROVIDER_NOT_FOUND": "لم يتم العثور على إعدادات موفر الهوية",
"codes.RATE_LIMIT_EXCEEDED": "عدد كبير جداً من الطلبات، يرجى المحاولة لاحقاً",
"codes.SESSION_EXPIRED": "انتهت صلاحية الجلسة، يرجى تسجيل الدخول مرة أخرى",
"codes.SOCIAL_ACCOUNT_ALREADY_LINKED": "هذا الحساب الاجتماعي مرتبط بالفعل بمستخدم آخر",
"codes.UNEXPECTED_ERROR": "حدث خطأ غير متوقع، يرجى المحاولة مرة أخرى",
"codes.UNKNOWN": "حدث خطأ غير معروف، يرجى المحاولة مرة أخرى أو التواصل مع الدعم",
"codes.USER_ALREADY_EXISTS": "المستخدم موجود بالفعل",
"codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "تم استخدام هذا البريد الإلكتروني، يرجى تجربة بريد آخر",
"codes.USER_ALREADY_HAS_PASSWORD": "تم تعيين كلمة مرور لهذا الحساب مسبقاً",
"codes.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL": "البريد الإلكتروني مستخدم بالفعل، يرجى تجربة بريد آخر",
"codes.USER_ALREADY_HAS_PASSWORD": "هذا الحساب يحتوي بالفعل على كلمة مرور",
"codes.USER_BANNED": "تم حظر هذا المستخدم",
"codes.USER_EMAIL_NOT_FOUND": "لم يتم العثور على البريد الإلكتروني",
"codes.USER_NOT_FOUND": "لم يتم العثور على المستخدم",
"title": "حدث خطأ في التحقق من الهوية"
"title": "خطأ في المصادقة"
}

Some files were not shown because too many files have changed in this diff Show More