@lobehub/chat 0.59.0 → 0.60.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 0.60.0](https://github.com/lobehub/lobe-chat/compare/v0.59.0...v0.60.0)
6
+
7
+ <sup>Released on **2023-08-26**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Refactor with new market index url.
12
+
13
+ #### ✨ Features
14
+
15
+ - **misc**: 支持插件 manifest 加载失败后重试.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### Code refactoring
23
+
24
+ - **misc**: Refactor with new market index url ([d2834b7](https://github.com/lobehub/lobe-chat/commit/d2834b7))
25
+
26
+ #### What's improved
27
+
28
+ - **misc**: 支持插件 manifest 加载失败后重试 ([f36378e](https://github.com/lobehub/lobe-chat/commit/f36378e))
29
+
30
+ </details>
31
+
32
+ <div align="right">
33
+
34
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
35
+
36
+ </div>
37
+
5
38
  ## [Version 0.59.0](https://github.com/lobehub/lobe-chat/compare/v0.58.0...v0.59.0)
6
39
 
7
40
  <sup>Released on **2023-08-26**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
package/src/const/url.ts CHANGED
@@ -7,5 +7,4 @@ export const FEEDBACK = pkg.bugs.url;
7
7
  export const DISCORD = 'https://discord.gg/AYFPHvv2jT';
8
8
 
9
9
  export const PLUGINS_INDEX_URL =
10
- process.env.PLUGINS_INDEX_URL ??
11
- 'https://registry.npmmirror.com/@lobehub/lobe-chat-plugins/latest/files';
10
+ process.env.PLUGINS_INDEX_URL ?? 'https://chat-plugins-index.lobehub.com';
@@ -11,7 +11,10 @@ import { pluginHelpers, pluginSelectors, usePluginStore } from '@/store/plugin';
11
11
 
12
12
  const PluginStatus = memo<{ id: string; title?: string }>(({ title, id }) => {
13
13
  const { t } = useTranslation('common');
14
- const status = usePluginStore(pluginSelectors.getPluginManifestLoadingStatus(id));
14
+ const [status, fetchPluginManifest] = usePluginStore((s) => [
15
+ pluginSelectors.getPluginManifestLoadingStatus(id)(s),
16
+ s.fetchPluginManifest,
17
+ ]);
15
18
 
16
19
  const renderStatus = useMemo(() => {
17
20
  switch (status) {
@@ -19,7 +22,16 @@ const PluginStatus = memo<{ id: string; title?: string }>(({ title, id }) => {
19
22
  return <Badge color={'blue'} status={'processing'} />;
20
23
  }
21
24
  case 'error': {
22
- return <ActionIcon icon={LucideRotateCw} size={'small'} title={t('retry')} />;
25
+ return (
26
+ <ActionIcon
27
+ icon={LucideRotateCw}
28
+ onClick={() => {
29
+ fetchPluginManifest(id);
30
+ }}
31
+ size={'small'}
32
+ title={t('retry')}
33
+ />
34
+ );
23
35
  }
24
36
  case 'success': {
25
37
  return <Badge status={status} />;