@lobehub/chat 0.96.8 → 0.97.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 (65) hide show
  1. package/.github/workflows/release.yml +3 -0
  2. package/CHANGELOG.md +58 -0
  3. package/CODE_OF_CONDUCT.md +21 -21
  4. package/CONTRIBUTING.md +1 -1
  5. package/README.md +26 -9
  6. package/README.zh-CN.md +29 -12
  7. package/docs/Deploy-with-Azure-OpenAI.md +6 -6
  8. package/docs/Home.md +14 -2
  9. package/docs/Lighthouse.md +8 -8
  10. package/docs/Plugin-Development.md +3 -3
  11. package/docs/Plugin-Development.zh-CN.md +3 -3
  12. package/docs/Usage-Agents.md +195 -0
  13. package/docs/Usage-Agents.zh-CN.md +196 -0
  14. package/docs/Usage-Topics.md +31 -0
  15. package/docs/Usage-Topics.zh-CN.md +31 -0
  16. package/docs/_Sidebar.md +10 -2
  17. package/locales/en_US/chat.json +9 -2
  18. package/locales/ja_JP/chat.json +8 -1
  19. package/locales/ko_KR/chat.json +8 -1
  20. package/locales/ru_RU/chat.json +8 -1
  21. package/locales/zh_CN/chat.json +6 -1
  22. package/locales/zh_TW/chat.json +8 -1
  23. package/next.config.mjs +9 -1
  24. package/package.json +6 -7
  25. package/scripts/readmeWorkflow/const.ts +19 -0
  26. package/scripts/readmeWorkflow/index.ts +12 -0
  27. package/scripts/readmeWorkflow/syncAgentIndex.ts +47 -0
  28. package/scripts/readmeWorkflow/syncPluginIndex.ts +43 -0
  29. package/scripts/readmeWorkflow/utlis.ts +52 -0
  30. package/src/app/chat/(desktop)/features/ChatHeader.tsx +11 -1
  31. package/src/app/chat/{features/ChatInputContent/Footer/index.tsx → (desktop)/features/ChatInput/Footer.tsx} +1 -1
  32. package/src/app/chat/(desktop)/features/{ChatInput.tsx → ChatInput/index.tsx} +3 -2
  33. package/src/app/chat/(desktop)/features/SessionList.tsx +1 -1
  34. package/src/app/chat/(desktop)/features/SideBar.tsx +1 -1
  35. package/src/app/chat/(mobile)/features/ChatHeader.tsx +2 -6
  36. package/src/app/chat/(mobile)/features/TopicList.tsx +1 -1
  37. package/src/app/chat/features/ChatInputContent/ActionBar/ActionRight.tsx +1 -1
  38. package/src/app/chat/features/ChatInputContent/{Footer/SaveTopic.tsx → Topic/index.tsx} +13 -11
  39. package/src/app/chat/features/ChatInputContent/index.tsx +4 -4
  40. package/src/app/chat/features/Conversation/ChatList/Actions/Error.tsx +1 -7
  41. package/src/app/chat/features/Conversation/ChatList/Actions/User.tsx +0 -1
  42. package/src/app/chat/features/Conversation/ChatList/Actions/index.ts +48 -0
  43. package/src/app/chat/features/Conversation/ChatList/Messages/index.ts +27 -0
  44. package/src/app/chat/features/Conversation/ChatList/index.tsx +7 -29
  45. package/src/app/chat/features/{TopicListContent/SystemRole/Header.tsx → SidebarHeader/index.tsx} +9 -8
  46. package/src/app/chat/features/{TopicListContent/SystemRole → SystemRole}/index.tsx +45 -16
  47. package/src/app/chat/features/TopicListContent/Header.tsx +86 -0
  48. package/src/app/chat/features/TopicListContent/Topic/SkeletonList.tsx +1 -1
  49. package/src/app/chat/features/TopicListContent/TopicSearchBar/index.tsx +8 -3
  50. package/src/app/chat/features/TopicListContent/index.tsx +18 -7
  51. package/src/app/settings/features/SideBar/index.tsx +1 -1
  52. package/src/features/AgentInfo/index.tsx +3 -1
  53. package/src/features/AgentSetting/AgentMeta/index.tsx +5 -1
  54. package/src/features/PluginDevModal/MetaForm.tsx +4 -3
  55. package/src/layout/GlobalLayout/Locale.tsx +12 -2
  56. package/src/locales/default/chat.ts +6 -1
  57. package/src/store/global/initialState.ts +2 -0
  58. package/src/store/global/slices/common.ts +7 -0
  59. package/src/store/session/slices/chat/actions/message.ts +4 -1
  60. package/src/store/session/slices/chat/actions/topic.ts +46 -5
  61. package/src/store/session/slices/chat/selectors/index.ts +2 -1
  62. package/src/store/session/slices/chat/selectors/topic.ts +4 -0
  63. package/src/components/EmojiPicker/index.tsx +0 -56
  64. package/src/components/EmojiPicker/style.ts +0 -30
  65. /package/src/app/chat/features/{TopicListContent/SystemRole → SystemRole}/style.ts +0 -0
@@ -1,30 +0,0 @@
1
- import { createStyles } from 'antd-style';
2
- import chroma from 'chroma-js';
3
-
4
- export const useStyles = createStyles(({ css, token, prefixCls }) => ({
5
- avatar: css`
6
- border-radius: 50%;
7
- transition:
8
- scale 400ms ${token.motionEaseOut},
9
- box-shadow 100ms ${token.motionEaseOut};
10
-
11
- &:hover {
12
- box-shadow: 0 0 0 3px ${token.colorText};
13
- }
14
-
15
- &:active {
16
- scale: 0.8;
17
- }
18
- `,
19
- picker: css`
20
- em-emoji-picker {
21
- --rgb-accent: ${chroma(token.colorPrimary) .rgb() .join(',')};
22
- --shadow: none;
23
- }
24
- `,
25
- popover: css`
26
- .${prefixCls}-popover-inner {
27
- padding: 0;
28
- }
29
- `,
30
- }));