@lobehub/chat 0.63.3 → 0.64.1

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 (33) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/locales/en_US/common.json +7 -3
  3. package/locales/en_US/error.json +15 -1
  4. package/locales/en_US/plugin.json +79 -1
  5. package/locales/en_US/setting.json +4 -1
  6. package/locales/zh_CN/common.json +7 -3
  7. package/locales/zh_CN/error.json +14 -0
  8. package/locales/zh_CN/plugin.json +79 -20
  9. package/locales/zh_CN/setting.json +3 -0
  10. package/package.json +1 -1
  11. package/src/components/EmojiPicker/index.tsx +13 -5
  12. package/src/features/AgentSetting/AgentMeta/index.tsx +1 -1
  13. package/src/features/AgentSetting/AgentPlugin/LocalPluginItem.tsx +72 -0
  14. package/src/features/AgentSetting/AgentPlugin/MarketList.tsx +160 -0
  15. package/src/features/AgentSetting/AgentPlugin/PluginSettings.tsx +76 -0
  16. package/src/features/AgentSetting/AgentPlugin/index.tsx +8 -143
  17. package/src/features/PluginDevModal/ManifestForm.tsx +96 -0
  18. package/src/features/PluginDevModal/MetaForm.tsx +90 -0
  19. package/src/features/PluginDevModal/PluginPreview.tsx +36 -0
  20. package/src/features/PluginDevModal/index.tsx +153 -0
  21. package/src/locales/default/error.ts +15 -23
  22. package/src/locales/default/plugin.ts +79 -3
  23. package/src/locales/default/setting.ts +3 -0
  24. package/src/locales/resources/en_US.ts +2 -0
  25. package/src/pages/chat/features/Conversation/ChatList/Error/index.tsx +2 -1
  26. package/src/pages/chat/features/Conversation/ChatList/Plugins/FunctionCall.tsx +7 -4
  27. package/src/pages/chat/features/Conversation/ChatList/Plugins/PluginMessage.tsx +27 -33
  28. package/src/services/plugin.ts +6 -3
  29. package/src/store/plugin/action.ts +23 -2
  30. package/src/store/plugin/initialState.ts +17 -1
  31. package/src/store/plugin/reducers/devPluginList.ts +56 -0
  32. package/src/store/plugin/selectors.ts +9 -2
  33. package/src/store/plugin/store.ts +5 -1
@@ -19,7 +19,10 @@ const createStore: StateCreator<PluginStore, [['zustand/devtools', never]]> = (.
19
19
 
20
20
  // =============== persist 本地缓存中间件配置 ============ //
21
21
 
22
- type SessionPersist = Pick<PluginStore, 'pluginList' | 'pluginManifestMap' | 'pluginsSettings'>;
22
+ type SessionPersist = Pick<
23
+ PluginStore,
24
+ 'pluginList' | 'pluginManifestMap' | 'pluginsSettings' | 'devPluginList'
25
+ >;
23
26
 
24
27
  const storeName = 'LOBE_PLUGIN';
25
28
 
@@ -27,6 +30,7 @@ const persistOptions: PersistOptions<PluginStore, SessionPersist> = {
27
30
  name: storeName,
28
31
 
29
32
  partialize: (s) => ({
33
+ devPluginList: s.devPluginList,
30
34
  pluginList: s.pluginList,
31
35
  pluginManifestMap: s.pluginManifestMap,
32
36
  pluginsSettings: s.pluginsSettings,