@lobehub/chat 0.74.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +26 -5
  3. package/README.zh-CN.md +25 -4
  4. package/locales/en_US/market.json +12 -0
  5. package/locales/en_US/plugin.json +11 -2
  6. package/locales/en_US/setting.json +3 -1
  7. package/locales/ru_RU/market.json +12 -0
  8. package/locales/ru_RU/plugin.json +44 -49
  9. package/locales/ru_RU/setting.json +3 -1
  10. package/locales/zh_CN/common.json +1 -1
  11. package/locales/zh_CN/market.json +12 -0
  12. package/locales/zh_CN/plugin.json +19 -5
  13. package/locales/zh_CN/setting.json +62 -14
  14. package/package.json +5 -4
  15. package/scripts/i18nWorkflow/const.ts +19 -0
  16. package/scripts/i18nWorkflow/genDefaultLocale.ts +19 -0
  17. package/scripts/i18nWorkflow/genDiff.ts +50 -0
  18. package/scripts/i18nWorkflow/genResources.ts +26 -0
  19. package/scripts/i18nWorkflow/index.ts +15 -0
  20. package/scripts/i18nWorkflow/utils.ts +85 -0
  21. package/src/const/layoutTokens.ts +3 -1
  22. package/src/const/market.ts +15 -0
  23. package/src/const/url.ts +29 -4
  24. package/src/features/AgentSetting/AgentConfig/index.tsx +1 -2
  25. package/src/features/AgentSetting/AgentPlugin/MarketSettingModal.tsx +1 -1
  26. package/src/features/AgentSetting/store/initialState.ts +1 -1
  27. package/src/features/MobileTabBar/index.tsx +2 -2
  28. package/src/features/SideBar/TopActions.tsx +2 -2
  29. package/src/locales/default/market.ts +12 -0
  30. package/src/locales/resources/en_US.ts +2 -0
  31. package/src/locales/resources/ru_RU.ts +2 -0
  32. package/src/locales/resources/zh_CN.ts +2 -0
  33. package/src/pages/chat/features/Conversation/Input/{Action.tsx → ActionBar/ActionLeft.tsx} +2 -2
  34. package/src/pages/chat/features/Conversation/Input/ActionBar/ActionRight.tsx +36 -0
  35. package/src/pages/chat/features/Conversation/Input/Desktop.tsx +40 -0
  36. package/src/pages/chat/features/Conversation/Input/Footer/SaveTopic.tsx +27 -0
  37. package/src/pages/chat/features/Conversation/Input/Footer/index.tsx +35 -0
  38. package/src/pages/chat/features/Conversation/Input/Mobile.tsx +12 -0
  39. package/src/pages/chat/features/Conversation/Input/index.tsx +20 -38
  40. package/src/pages/chat/features/SessionList/Header/Desktop.tsx +6 -13
  41. package/src/pages/chat/features/SessionList/Header/Mobile.tsx +1 -1
  42. package/src/pages/chat/features/SessionList/List/AddButton.tsx +1 -1
  43. package/src/pages/chat/features/SessionList/List/Item/index.tsx +4 -3
  44. package/src/pages/chat/features/SessionList/List/index.tsx +1 -3
  45. package/src/pages/chat/features/SessionList/Mobile.tsx +2 -12
  46. package/src/pages/chat/features/SessionSearchBar/index.tsx +26 -0
  47. package/src/pages/chat/features/Sidebar/Topic/index.tsx +18 -6
  48. package/src/pages/chat/features/Sidebar/TopicSearchBar/index.tsx +24 -0
  49. package/src/pages/chat/features/Sidebar/index.tsx +2 -9
  50. package/src/pages/market/features/AgentCard/AgentCardBanner.tsx +64 -0
  51. package/src/pages/market/features/AgentCard/AgentCardItem.tsx +57 -0
  52. package/src/pages/market/features/AgentCard/Loading.tsx +13 -0
  53. package/src/pages/market/features/AgentCard/index.tsx +37 -0
  54. package/src/pages/market/features/AgentCard/style.ts +22 -0
  55. package/src/pages/market/features/AgentSearchBar/index.tsx +26 -0
  56. package/src/pages/market/features/Header/Desktop.tsx +15 -4
  57. package/src/pages/market/features/Header/Mobile.tsx +7 -24
  58. package/src/pages/market/features/SideBar/AgentInfo/Comment.tsx +16 -0
  59. package/src/pages/market/features/SideBar/AgentInfo/Header.tsx +68 -0
  60. package/src/pages/market/features/SideBar/AgentInfo/Loading.tsx +61 -0
  61. package/src/pages/market/features/SideBar/AgentInfo/TokenTag.tsx +25 -0
  62. package/src/pages/market/features/SideBar/AgentInfo/index.tsx +68 -0
  63. package/src/pages/market/features/SideBar/AgentInfo/style.ts +46 -0
  64. package/src/pages/market/features/SideBar/Desktop.tsx +70 -0
  65. package/src/pages/market/features/SideBar/Mobile.tsx +36 -0
  66. package/src/pages/market/features/SideBar/index.tsx +23 -0
  67. package/src/pages/market/features/TagList/index.tsx +29 -0
  68. package/src/pages/market/index.page.tsx +11 -2
  69. package/src/pages/market/layout.mobile.tsx +8 -7
  70. package/src/pages/market/layout.tsx +39 -1
  71. package/src/pages/settings/features/Header/Desktop.tsx +2 -4
  72. package/src/pages/settings/features/Header/Mobile.tsx +1 -1
  73. package/src/pages/settings/features/Settings/Common.tsx +1 -2
  74. package/src/pages/settings/features/Settings/index.tsx +17 -4
  75. package/src/services/agentMarket.ts +21 -0
  76. package/src/store/global/initialState.ts +1 -2
  77. package/src/store/market/action.ts +57 -0
  78. package/src/store/market/index.ts +3 -0
  79. package/src/store/market/initialState.ts +17 -0
  80. package/src/store/market/selectors.ts +36 -0
  81. package/src/store/market/store.ts +51 -0
  82. package/src/store/session/slices/session/action.ts +5 -3
  83. package/src/store/session/slices/session/initialState.ts +2 -0
  84. package/src/store/session/slices/session/reducers/session.test.ts +4 -4
  85. package/src/types/market.ts +19 -0
  86. package/src/types/meta.ts +1 -1
  87. package/src/utils/filter.ts +1 -1
  88. package/src/utils/findDuplicates.ts +22 -0
  89. package/scripts/genDefaultLocale.ts +0 -18
  90. package/scripts/genResources.ts +0 -51
  91. package/scripts/toc.ts +0 -7
  92. package/src/components/Empty/index.tsx +0 -63
  93. package/src/components/Empty/style.ts +0 -31
  94. package/src/components/SelectWithImg/index.tsx +0 -97
  95. package/src/components/SelectWithImg/styles.ts +0 -43
  96. package/src/pages/chat/features/Conversation/Input/ActionRight.tsx +0 -31
  97. package/src/pages/chat/features/Conversation/Input/Footer.tsx +0 -49
  98. /package/src/components/{ManifestPreviewer.tsx → ManifestPreviewer/index.tsx} +0 -0
  99. /package/src/pages/chat/features/Conversation/Input/{Token.tsx → ActionBar/Token.tsx} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,67 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 0.75.0](https://github.com/lobehub/lobe-chat/compare/v0.74.0...v0.75.0)
6
+
7
+ <sup>Released on **2023-09-11**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Fefactor index url fetch.
12
+
13
+ #### ✨ Features
14
+
15
+ - **market**: Add prompt token count.
16
+ - **misc**: Add agents market and improve UI components, Add and refactor components for chat input feature, Add functions for generating and analyzing JSON files, generating resource files and table of contents, and formatting console output, Add new settings for Azure OpenAI and OpenAI in locales files, Add new string, create AgentModal component, implement GridCardItem and Loading components, import AgentModal, Add SideBar component, new actions, and update market store state and selectors, Add translations and new setting to "setting.json", Improve functionality and user interface of market page, Modify market features components and update CSS styles, support add agent to chat.
17
+
18
+ #### 🐛 Bug Fixes
19
+
20
+ - **misc**: Fix fetcher, Fix market sidebar scroll and add i18n.
21
+
22
+ #### 💄 Styles
23
+
24
+ - **misc**: Update loading style and compatible with unknown agent identifier.
25
+
26
+ <br/>
27
+
28
+ <details>
29
+ <summary><kbd>Improvements and Fixes</kbd></summary>
30
+
31
+ #### Code refactoring
32
+
33
+ - **misc**: Fefactor index url fetch ([257584b](https://github.com/lobehub/lobe-chat/commit/257584b))
34
+
35
+ #### What's improved
36
+
37
+ - **market**: Add prompt token count ([16221a7](https://github.com/lobehub/lobe-chat/commit/16221a7))
38
+ - **misc**: Add agents market and improve UI components ([116c136](https://github.com/lobehub/lobe-chat/commit/116c136))
39
+ - **misc**: Add and refactor components for chat input feature ([f1ac9fe](https://github.com/lobehub/lobe-chat/commit/f1ac9fe))
40
+ - **misc**: Add functions for generating and analyzing JSON files, generating resource files and table of contents, and formatting console output ([d7c2e74](https://github.com/lobehub/lobe-chat/commit/d7c2e74))
41
+ - **misc**: Add new settings for Azure OpenAI and OpenAI in locales files ([e9e25b5](https://github.com/lobehub/lobe-chat/commit/e9e25b5))
42
+ - **misc**: Add new string, create AgentModal component, implement GridCardItem and Loading components, import AgentModal ([2a0e59f](https://github.com/lobehub/lobe-chat/commit/2a0e59f))
43
+ - **misc**: Add SideBar component, new actions, and update market store state and selectors ([8f6cfda](https://github.com/lobehub/lobe-chat/commit/8f6cfda))
44
+ - **misc**: Add translations and new setting to "setting.json" ([aca3822](https://github.com/lobehub/lobe-chat/commit/aca3822))
45
+ - **misc**: Improve functionality and user interface of market page ([1d465d6](https://github.com/lobehub/lobe-chat/commit/1d465d6))
46
+ - **misc**: Modify market features components and update CSS styles ([97e4179](https://github.com/lobehub/lobe-chat/commit/97e4179))
47
+ - **misc**: Support add agent to chat ([3b930c4](https://github.com/lobehub/lobe-chat/commit/3b930c4))
48
+
49
+ #### What's fixed
50
+
51
+ - **misc**: Fix fetcher ([171b2da](https://github.com/lobehub/lobe-chat/commit/171b2da))
52
+ - **misc**: Fix market sidebar scroll and add i18n ([9c897d2](https://github.com/lobehub/lobe-chat/commit/9c897d2))
53
+
54
+ #### Styles
55
+
56
+ - **misc**: Update loading style and compatible with unknown agent identifier ([2e2231d](https://github.com/lobehub/lobe-chat/commit/2e2231d))
57
+
58
+ </details>
59
+
60
+ <div align="right">
61
+
62
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
63
+
64
+ </div>
65
+
5
66
  ## [Version 0.74.0](https://github.com/lobehub/lobe-chat/compare/v0.73.0...v0.74.0)
6
67
 
7
68
  <sup>Released on **2023-09-11**</sup>
package/README.md CHANGED
@@ -16,8 +16,9 @@ LobeChat is a open-source, extensible ([Function Calling][fc-url]), high-perform
16
16
 
17
17
  [![release][release-shield]][release-url]
18
18
  [![releaseDate][release-date-shield]][release-date-url]
19
+ [![][license-shield]][fossa-license-url]
19
20
  [![ciTest][ci-test-shield]][ci-test-url]
20
- [![ciRelease][ci-release-shield]][ci-release-url] <br/>
21
+ [![ciRelease][ci-release-shield]][ci-release-url]<br/>
21
22
  [![contributors][contributors-shield]][contributors-url]
22
23
  [![forks][forks-shield]][forks-url]
23
24
  [![stargazers][stargazers-shield]][stargazers-url]
@@ -79,7 +80,7 @@ Please be aware that LobeChat is currently under active development,feedback i
79
80
  - [x] 🔒 **Privacy Protection**: All data is stored locally in the user's browser, ensuring user privacy;
80
81
  - [x] 🤖 **Customizable Assistant Roles**: Users can create, share, and debug personalized dialogue assistant roles according to their needs, providing more flexible and personalized dialogue functions;
81
82
  - [x] 🌐 **Custom Domain**: If users have their own domain, they can bind it to the platform for quick access to the dialogue assistant from anywhere.
82
- - [ ] 🏬 **Role Market** (WIP): A Role Market is provided where users can select their preferred dialogue assistant roles, enriching the content and style of the dialogue;
83
+ - [x] 🏬 **Role Market**: A Role Market is provided where users can select their preferred dialogue assistant roles, enriching the content and style of the dialogue;
83
84
 
84
85
  > **👉 Roadmap:** You can find our upcoming [Roadmap][project-url] plans in the Projects section.
85
86
 
@@ -100,7 +101,8 @@ LobeChat provides a [self-hosted version][deploy-url] with Vercel. This allows y
100
101
 
101
102
  [![Deploy with Vercel][deploy-button-image]][deploy-url]
102
103
 
103
- > **👉 Note:** This project provides some additional configuration items, set with environment variables:
104
+ > **Note**\
105
+ > This project provides some additional configuration items, set with environment variables:
104
106
 
105
107
  | Environment Variable | Required | Description | Example |
106
108
  | -------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
@@ -136,7 +138,8 @@ If you have deployed your own project following the one-click deployment steps i
136
138
 
137
139
  Plugins provide a means to extend the [Function Calling][fc-url] capabilities of LobeChat. They can be used to introduce new function calls, and even new ways to render message results.
138
140
 
139
- > **👉 Note:** The plugin system is currently undergoing significant development. You can expect to see it in <https://github.com/lobehub/lobe-chat/issues/97>.
141
+ > **Note**\
142
+ > The plugin system is currently undergoing significant development. You can expect to see it in <https://github.com/lobehub/lobe-chat/issues/97>.
140
143
 
141
144
  - [@lobehub/lobe-chat-plugins][lobe-chat-plugins]: This is the plugin index for LobeChat. It accesses index.json from this repository to display a list of available plugins for LobeChat to the user.
142
145
  - [@lobehub/chat-plugin-sdk][chat-plugin-sdk]: The LobeChat Plugin SDK assists you in creating exceptional chat plugins for Lobe Chat.
@@ -179,6 +182,10 @@ $ pnpm dev
179
182
 
180
183
  Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub [Issues][issues-url] and [Projects][project-url] to get stuck in to show us what you’re made of.
181
184
 
185
+ [![][pr-welcome-shield]][pr-welcome-url]
186
+ [![][submit-agents-shield]][submit-agents-url]
187
+ [![][submit-plugin-shield]][submit-plugin-url]
188
+
182
189
  <!-- CONTRIBUTION GROUP -->
183
190
 
184
191
  > 📊 Total: <kbd>**5**</kbd>
@@ -221,7 +228,12 @@ Contributions of all types are more than welcome, if you are interested in contr
221
228
 
222
229
  ---
223
230
 
224
- #### 📝 License
231
+ <details>
232
+ <summary><h4>📝 License</h4></summary>
233
+
234
+ [![][fossa-license-shield]][fossa-license-url]
235
+
236
+ </details>
225
237
 
226
238
  Copyright © 2023 [LobeHub][profile-url]. <br />
227
239
  This project is [MIT](./LICENSE) licensed.
@@ -247,9 +259,12 @@ This project is [MIT](./LICENSE) licensed.
247
259
  [fc-url]: https://sspai.com/post/81986
248
260
  [forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat.svg?style=flat
249
261
  [forks-url]: https://github.com/lobehub/lobe-chat/network/members
262
+ [fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
263
+ [fossa-license-url]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
250
264
  [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-chat
251
265
  [issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
252
266
  [issues-url]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
267
+ [license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=shield&issueType=license
253
268
  [lobe-assets-github]: https://github.com/lobehub/lobe-assets
254
269
  [lobe-chat-plugins]: https://github.com/lobehub/lobe-chat-plugins
255
270
  [lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
@@ -263,6 +278,8 @@ This project is [MIT](./LICENSE) licensed.
263
278
  [lobe-ui-url]: https://www.npmjs.com/package/@lobehub/ui
264
279
  [official-shield]: https://img.shields.io/website?down_message=offline&label=🤯%20Try%20LobeChat&up_message=online&url=https%3A%2F%2Flobe-chat.vercel.app&style=for-the-badge
265
280
  [official-url]: https://lobe-chat.vercel.app
281
+ [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-FEE064?style=for-the-badge
282
+ [pr-welcome-url]: https://github.com/lobehub/lobe-chat/pulls
266
283
  [profile-url]: https://github.com/lobehub
267
284
  [project-url]: https://github.com/lobehub/lobe-chat/projects
268
285
  [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?style=flat
@@ -271,3 +288,7 @@ This project is [MIT](./LICENSE) licensed.
271
288
  [release-url]: https://www.npmjs.com/package/@lobehub/chat
272
289
  [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat.svg?style=flat
273
290
  [stargazers-url]: https://github.com/lobehub/lobe-chat/stargazers
291
+ [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-9DFF92?style=for-the-badge
292
+ [submit-agents-url]: https://github.com/lobehub/lobe-chat-agents
293
+ [submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-50E3C2?style=for-the-badge
294
+ [submit-plugin-url]: https://github.com/lobehub/lobe-chat-plugins
package/README.zh-CN.md CHANGED
@@ -16,6 +16,7 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性
16
16
 
17
17
  [![release][release-shield]][release-url]
18
18
  [![releaseDate][release-date-shield]][release-date-url]
19
+ [![][license-shield]][fossa-license-url]
19
20
  [![ciTest][ci-test-shield]][ci-test-url]
20
21
  [![ciRelease][ci-release-shield]][ci-release-url] <br/>
21
22
  [![contributors][contributors-shield]][contributors-url]
@@ -79,7 +80,7 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性
79
80
  - [x] 🔒 **隐私安全**:所有数据保存在用户浏览器本地,保证用户的隐私安全;
80
81
  - [x] 🤖 **自定义助手角色**:用户可以根据自己的需求创建、分享和调试个性化的对话助手角色,提供更加灵活和个性化的对话功能;
81
82
  - [x] 🌐 **自定义域名**:如果用户拥有自己的域名,可以将其绑定到平台上,方便在任何地方快速访问对话助手。
82
- - [ ] 🏬 **角色市场**(WIP):提供角色市场,用户可以在市场上选择自己喜欢的对话助手角色,丰富对话的内容和风格;
83
+ - [x] 🏬 **角色市场**:提供角色市场,用户可以在市场上选择自己喜欢的对话助手角色,丰富对话的内容和风格;
83
84
 
84
85
  > **👉 Roadmap:** 你可以在 Projects 中找到我们后续的 [Roadmap][project-url] 计划
85
86
 
@@ -100,7 +101,8 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-url]。这使你可以在
100
101
 
101
102
  [![使用 Vercel 部署][deploy-button-image]][deploy-url]
102
103
 
103
- > **👉 提示:** 本项目提供了一些额外的配置项,使用环境变量进行设置:
104
+ > **Note**\
105
+ > 本项目提供了一些额外的配置项,使用环境变量进行设置:
104
106
 
105
107
  | 环境变量 | 类型 | 描述 | 示例 |
106
108
  | ------------------ | ---- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
@@ -136,7 +138,8 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-url]。这使你可以在
136
138
 
137
139
  插件提供了扩展 LobeChat [Function Calling][fc-url] 能力的方法。可以用于引入新的 Function Calling,甚至是新的消息结果渲染方式。
138
140
 
139
- > **👉 提示:** 插件系统目前正在进行重大开发。您可以在 <https://github.com/lobehub/lobe-chat/issues/97> 中了解更多信息。
141
+ > **Note**\
142
+ > 插件系统目前正在进行重大开发。您可以在 <https://github.com/lobehub/lobe-chat/issues/97> 中了解更多信息。
140
143
 
141
144
  - [@lobehub/lobe-chat-plugins][lobe-chat-plugins]:这是 LobeChat 的插件索引。它从该仓库的 index.json 中获取插件列表并显示给用户。
142
145
  - [@lobehub/chat-plugin-sdk][chat-plugin-sdk]:LobeChat 插件 SDK 可帮助您创建出色的 Lobe Chat 插件。
@@ -179,6 +182,10 @@ $ pnpm dev
179
182
 
180
183
  我们非常欢迎各种形式的贡献。如果你对贡献代码感兴趣,可以查看我们的 GitHub [Issues][issues-url] 和 [Projects][project-url],大展身手,向我们展示你的奇思妙想。
181
184
 
185
+ [![][pr-welcome-shield]][pr-welcome-url]
186
+ [![][submit-agents-shield]][submit-agents-url]
187
+ [![][submit-plugin-shield]][submit-plugin-url]
188
+
182
189
  <!-- CONTRIBUTION GROUP -->
183
190
 
184
191
  > 📊 Total: <kbd>**5**</kbd>
@@ -221,7 +228,12 @@ $ pnpm dev
221
228
 
222
229
  ---
223
230
 
224
- #### 📝 License
231
+ <details>
232
+ <summary><h4>📝 License</h4></summary>
233
+
234
+ [![][fossa-license-shield]][fossa-license-url]
235
+
236
+ </details>
225
237
 
226
238
  Copyright © 2023 [LobeHub][profile-url]. <br />
227
239
  This project is [MIT](./LICENSE) licensed.
@@ -247,9 +259,12 @@ This project is [MIT](./LICENSE) licensed.
247
259
  [fc-url]: https://sspai.com/post/81986
248
260
  [forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat.svg?style=flat
249
261
  [forks-url]: https://github.com/lobehub/lobe-chat/network/members
262
+ [fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
263
+ [fossa-license-url]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
250
264
  [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-chat
251
265
  [issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
252
266
  [issues-url]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
267
+ [license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=shield&issueType=license
253
268
  [lobe-assets-github]: https://github.com/lobehub/lobe-assets
254
269
  [lobe-chat-plugins]: https://github.com/lobehub/lobe-chat-plugins
255
270
  [lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
@@ -263,6 +278,8 @@ This project is [MIT](./LICENSE) licensed.
263
278
  [lobe-ui-url]: https://www.npmjs.com/package/@lobehub/ui
264
279
  [official-shield]: https://img.shields.io/website?down_message=offline&label=🤯%20Try%20LobeChat&up_message=online&url=https%3A%2F%2Flobe-chat.vercel.app&style=for-the-badge
265
280
  [official-url]: https://lobe-chat.vercel.app
281
+ [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-FEE064?style=for-the-badge
282
+ [pr-welcome-url]: https://github.com/lobehub/lobe-chat/pulls
266
283
  [profile-url]: https://github.com/lobehub
267
284
  [project-url]: https://github.com/lobehub/lobe-chat/projects
268
285
  [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?style=flat
@@ -271,3 +288,7 @@ This project is [MIT](./LICENSE) licensed.
271
288
  [release-url]: https://www.npmjs.com/package/@lobehub/chat
272
289
  [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat.svg?style=flat
273
290
  [stargazers-url]: https://github.com/lobehub/lobe-chat/stargazers
291
+ [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-9DFF92?style=for-the-badge
292
+ [submit-agents-url]: https://github.com/lobehub/lobe-chat-agents
293
+ [submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-50E3C2?style=for-the-badge
294
+ [submit-plugin-url]: https://github.com/lobehub/lobe-chat-plugins
@@ -0,0 +1,12 @@
1
+ {
2
+ "addAgent": "Add Assistant",
3
+ "search": {
4
+ "placeholder": "Search assistant name, description or keywords..."
5
+ },
6
+ "sidebar": {
7
+ "comment": "Comments",
8
+ "prompt": "Prompts",
9
+ "title": "Assistant Details"
10
+ },
11
+ "submitAgent": "Submit Assistant"
12
+ }
@@ -84,7 +84,8 @@
84
84
  "list": {
85
85
  "item": {
86
86
  "local.config": "Configuration",
87
- "local.title": "Local"
87
+ "local.title": "Local",
88
+ "deprecated.title": "Deleted"
88
89
  }
89
90
  },
90
91
  "loading": {
@@ -113,5 +114,13 @@
113
114
  "title": "Weather Data for the Next 7 Days ({{city}})",
114
115
  "updateAt": "Last Updated"
115
116
  },
116
- "responseData": "Response Data"
117
+ "responseData": "Response Data",
118
+ "settings": {
119
+ "indexUrl": {
120
+ "title": "Marketplace Index",
121
+ "tooltip": "Editing is not supported at the moment"
122
+ },
123
+ "modalDesc": "After configuring the address of the plugin marketplace, you can use a custom plugin marketplace",
124
+ "title": "Configure Plugin Marketplace"
125
+ }
117
126
  }
@@ -189,7 +189,9 @@
189
189
  "title": "Plugin List",
190
190
  "add": "Add",
191
191
  "addTooltip": "Add custom plugin",
192
- "config": "{{id}} Plugin Configuration"
192
+ "config": "{{id}} Plugin Configuration",
193
+ "clearDeprecated": "Remove Deprecated Plugins",
194
+ "settings": "Plugin Marketplace Settings"
193
195
  },
194
196
  "settingSystem": {
195
197
  "accessCode": {
@@ -0,0 +1,12 @@
1
+ {
2
+ "addAgent": "Добавить агента",
3
+ "search": {
4
+ "placeholder": "Введите название или ключевое слово помощника..."
5
+ },
6
+ "sidebar": {
7
+ "comment": "Комментарии",
8
+ "prompt": "Подсказка",
9
+ "title": "Детали агента"
10
+ },
11
+ "submitAgent": "Отправить агента"
12
+ }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "debug": {
3
- "arguments": "Аргументы",
3
+ "arguments": "Аргументы вызова",
4
4
  "function_call": "Вызов функции",
5
5
  "response": "Ответ"
6
6
  },
7
7
  "dev": {
8
- "confirmDeleteDevPlugin": "Вы уверены, что хотите удалить этот локальный плагин? После удаления он не может быть восстановлен.",
8
+ "confirmDeleteDevPlugin": "Вы собираетесь удалить этот локальный плагин. После удаления его будет невозможно восстановить. Вы уверены, что хотите удалить этот плагин?",
9
9
  "deleteSuccess": "Плагин успешно удален",
10
10
  "manifest": {
11
11
  "identifier": {
@@ -13,14 +13,14 @@
13
13
  "label": "Идентификатор"
14
14
  },
15
15
  "mode": {
16
- "local": "Визуальная конфигурация",
17
- "local-tooltip": "Визуальная конфигурация в настоящее время не поддерживается",
16
+ "local": "Визуальная настройка",
17
+ "local-tooltip": "Визуальная настройка временно недоступна",
18
18
  "url": "Онлайн-ссылка"
19
19
  },
20
20
  "name": {
21
- "desc": "Название плагина",
22
- "label": "Название",
23
- "placeholder": "Поисковая система"
21
+ "desc": "Заголовок плагина",
22
+ "label": "Заголовок",
23
+ "placeholder": "Поиск в поисковой системе"
24
24
  }
25
25
  },
26
26
  "meta": {
@@ -29,83 +29,78 @@
29
29
  "label": "Автор"
30
30
  },
31
31
  "avatar": {
32
- "desc": "Иконка плагина, может представлять собой Emoji или URL",
32
+ "desc": "Иконка плагина, можно использовать Emoji или URL",
33
33
  "label": "Иконка"
34
34
  },
35
35
  "description": {
36
36
  "desc": "Описание плагина",
37
37
  "label": "Описание",
38
- "placeholder": "Получение информации из поисковых систем"
38
+ "placeholder": "Получение информации из поисковой системы"
39
39
  },
40
- "formFieldRequired": "Это поле обязательно для заполнения",
40
+ "formFieldRequired": "Это обязательное поле",
41
41
  "homepage": {
42
42
  "desc": "Домашняя страница плагина",
43
- "label": "Homepage"
43
+ "label": "Домашняя страница"
44
44
  },
45
45
  "identifier": {
46
- "desc": "Уникальный идентификатор плагина, поддерживаются только буквенно-цифровые символы, дефис - и символ подчеркивания _",
47
- "errorDuplicate": "Идентификатор уже используется другим плагином, пожалуйста, измените идентификатор",
46
+ "desc": "Уникальный идентификатор плагина, будет автоматически определен из манифеста",
47
+ "errorDuplicate": "Идентификатор уже используется другим плагином. Пожалуйста, измените идентификатор",
48
48
  "label": "Идентификатор",
49
- "pattenErrorMessage": "Допускаются только алфавитно-цифровые символы, дефис - и символ подчеркивания _"
49
+ "pattenErrorMessage": "Можно вводить только латинские буквы, цифры, - и _"
50
50
  },
51
51
  "manifest": {
52
- "desc": "LobeChat установит плагин по этой ссылке",
53
- "invalid": "Входная ссылка манифеста недействительна или не соответствует спецификации",
54
- "label": "URL-адрес манифеста плагина",
55
- "urlError": "Пожалуйста, введите действительный URL"
52
+ "desc": "LobeChat будет устанавливать плагин по этой ссылке",
53
+ "jsonInvalid": "Манифест не соответствует стандарту. Результат проверки: \n\n {{error}}",
54
+ "label": "URL-адрес описания плагина",
55
+ "preview": "Предварительный просмотр манифеста",
56
+ "refresh": "Обновить",
57
+ "requestError": "Не удалось получить данные по этой ссылке. Пожалуйста, введите действительную ссылку и проверьте, разрешен ли кросс-доменный доступ",
58
+ "urlError": "Ссылка не возвращает данные в формате JSON. Пожалуйста, введите действительную ссылку"
56
59
  },
57
60
  "title": {
58
- "desc": "Название плагина",
59
- "label": "Название",
60
- "placeholder": "Поисковая система"
61
+ "desc": "Заголовок плагина",
62
+ "label": "Заголовок",
63
+ "placeholder": "Поиск в поисковой системе"
61
64
  }
62
65
  },
63
- "metaConfig": "Конфигурация метаданных плагина",
64
- "modalDesc": "После добавления пользовательского плагина его можно использовать для проверки разработки плагина или непосредственно в разговорах. Более подробная информация приведена в документации по разработке плагина.",
66
+ "metaConfig": "Настройка метаданных плагина",
67
+ "modalDesc": "После добавления пользовательского плагина его можно использовать для проверки разработки плагинов или непосредственно в сеансе. См. документацию по разработке плагинов",
65
68
  "preview": {
66
- "card": "Предварительный просмотр отображения плагина",
69
+ "card": "Предварительный просмотр плагина",
67
70
  "desc": "Предварительный просмотр описания плагина",
68
71
  "title": "Предварительный просмотр имени плагина"
69
72
  },
70
73
  "save": "Сохранить",
71
74
  "saveSuccess": "Настройки плагина успешно сохранены",
72
75
  "tabs": {
73
- "manifest": "Описание функции Манифест (Manifest)",
76
+ "manifest": "Описание функций (Манифест)",
74
77
  "meta": "Метаданные плагина"
75
78
  },
76
- "title": "Добавить пользовательский плагин"
79
+ "title": "Добавить пользовательский плагин",
80
+ "update": "Обновить",
81
+ "updateSuccess": "Настройки плагина успешно обновлены"
77
82
  },
78
83
  "list": {
79
84
  "item": {
80
- "local.config": "Конфигурация",
81
- "local.title": "Местный"
85
+ "deprecated.title": "Удалено",
86
+ "local.config": "Настройка",
87
+ "local.title": "Пользовательский"
82
88
  }
83
89
  },
84
90
  "loading": {
85
- "content": "Загрузка...",
86
- "plugin": "Плагин запущен..."
91
+ "content": "Получение данных...",
92
+ "plugin": "Выполнение плагина..."
87
93
  },
88
94
  "pluginList": "Список плагинов",
89
95
  "plugins": {
90
- "realtimeWeather": "Погода в реальном времени",
91
- "searchEngine": "Поисковая система",
92
- "undefined": "Обнаружение плагина...",
93
- "websiteCrawler": "Website Crawler",
94
- "неизвестно": "Идет обнаружение плагина..."
96
+ "unknown": "Проверка плагинов..."
95
97
  },
96
- "realtimeWeather": {
97
- "data": {
98
- "дата": "Дата",
99
- "daytemp_float": "Дневная температура",
100
- "dayweather": "Погода в дневное время",
101
- "Дневной ветер": "Дневной ветер",
102
- "nighttemp_float": "Температура в ночное время",
103
- "nightweather": "Погода в ночное время",
104
- "ночной ветер": "Ночной ветер",
105
- "week": "Неделя"
98
+ "settings": {
99
+ "indexUrl": {
100
+ "title": "Индекс рынка",
101
+ "tooltip": "Редактирование в настоящее время недоступно"
106
102
  },
107
- "title": "Данные о погоде на ближайшие 7 дней ({{city}})",
108
- "updateAt": "Последнее обновление"
109
- },
110
- "responseData": "Ответные данные"
103
+ "modalDesc": "После настройки адреса рынка плагинов можно использовать пользовательский рынок плагинов",
104
+ "title": "Настройки рынка плагинов"
105
+ }
111
106
  }
@@ -189,7 +189,9 @@
189
189
  "title": "Список плагинов",
190
190
  "add": "Добавить",
191
191
  "addTooltip": "Добавить кастомный плагин",
192
- "config": "{{id}} Конфигурация плагина"
192
+ "config": "{{id}} Конфигурация плагина",
193
+ "clearDeprecated": "Удалить недействительные плагины",
194
+ "settings": "Настройки плагинов"
193
195
  },
194
196
  "settingSystem": {
195
197
  "accessCode": {
@@ -36,7 +36,7 @@
36
36
  "import": "导入配置",
37
37
  "inbox": {
38
38
  "defaultMessage": "你好,我是你的智能助手,你可以问我任何问题,我会尽力回答你。如果需要获得更加专业或定制的助手,可以点击<kbd>+</kbd>创建自定义助手",
39
- "desc": "开启大脑集群,激发思维火花。你的智能助理,就在这里与你交流一切",
39
+ "desc": "开启大脑集群,激发思维火花。你的智能助理,在这里与你交流一切",
40
40
  "title": "随便聊聊"
41
41
  },
42
42
  "message": {
@@ -0,0 +1,12 @@
1
+ {
2
+ "addAgent": "添加助手",
3
+ "search": {
4
+ "placeholder": "搜索助手名称介绍或关键词..."
5
+ },
6
+ "sidebar": {
7
+ "comment": "讨论区",
8
+ "prompt": "提示词",
9
+ "title": "助手详情"
10
+ },
11
+ "submitAgent": "提交助手"
12
+ }
@@ -43,16 +43,19 @@
43
43
  "label": "首页"
44
44
  },
45
45
  "identifier": {
46
- "desc": "插件的唯一标识,仅支持英文字符、数字、破折号 - 、下划线 _",
46
+ "desc": "插件的唯一标识,将从 manifest 中自动识别",
47
47
  "errorDuplicate": "标识符和已有插件重复,请修改标识符",
48
48
  "label": "标识符",
49
49
  "pattenErrorMessage": "只能输入英文字符、数字 、- 和_ 这两个符号"
50
50
  },
51
51
  "manifest": {
52
52
  "desc": "LobeChat 将会通过该链接安装插件",
53
- "invalid": "输入的 manifest 链接无效,或 manifest 不符合规范",
53
+ "jsonInvalid": " manifest 不符合规范,校验结果: \n\n {{error}}",
54
54
  "label": "插件描述文件 Url 地址",
55
- "urlError": "请输入一个有效的网址"
55
+ "preview": "预览 Manifest",
56
+ "refresh": "刷新",
57
+ "requestError": "请求该链接失败,请输入一个有效的链接,并检查链接是否允许跨域访问",
58
+ "urlError": "该链接没有返回 JSON 格式的内容, 请输入一个有效的链接"
56
59
  },
57
60
  "title": {
58
61
  "desc": "插件标题",
@@ -73,12 +76,15 @@
73
76
  "manifest": "功能描述清单 (Manifest)",
74
77
  "meta": "插件元信息"
75
78
  },
76
- "title": "添加自定义插件"
79
+ "title": "添加自定义插件",
80
+ "update": "更新",
81
+ "updateSuccess": "插件设置更新成功"
77
82
  },
78
83
  "list": {
79
84
  "item": {
85
+ "deprecated.title": "已删除",
80
86
  "local.config": "配置",
81
- "local.title": "本地"
87
+ "local.title": "自定义"
82
88
  }
83
89
  },
84
90
  "loading": {
@@ -88,5 +94,13 @@
88
94
  "pluginList": "插件列表",
89
95
  "plugins": {
90
96
  "unknown": "插件检测中..."
97
+ },
98
+ "settings": {
99
+ "indexUrl": {
100
+ "title": "市场索引",
101
+ "tooltip": "暂不支持编辑"
102
+ },
103
+ "modalDesc": "配置插件市场的地址后,可以使用自定义的插件市场",
104
+ "title": "设置插件市场"
91
105
  }
92
106
  }