@lobehub/chat 1.112.2 → 1.112.3
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/packages/const/package.json +6 -0
- package/{src/const → packages/const/src}/imageGeneration.ts +2 -4
- package/{src/const → packages/const/src}/url.ts +2 -3
- package/src/middleware.ts +1 -1
- package/tsconfig.json +1 -0
- package/vitest.config.server.ts +1 -0
- package/vitest.config.ts +1 -0
- /package/{src/const → packages/const/src}/analytics.ts +0 -0
- /package/{src/const → packages/const/src}/auth.ts +0 -0
- /package/{src/const → packages/const/src}/branding.ts +0 -0
- /package/{src/const → packages/const/src}/cacheControl.ts +0 -0
- /package/{src/const → packages/const/src}/currency.ts +0 -0
- /package/{src/const → packages/const/src}/desktop.ts +0 -0
- /package/{src/const → packages/const/src}/discover.ts +0 -0
- /package/{src/const → packages/const/src}/fetch.ts +0 -0
- /package/{src/const → packages/const/src}/file.ts +0 -0
- /package/{src/const → packages/const/src}/guide.ts +0 -0
- /package/{src/const → packages/const/src}/hotkeys.ts +0 -0
- /package/{src/const → packages/const/src}/image.ts +0 -0
- /package/{src/const → packages/const/src}/layoutTokens.test.ts +0 -0
- /package/{src/const → packages/const/src}/layoutTokens.ts +0 -0
- /package/{src/const → packages/const/src}/locale.ts +0 -0
- /package/{src/const → packages/const/src}/message.ts +0 -0
- /package/{src/const → packages/const/src}/meta.ts +0 -0
- /package/{src/const → packages/const/src}/models.ts +0 -0
- /package/{src/const → packages/const/src}/plugin.test.ts +0 -0
- /package/{src/const → packages/const/src}/plugin.ts +0 -0
- /package/{src/const → packages/const/src}/session.ts +0 -0
- /package/{src/const → packages/const/src}/settings/agent.ts +0 -0
- /package/{src/const → packages/const/src}/settings/common.ts +0 -0
- /package/{src/const → packages/const/src}/settings/hotkey.ts +0 -0
- /package/{src/const → packages/const/src}/settings/index.ts +0 -0
- /package/{src/const → packages/const/src}/settings/knowledge.ts +0 -0
- /package/{src/const → packages/const/src}/settings/llm.ts +0 -0
- /package/{src/const → packages/const/src}/settings/sync.ts +0 -0
- /package/{src/const → packages/const/src}/settings/systemAgent.ts +0 -0
- /package/{src/const → packages/const/src}/settings/tool.ts +0 -0
- /package/{src/const → packages/const/src}/settings/tts.ts +0 -0
- /package/{src/const → packages/const/src}/theme.ts +0 -0
- /package/{src/const → packages/const/src}/trace.ts +0 -0
- /package/{src/const → packages/const/src}/user.ts +0 -0
- /package/{src/const → packages/const/src}/version.ts +0 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.112.3](https://github.com/lobehub/lobe-chat/compare/v1.112.2...v1.112.3)
|
6
|
+
|
7
|
+
<sup>Released on **2025-08-16**</sup>
|
8
|
+
|
9
|
+
#### ♻ Code Refactoring
|
10
|
+
|
11
|
+
- **misc**: Refactor const folder to a new package.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Code refactoring
|
19
|
+
|
20
|
+
- **misc**: Refactor const folder to a new package, closes [#8756](https://github.com/lobehub/lobe-chat/issues/8756) ([30a4734](https://github.com/lobehub/lobe-chat/commit/30a4734))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.112.2](https://github.com/lobehub/lobe-chat/compare/v1.112.1...v1.112.2)
|
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.3",
|
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",
|
@@ -2,17 +2,15 @@
|
|
2
2
|
* Image generation and processing configuration constants
|
3
3
|
*/
|
4
4
|
export const IMAGE_GENERATION_CONFIG = {
|
5
|
-
|
6
5
|
/**
|
7
6
|
* Maximum cover image size in pixels (longest edge)
|
8
7
|
* Used for generating cover images from source images
|
9
8
|
*/
|
10
|
-
COVER_MAX_SIZE: 256,
|
9
|
+
COVER_MAX_SIZE: 256,
|
11
10
|
|
12
|
-
|
13
11
|
/**
|
14
12
|
* Maximum thumbnail size in pixels (longest edge)
|
15
13
|
* Used for generating thumbnail images from original images
|
16
14
|
*/
|
17
|
-
THUMBNAIL_MAX_SIZE: 512,
|
15
|
+
THUMBNAIL_MAX_SIZE: 512,
|
18
16
|
} as const;
|
@@ -4,7 +4,6 @@ import urlJoin from 'url-join';
|
|
4
4
|
import { withBasePath } from '@/utils/basePath';
|
5
5
|
import { isDev } from '@/utils/env';
|
6
6
|
|
7
|
-
import pkg from '../../package.json';
|
8
7
|
import { INBOX_SESSION_ID } from './session';
|
9
8
|
|
10
9
|
export const UTM_SOURCE = 'chat_preview';
|
@@ -15,7 +14,7 @@ export const OFFICIAL_SITE = 'https://lobehub.com';
|
|
15
14
|
|
16
15
|
export const OG_URL = '/og/cover.png?v=1';
|
17
16
|
|
18
|
-
export const GITHUB =
|
17
|
+
export const GITHUB = 'https://github.com/lobehub/lobe-chat';
|
19
18
|
export const GITHUB_ISSUES = urlJoin(GITHUB, 'issues/new/choose');
|
20
19
|
export const CHANGELOG = 'https://lobehub.com/changelog';
|
21
20
|
export const DOCKER_IMAGE = 'https://hub.docker.com/r/lobehub/lobe-chat';
|
@@ -36,7 +35,7 @@ export const MANUAL_UPGRADE_URL = urlJoin(SELF_HOSTING_DOCUMENTS, '/advanced/ups
|
|
36
35
|
export const BLOG = urlJoin(OFFICIAL_SITE, 'blog');
|
37
36
|
|
38
37
|
export const ABOUT = OFFICIAL_SITE;
|
39
|
-
export const FEEDBACK =
|
38
|
+
export const FEEDBACK = 'https://github.com/lobehub/lobe-chat/issues/new/choose';
|
40
39
|
export const PRIVACY_URL = urlJoin(OFFICIAL_SITE, '/privacy');
|
41
40
|
export const TERMS_URL = urlJoin(OFFICIAL_SITE, '/terms');
|
42
41
|
|
package/src/middleware.ts
CHANGED
@@ -5,6 +5,7 @@ import { UAParser } from 'ua-parser-js';
|
|
5
5
|
import urlJoin from 'url-join';
|
6
6
|
|
7
7
|
import { authEnv } from '@/config/auth';
|
8
|
+
import { OAUTH_AUTHORIZED } from '@/const/auth';
|
8
9
|
import { LOBE_LOCALE_COOKIE } from '@/const/locale';
|
9
10
|
import { LOBE_THEME_APPEARANCE } from '@/const/theme';
|
10
11
|
import { appEnv } from '@/envs/app';
|
@@ -14,7 +15,6 @@ import { parseBrowserLanguage } from '@/utils/locale';
|
|
14
15
|
import { parseDefaultThemeFromCountry } from '@/utils/server/geo';
|
15
16
|
import { RouteVariants } from '@/utils/server/routeVariants';
|
16
17
|
|
17
|
-
import { OAUTH_AUTHORIZED } from './const/auth';
|
18
18
|
import { oidcEnv } from './envs/oidc';
|
19
19
|
|
20
20
|
// Create debug logger instances
|
package/tsconfig.json
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
"paths": {
|
21
21
|
"@/libs/model-runtime": ["./packages/model-runtime/src/index.ts"],
|
22
22
|
"@/libs/model-runtime/*": ["./packages/model-runtime/src/*"],
|
23
|
+
"@/const/*": ["./packages/const/src/*"],
|
23
24
|
"@/types/*": ["./packages/types/src/*", "./src/types/*"],
|
24
25
|
"@/*": ["./src/*"],
|
25
26
|
"~test-utils": ["./tests/utils.tsx"]
|
package/vitest.config.server.ts
CHANGED
@@ -5,6 +5,7 @@ export default defineConfig({
|
|
5
5
|
test: {
|
6
6
|
alias: {
|
7
7
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
8
|
+
'@/const': resolve(__dirname, './packages/const/src'),
|
8
9
|
'@/types': resolve(__dirname, './packages/types/src'),
|
9
10
|
'@': resolve(__dirname, './src'),
|
10
11
|
/* eslint-enable */
|
package/vitest.config.ts
CHANGED
@@ -11,6 +11,7 @@ export default defineConfig({
|
|
11
11
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
12
12
|
'@/libs/model-runtime': resolve(__dirname, './packages/model-runtime/src'),
|
13
13
|
'@/types': resolve(__dirname, './packages/types/src'),
|
14
|
+
'@/const': resolve(__dirname, './packages/const/src'),
|
14
15
|
'@': resolve(__dirname, './src'),
|
15
16
|
'~test-utils': resolve(__dirname, './tests/utils.tsx'),
|
16
17
|
/* eslint-enable */
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|