@lobehub/chat 1.79.10 → 1.80.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 (57) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/changelog/v1.json +27 -0
  3. package/docs/development/basic/feature-development.mdx +370 -619
  4. package/docs/development/basic/feature-development.zh-CN.mdx +368 -611
  5. package/docs/development/database-schema.dbml +2 -0
  6. package/locales/ar/setting.json +16 -0
  7. package/locales/bg-BG/setting.json +16 -0
  8. package/locales/de-DE/setting.json +16 -0
  9. package/locales/en-US/setting.json +16 -0
  10. package/locales/es-ES/setting.json +16 -0
  11. package/locales/fa-IR/setting.json +16 -0
  12. package/locales/fr-FR/setting.json +16 -0
  13. package/locales/it-IT/setting.json +16 -0
  14. package/locales/ja-JP/setting.json +16 -0
  15. package/locales/ko-KR/setting.json +16 -0
  16. package/locales/nl-NL/setting.json +16 -0
  17. package/locales/pl-PL/setting.json +16 -0
  18. package/locales/pt-BR/setting.json +16 -0
  19. package/locales/ru-RU/setting.json +16 -0
  20. package/locales/tr-TR/setting.json +16 -0
  21. package/locales/vi-VN/setting.json +16 -0
  22. package/locales/zh-CN/setting.json +16 -0
  23. package/locales/zh-TW/setting.json +16 -0
  24. package/package.json +1 -1
  25. package/scripts/generate-oidc-jwk.mjs +2 -1
  26. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/OpeningQuestions.tsx +78 -0
  27. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/WelcomeMessage.tsx +24 -4
  28. package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/CategoryContent/useCategory.tsx +6 -1
  29. package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/index.tsx +2 -0
  30. package/src/const/settings/agent.ts +1 -0
  31. package/src/database/_deprecated/schemas/session.ts +2 -0
  32. package/src/database/client/migrations.json +9 -0
  33. package/src/database/migrations/0021_add_agent_opening_settings.sql +2 -0
  34. package/src/database/migrations/meta/0021_snapshot.json +4988 -0
  35. package/src/database/migrations/meta/_journal.json +7 -0
  36. package/src/database/repositories/dataImporter/deprecated/__tests__/fixtures/messages.json +2 -0
  37. package/src/database/repositories/dataImporter/deprecated/__tests__/index.test.ts +19 -0
  38. package/src/database/schemas/agent.ts +3 -0
  39. package/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx +80 -0
  40. package/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx +144 -0
  41. package/src/features/AgentSetting/AgentOpening/index.tsx +52 -0
  42. package/src/features/AgentSetting/store/selectors.ts +3 -0
  43. package/src/features/ChatInput/ActionBar/Upload/ClientMode.tsx +7 -6
  44. package/src/hooks/useModelSupportFiles.ts +15 -0
  45. package/src/libs/agent-runtime/stepfun/index.ts +7 -1
  46. package/src/libs/agent-runtime/zhipu/index.ts +17 -10
  47. package/src/locales/default/setting.ts +16 -0
  48. package/src/migrations/FromV5ToV6/types/v6.ts +2 -0
  49. package/src/server/routers/lambda/session.ts +8 -1
  50. package/src/services/import/client.test.ts +18 -0
  51. package/src/services/session/server.test.ts +2 -0
  52. package/src/store/agent/slices/chat/selectors/__snapshots__/agent.test.ts.snap +1 -0
  53. package/src/store/agent/slices/chat/selectors/agent.ts +7 -0
  54. package/src/store/aiInfra/slices/aiModel/selectors.ts +7 -0
  55. package/src/store/global/initialState.ts +1 -0
  56. package/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap +2 -0
  57. package/src/types/agent/index.ts +12 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,91 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.80.1](https://github.com/lobehub/lobe-chat/compare/v1.80.0...v1.80.1)
6
+
7
+ <sup>Released on **2025-04-16**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix model support file and image logic.
12
+
13
+ #### 💄 Styles
14
+
15
+ - **misc**: Add `step-r1` & `glm-z1` model fetch support.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### What's fixed
23
+
24
+ - **misc**: Fix model support file and image logic, closes [#7387](https://github.com/lobehub/lobe-chat/issues/7387) ([4d26885](https://github.com/lobehub/lobe-chat/commit/4d26885))
25
+
26
+ #### Styles
27
+
28
+ - **misc**: Add `step-r1` & `glm-z1` model fetch support, closes [#7420](https://github.com/lobehub/lobe-chat/issues/7420) ([4055840](https://github.com/lobehub/lobe-chat/commit/4055840))
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
+
38
+ ## [Version 1.80.0](https://github.com/lobehub/lobe-chat/compare/v1.79.10...v1.80.0)
39
+
40
+ <sup>Released on **2025-04-16**</sup>
41
+
42
+ #### ♻ Code Refactoring
43
+
44
+ - **misc**: Rename new feature development doc to mdx, some code optimization.
45
+
46
+ #### ✨ Features
47
+
48
+ - **misc**: Opening settings copyright i18n, regenerate migrate sql for new agent opening settings.
49
+
50
+ #### 🐛 Bug Fixes
51
+
52
+ - **misc**: Opening questions should should be hidden when no setted, opening settings migration type error.
53
+
54
+ #### 💄 Styles
55
+
56
+ - **misc**: Opening message container add border.
57
+
58
+ <br/>
59
+
60
+ <details>
61
+ <summary><kbd>Improvements and Fixes</kbd></summary>
62
+
63
+ #### Code refactoring
64
+
65
+ - **misc**: Rename new feature development doc to mdx ([892a347](https://github.com/lobehub/lobe-chat/commit/892a347))
66
+ - **misc**: Some code optimization ([47e04fa](https://github.com/lobehub/lobe-chat/commit/47e04fa))
67
+
68
+ #### What's improved
69
+
70
+ - **misc**: Opening settings copyright i18n ([27c5b45](https://github.com/lobehub/lobe-chat/commit/27c5b45))
71
+ - **misc**: Regenerate migrate sql for new agent opening settings ([961d6a1](https://github.com/lobehub/lobe-chat/commit/961d6a1))
72
+
73
+ #### What's fixed
74
+
75
+ - **misc**: Opening questions should should be hidden when no setted ([211ee5e](https://github.com/lobehub/lobe-chat/commit/211ee5e))
76
+ - **misc**: Opening settings migration type error ([72cf00e](https://github.com/lobehub/lobe-chat/commit/72cf00e))
77
+
78
+ #### Styles
79
+
80
+ - **misc**: Opening message container add border ([63b96c7](https://github.com/lobehub/lobe-chat/commit/63b96c7))
81
+
82
+ </details>
83
+
84
+ <div align="right">
85
+
86
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
87
+
88
+ </div>
89
+
5
90
  ### [Version 1.79.10](https://github.com/lobehub/lobe-chat/compare/v1.79.9...v1.79.10)
6
91
 
7
92
  <sup>Released on **2025-04-15**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,31 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix model support file and image logic."
6
+ ],
7
+ "improvements": [
8
+ "Add step-r1 & glm-z1 model fetch support."
9
+ ]
10
+ },
11
+ "date": "2025-04-16",
12
+ "version": "1.80.1"
13
+ },
14
+ {
15
+ "children": {
16
+ "improvements": [
17
+ "Opening message container add border."
18
+ ],
19
+ "features": [
20
+ "Opening settings copyright i18n, regenerate migrate sql for new agent opening settings."
21
+ ],
22
+ "fixes": [
23
+ "Opening questions should should be hidden when no setted, opening settings migration type error."
24
+ ]
25
+ },
26
+ "date": "2025-04-16",
27
+ "version": "1.80.0"
28
+ },
2
29
  {
3
30
  "children": {
4
31
  "improvements": [