@lobehub/chat 1.112.4 β 1.112.5
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 +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/app/[variants]/(main)/chat/(workspace)/features/TelemetryNotification.tsx +1 -4
- package/src/app/[variants]/(main)/settings/about/index.tsx +1 -4
- package/src/server/routers/lambda/market/index.ts +0 -3
- package/src/services/discover.ts +6 -0
- package/src/services/mcp.ts +0 -2
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.112.5](https://github.com/lobehub/lobe-chat/compare/v1.112.4...v1.112.5)
|
6
|
+
|
7
|
+
<sup>Released on **2025-08-17**</sup>
|
8
|
+
|
9
|
+
#### π Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Improve mcp tracing with user config.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Improve mcp tracing with user config, closes [#8827](https://github.com/lobehub/lobe-chat/issues/8827) ([5cab2ee](https://github.com/lobehub/lobe-chat/commit/5cab2ee))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.112.4](https://github.com/lobehub/lobe-chat/compare/v1.112.3...v1.112.4)
|
6
31
|
|
7
32
|
<sup>Released on **2025-08-16**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.112.
|
3
|
+
"version": "1.112.5",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
5
5
|
"keywords": [
|
6
6
|
"framework",
|
@@ -11,8 +11,6 @@ import { Flexbox } from 'react-layout-kit';
|
|
11
11
|
import Notification from '@/components/Notification';
|
12
12
|
import { BRANDING_NAME } from '@/const/branding';
|
13
13
|
import { PRIVACY_URL } from '@/const/url';
|
14
|
-
import { useServerConfigStore } from '@/store/serverConfig';
|
15
|
-
import { serverConfigSelectors } from '@/store/serverConfig/selectors';
|
16
14
|
import { useUserStore } from '@/store/user';
|
17
15
|
import { preferenceSelectors } from '@/store/user/selectors';
|
18
16
|
|
@@ -30,7 +28,6 @@ const TelemetryNotification = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
30
28
|
const { styles, theme } = useStyles();
|
31
29
|
|
32
30
|
const { t } = useTranslation('common');
|
33
|
-
const shouldCheck = useServerConfigStore(serverConfigSelectors.enabledTelemetryChat);
|
34
31
|
const isPreferenceInit = useUserStore(preferenceSelectors.isPreferenceInit);
|
35
32
|
|
36
33
|
const [useCheckTrace, updatePreference] = useUserStore((s) => [
|
@@ -38,7 +35,7 @@ const TelemetryNotification = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
38
35
|
s.updatePreference,
|
39
36
|
]);
|
40
37
|
|
41
|
-
const { data: showModal, mutate } = useCheckTrace(
|
38
|
+
const { data: showModal, mutate } = useCheckTrace(isPreferenceInit);
|
42
39
|
|
43
40
|
const updateTelemetry = (telemetry: boolean) => {
|
44
41
|
updatePreference({ telemetry });
|
@@ -10,8 +10,6 @@ import { Flexbox } from 'react-layout-kit';
|
|
10
10
|
|
11
11
|
import { BRANDING_EMAIL, BRANDING_NAME, SOCIAL_URL } from '@/const/branding';
|
12
12
|
import { BLOG, OFFICIAL_SITE, PRIVACY_URL, TERMS_URL, mailTo } from '@/const/url';
|
13
|
-
import { useServerConfigStore } from '@/store/serverConfig';
|
14
|
-
import { serverConfigSelectors } from '@/store/serverConfig/selectors';
|
15
13
|
|
16
14
|
import AboutList from './features/AboutList';
|
17
15
|
import Analytics from './features/Analytics';
|
@@ -30,7 +28,6 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
30
28
|
const Page = memo<{ mobile?: boolean }>(({ mobile }) => {
|
31
29
|
const { t } = useTranslation('common');
|
32
30
|
const { styles } = useStyles();
|
33
|
-
const enabledTelemetryChat = useServerConfigStore(serverConfigSelectors.enabledTelemetryChat);
|
34
31
|
|
35
32
|
return (
|
36
33
|
<>
|
@@ -122,7 +119,7 @@ const Page = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
122
119
|
/>
|
123
120
|
</Flexbox>
|
124
121
|
</Form.Group>
|
125
|
-
|
122
|
+
<Analytics />
|
126
123
|
</>
|
127
124
|
);
|
128
125
|
});
|
@@ -540,17 +540,14 @@ export const marketRouter = router({
|
|
540
540
|
z.object({
|
541
541
|
callDurationMs: z.number(),
|
542
542
|
clientId: z.string().optional(),
|
543
|
-
clientIp: z.string().optional(),
|
544
543
|
customPluginInfo: z.any().optional(),
|
545
544
|
errorCode: z.string().optional(),
|
546
545
|
errorMessage: z.string().optional(),
|
547
546
|
identifier: z.string(),
|
548
|
-
inputParams: z.any().optional(),
|
549
547
|
isCustomPlugin: z.boolean().optional(),
|
550
548
|
metadata: z.record(z.any()).optional(),
|
551
549
|
methodName: z.string(),
|
552
550
|
methodType: z.enum(['tool', 'prompt', 'resource']),
|
553
|
-
outputResult: z.any().optional(),
|
554
551
|
platform: z.string().optional(),
|
555
552
|
requestSizeBytes: z.number().optional(),
|
556
553
|
responseSizeBytes: z.number().optional(),
|
package/src/services/discover.ts
CHANGED
@@ -3,6 +3,8 @@ import { CallReportRequest, InstallReportRequest } from '@lobehub/market-types';
|
|
3
3
|
|
4
4
|
import { lambdaClient } from '@/libs/trpc/client';
|
5
5
|
import { globalHelpers } from '@/store/global/helpers';
|
6
|
+
import { useUserStore } from '@/store/user';
|
7
|
+
import { preferenceSelectors } from '@/store/user/selectors';
|
6
8
|
import {
|
7
9
|
AssistantListResponse,
|
8
10
|
AssistantQueryParams,
|
@@ -162,6 +164,10 @@ class DiscoverService {
|
|
162
164
|
* δΈζ₯ζδ»Άθ°η¨η»ζ
|
163
165
|
*/
|
164
166
|
reportPluginCall = async (reportData: CallReportRequest) => {
|
167
|
+
const allow = useUserStore(preferenceSelectors.userAllowTrace);
|
168
|
+
|
169
|
+
if (!allow) return;
|
170
|
+
|
165
171
|
await this.injectMPToken();
|
166
172
|
|
167
173
|
lambdaClient.market.reportCall.mutate(cleanObject(reportData)).catch((reportError) => {
|
package/src/services/mcp.ts
CHANGED
@@ -103,7 +103,6 @@ class MCPService {
|
|
103
103
|
errorCode,
|
104
104
|
errorMessage,
|
105
105
|
identifier,
|
106
|
-
inputParams,
|
107
106
|
isCustomPlugin,
|
108
107
|
metadata: {
|
109
108
|
appVersion: CURRENT_VERSION,
|
@@ -112,7 +111,6 @@ class MCPService {
|
|
112
111
|
},
|
113
112
|
methodName: apiName,
|
114
113
|
methodType: 'tool' as const,
|
115
|
-
outputResult: success ? result : undefined,
|
116
114
|
requestSizeBytes,
|
117
115
|
responseSizeBytes,
|
118
116
|
sessionId: topicId,
|