@lobehub/chat 1.0.0 → 1.0.2
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.
Potentially problematic release.
This version of @lobehub/chat might be problematic. Click here for more details.
- package/.bunfig.toml +3 -0
- package/.dockerignore +11 -0
- package/.env.example +131 -0
- package/.eslintignore +1 -2
- package/.eslintrc.js +32 -1
- package/.github/FUNDING.yml +13 -0
- package/.github/ISSUE_TEMPLATE/1_bug_report.yml +46 -22
- package/.github/ISSUE_TEMPLATE/1_bug_report_cn.yml +69 -0
- package/.github/ISSUE_TEMPLATE/2_feature_request.yml +6 -6
- package/.github/ISSUE_TEMPLATE/2_feature_request_cn.yml +21 -0
- package/.github/ISSUE_TEMPLATE/config.yml +4 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +2 -0
- package/.github/workflows/docker.yml +45 -0
- package/.github/workflows/issue-auto-comments.yml +73 -0
- package/.github/workflows/issue-close-require.yml +26 -6
- package/.github/workflows/issues-translate.yml +14 -0
- package/.github/workflows/lighthouse.yml +72 -0
- package/.github/workflows/release.yml +46 -15
- package/.github/workflows/sync.yml +54 -0
- package/.github/workflows/test.yml +44 -16
- package/.github/workflows/wiki-sync.yml +19 -0
- package/.husky/pre-commit +0 -3
- package/.i18nrc.js +41 -7
- package/.nvmrc +1 -0
- package/.seorc.cjs +9 -0
- package/CHANGELOG.md +16675 -46
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +88 -0
- package/Dockerfile +138 -0
- package/LICENSE +38 -0
- package/README.md +696 -80
- package/README.zh-CN.md +782 -0
- package/__mocks__/zustand/traditional.ts +25 -0
- package/codecov.yml +11 -0
- package/contributing/Basic/Add-New-Authentication-Providers.md +193 -0
- package/contributing/Basic/Add-New-Authentication-Providers.zh-CN.md +192 -0
- package/contributing/Basic/Architecture.md +47 -0
- package/contributing/Basic/Architecture.zh-CN.md +47 -0
- package/contributing/Basic/Chat-API.md +136 -0
- package/contributing/Basic/Chat-API.zh-CN.md +174 -0
- package/contributing/Basic/Contributing-Guidelines.md +83 -0
- package/contributing/Basic/Contributing-Guidelines.zh-CN.md +85 -0
- package/contributing/Basic/Feature-Development-Frontend.md +126 -0
- package/contributing/Basic/Feature-Development-Frontend.zh-CN.md +126 -0
- package/contributing/Basic/Feature-Development.md +713 -0
- package/contributing/Basic/Feature-Development.zh-CN.md +707 -0
- package/contributing/Basic/Folder-Structure.md +40 -0
- package/contributing/Basic/Folder-Structure.zh-CN.md +40 -0
- package/contributing/Basic/Intro.md +111 -0
- package/contributing/Basic/Intro.zh-CN.md +111 -0
- package/contributing/Basic/Resources.md +19 -0
- package/contributing/Basic/Resources.zh-CN.md +19 -0
- package/contributing/Basic/Setup-Development.md +69 -0
- package/contributing/Basic/Setup-Development.zh-CN.md +69 -0
- package/contributing/Basic/Test.md +87 -0
- package/contributing/Basic/Test.zh-CN.md +87 -0
- package/contributing/Home.md +87 -0
- package/contributing/Internationalization/Add-New-Locale.md +62 -0
- package/contributing/Internationalization/Add-New-Locale.zh-CN.md +62 -0
- package/contributing/Internationalization/Internationalization-Implementation.md +125 -0
- package/contributing/Internationalization/Internationalization-Implementation.zh-CN.md +125 -0
- package/contributing/Others/Lighthouse.md +65 -0
- package/contributing/Others/Lighthouse.zh-CN.md +65 -0
- package/contributing/State-Management/State-Management-Intro.md +224 -0
- package/contributing/State-Management/State-Management-Intro.zh-CN.md +216 -0
- package/contributing/State-Management/State-Management-Selectors.md +68 -0
- package/contributing/State-Management/State-Management-Selectors.zh-CN.md +49 -0
- package/contributing/Upstream-Sync.md +58 -0
- package/contributing/Upstream-Sync.zh-CN.md +58 -0
- package/contributing/_Footer.md +1 -0
- package/contributing/_Sidebar.md +48 -0
- package/docs/self-hosting/advanced/analytics.mdx +31 -0
- package/docs/self-hosting/advanced/analytics.zh-CN.mdx +28 -0
- package/docs/self-hosting/advanced/authentication.mdx +67 -0
- package/docs/self-hosting/advanced/authentication.zh-CN.mdx +65 -0
- package/docs/self-hosting/advanced/feature-flags.mdx +45 -0
- package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +42 -0
- package/docs/self-hosting/advanced/model-list.mdx +48 -0
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +46 -0
- package/docs/self-hosting/advanced/settings-url-share.mdx +132 -0
- package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +131 -0
- package/docs/self-hosting/advanced/sso-providers/auth0.mdx +134 -0
- package/docs/self-hosting/advanced/sso-providers/auth0.zh-CN.mdx +126 -0
- package/docs/self-hosting/advanced/sso-providers/authentik.mdx +75 -0
- package/docs/self-hosting/advanced/sso-providers/authentik.zh-CN.mdx +69 -0
- package/docs/self-hosting/advanced/sso-providers/github.mdx +103 -0
- package/docs/self-hosting/advanced/sso-providers/github.zh-CN.mdx +95 -0
- package/docs/self-hosting/advanced/sso-providers/microsoft-entra-id.mdx +106 -0
- package/docs/self-hosting/advanced/sso-providers/microsoft-entra-id.zh-CN.mdx +100 -0
- package/docs/self-hosting/advanced/sso-providers/zitadel.mdx +120 -0
- package/docs/self-hosting/advanced/sso-providers/zitadel.zh-CN.mdx +112 -0
- package/docs/self-hosting/advanced/upstream-sync.mdx +161 -0
- package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +153 -0
- package/docs/self-hosting/environment-variables/analytics.mdx +84 -0
- package/docs/self-hosting/environment-variables/analytics.zh-CN.mdx +82 -0
- package/docs/self-hosting/environment-variables/auth.mdx +171 -0
- package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +168 -0
- package/docs/self-hosting/environment-variables/basic.mdx +118 -0
- package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +114 -0
- package/docs/self-hosting/environment-variables/model-provider.mdx +299 -0
- package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +297 -0
- package/docs/self-hosting/environment-variables.mdx +22 -0
- package/docs/self-hosting/environment-variables.zh-CN.mdx +20 -0
- package/docs/self-hosting/examples/azure-openai.mdx +46 -0
- package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +48 -0
- package/docs/self-hosting/examples/ollama.mdx +104 -0
- package/docs/self-hosting/examples/ollama.zh-CN.mdx +103 -0
- package/docs/self-hosting/faq/no-v1-suffix.mdx +30 -0
- package/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx +27 -0
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +84 -0
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.zh-CN.mdx +81 -0
- package/docs/self-hosting/platform/docker-compose.mdx +143 -0
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +134 -0
- package/docs/self-hosting/platform/docker.mdx +169 -0
- package/docs/self-hosting/platform/docker.zh-CN.mdx +167 -0
- package/docs/self-hosting/platform/netlify.mdx +154 -0
- package/docs/self-hosting/platform/netlify.zh-CN.mdx +148 -0
- package/docs/self-hosting/platform/railway.mdx +35 -0
- package/docs/self-hosting/platform/railway.zh-CN.mdx +34 -0
- package/docs/self-hosting/platform/repocloud.mdx +38 -0
- package/docs/self-hosting/platform/repocloud.zh-CN.mdx +36 -0
- package/docs/self-hosting/platform/sealos.mdx +37 -0
- package/docs/self-hosting/platform/sealos.zh-CN.mdx +36 -0
- package/docs/self-hosting/platform/vercel.mdx +46 -0
- package/docs/self-hosting/platform/vercel.zh-CN.mdx +47 -0
- package/docs/self-hosting/platform/zeabur.mdx +85 -0
- package/docs/self-hosting/platform/zeabur.zh-CN.mdx +84 -0
- package/docs/self-hosting/start.mdx +31 -0
- package/docs/self-hosting/start.zh-CN.mdx +32 -0
- package/docs/usage/agents/concepts.mdx +41 -0
- package/docs/usage/agents/concepts.zh-CN.mdx +38 -0
- package/docs/usage/agents/custom-agent.mdx +58 -0
- package/docs/usage/agents/custom-agent.zh-CN.mdx +53 -0
- package/docs/usage/agents/model.mdx +80 -0
- package/docs/usage/agents/model.zh-CN.mdx +75 -0
- package/docs/usage/agents/prompt.mdx +110 -0
- package/docs/usage/agents/prompt.zh-CN.mdx +106 -0
- package/docs/usage/agents/topics.mdx +27 -0
- package/docs/usage/agents/topics.zh-CN.mdx +25 -0
- package/docs/usage/features/agent-market.mdx +40 -0
- package/docs/usage/features/agent-market.zh-CN.mdx +36 -0
- package/docs/usage/features/local-llm.mdx +51 -0
- package/docs/usage/features/local-llm.zh-CN.mdx +43 -0
- package/docs/usage/features/mobile.mdx +24 -0
- package/docs/usage/features/mobile.zh-CN.mdx +23 -0
- package/docs/usage/features/more.mdx +33 -0
- package/docs/usage/features/more.zh-CN.mdx +28 -0
- package/docs/usage/features/multi-ai-providers.mdx +61 -0
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +61 -0
- package/docs/usage/features/plugin-system.mdx +89 -0
- package/docs/usage/features/plugin-system.zh-CN.mdx +77 -0
- package/docs/usage/features/pwa.mdx +73 -0
- package/docs/usage/features/pwa.zh-CN.mdx +73 -0
- package/docs/usage/features/text-to-image.mdx +26 -0
- package/docs/usage/features/text-to-image.zh-CN.mdx +26 -0
- package/docs/usage/features/theme.mdx +34 -0
- package/docs/usage/features/theme.zh-CN.mdx +30 -0
- package/docs/usage/features/tts.mdx +52 -0
- package/docs/usage/features/tts.zh-CN.mdx +46 -0
- package/docs/usage/features/vision.mdx +28 -0
- package/docs/usage/features/vision.zh-CN.mdx +25 -0
- package/docs/usage/plugins/basic-usage.mdx +69 -0
- package/docs/usage/plugins/basic-usage.zh-CN.mdx +67 -0
- package/docs/usage/plugins/custom-plugin.mdx +37 -0
- package/docs/usage/plugins/custom-plugin.zh-CN.mdx +35 -0
- package/docs/usage/plugins/development.mdx +329 -0
- package/docs/usage/plugins/development.zh-CN.mdx +323 -0
- package/docs/usage/plugins/store.mdx +30 -0
- package/docs/usage/plugins/store.zh-CN.mdx +27 -0
- package/docs/usage/providers/groq.mdx +76 -0
- package/docs/usage/providers/groq.zh-CN.mdx +70 -0
- package/docs/usage/providers/ollama/gemma.mdx +68 -0
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +67 -0
- package/docs/usage/providers/ollama/qwen.mdx +69 -0
- package/docs/usage/providers/ollama/qwen.zh-CN.mdx +66 -0
- package/docs/usage/providers/ollama.mdx +204 -0
- package/docs/usage/providers/ollama.zh-CN.mdx +202 -0
- package/docs/usage/start.mdx +46 -0
- package/docs/usage/start.zh-CN.mdx +38 -0
- package/drizzle.config.ts +29 -0
- package/locales/ar/auth.json +8 -0
- package/locales/ar/chat.json +138 -0
- package/locales/ar/clerk.json +769 -0
- package/locales/ar/common.json +224 -0
- package/locales/ar/components.json +16 -0
- package/locales/ar/error.json +114 -0
- package/locales/ar/market.json +32 -0
- package/locales/ar/metadata.json +18 -0
- package/locales/ar/migration.json +45 -0
- package/locales/ar/modelProvider.json +108 -0
- package/locales/ar/plugin.json +165 -0
- package/locales/ar/setting.json +404 -0
- package/locales/ar/tool.json +10 -0
- package/locales/ar/welcome.json +49 -0
- package/locales/bg-BG/auth.json +8 -0
- package/locales/bg-BG/chat.json +138 -0
- package/locales/bg-BG/clerk.json +769 -0
- package/locales/bg-BG/common.json +224 -0
- package/locales/bg-BG/components.json +16 -0
- package/locales/bg-BG/error.json +114 -0
- package/locales/bg-BG/market.json +32 -0
- package/locales/bg-BG/metadata.json +18 -0
- package/locales/bg-BG/migration.json +45 -0
- package/locales/bg-BG/modelProvider.json +108 -0
- package/locales/bg-BG/plugin.json +165 -0
- package/locales/bg-BG/setting.json +404 -0
- package/locales/bg-BG/tool.json +10 -0
- package/locales/bg-BG/welcome.json +49 -0
- package/locales/de-DE/auth.json +8 -0
- package/locales/de-DE/chat.json +138 -0
- package/locales/de-DE/clerk.json +769 -0
- package/locales/de-DE/common.json +224 -0
- package/locales/de-DE/components.json +16 -0
- package/locales/de-DE/error.json +114 -0
- package/locales/de-DE/market.json +32 -0
- package/locales/de-DE/metadata.json +18 -0
- package/locales/de-DE/migration.json +45 -0
- package/locales/de-DE/modelProvider.json +108 -0
- package/locales/de-DE/plugin.json +165 -0
- package/locales/de-DE/setting.json +404 -0
- package/locales/de-DE/tool.json +10 -0
- package/locales/de-DE/welcome.json +49 -0
- package/locales/en-US/auth.json +8 -0
- package/locales/en-US/chat.json +138 -0
- package/locales/en-US/clerk.json +769 -0
- package/locales/en-US/common.json +224 -0
- package/locales/en-US/components.json +16 -0
- package/locales/en-US/error.json +114 -0
- package/locales/en-US/market.json +32 -0
- package/locales/en-US/metadata.json +18 -0
- package/locales/en-US/migration.json +45 -0
- package/locales/en-US/modelProvider.json +108 -0
- package/locales/en-US/plugin.json +165 -0
- package/locales/en-US/setting.json +404 -0
- package/locales/en-US/tool.json +10 -0
- package/locales/en-US/welcome.json +49 -0
- package/locales/es-ES/auth.json +8 -0
- package/locales/es-ES/chat.json +138 -0
- package/locales/es-ES/clerk.json +769 -0
- package/locales/es-ES/common.json +224 -0
- package/locales/es-ES/components.json +16 -0
- package/locales/es-ES/error.json +114 -0
- package/locales/es-ES/market.json +32 -0
- package/locales/es-ES/metadata.json +18 -0
- package/locales/es-ES/migration.json +45 -0
- package/locales/es-ES/modelProvider.json +108 -0
- package/locales/es-ES/plugin.json +165 -0
- package/locales/es-ES/setting.json +404 -0
- package/locales/es-ES/tool.json +10 -0
- package/locales/es-ES/welcome.json +49 -0
- package/locales/fr-FR/auth.json +8 -0
- package/locales/fr-FR/chat.json +138 -0
- package/locales/fr-FR/clerk.json +769 -0
- package/locales/fr-FR/common.json +224 -0
- package/locales/fr-FR/components.json +16 -0
- package/locales/fr-FR/error.json +114 -0
- package/locales/fr-FR/market.json +32 -0
- package/locales/fr-FR/metadata.json +18 -0
- package/locales/fr-FR/migration.json +45 -0
- package/locales/fr-FR/modelProvider.json +108 -0
- package/locales/fr-FR/plugin.json +165 -0
- package/locales/fr-FR/setting.json +404 -0
- package/locales/fr-FR/tool.json +10 -0
- package/locales/fr-FR/welcome.json +49 -0
- package/locales/it-IT/auth.json +8 -0
- package/locales/it-IT/chat.json +138 -0
- package/locales/it-IT/clerk.json +769 -0
- package/locales/it-IT/common.json +224 -0
- package/locales/it-IT/components.json +16 -0
- package/locales/it-IT/error.json +114 -0
- package/locales/it-IT/market.json +32 -0
- package/locales/it-IT/metadata.json +18 -0
- package/locales/it-IT/migration.json +45 -0
- package/locales/it-IT/modelProvider.json +108 -0
- package/locales/it-IT/plugin.json +165 -0
- package/locales/it-IT/setting.json +404 -0
- package/locales/it-IT/tool.json +10 -0
- package/locales/it-IT/welcome.json +49 -0
- package/locales/ja-JP/auth.json +8 -0
- package/locales/ja-JP/chat.json +138 -0
- package/locales/ja-JP/clerk.json +769 -0
- package/locales/ja-JP/common.json +224 -0
- package/locales/ja-JP/components.json +16 -0
- package/locales/ja-JP/error.json +114 -0
- package/locales/ja-JP/market.json +32 -0
- package/locales/ja-JP/metadata.json +18 -0
- package/locales/ja-JP/migration.json +45 -0
- package/locales/ja-JP/modelProvider.json +108 -0
- package/locales/ja-JP/plugin.json +165 -0
- package/locales/ja-JP/setting.json +404 -0
- package/locales/ja-JP/tool.json +10 -0
- package/locales/ja-JP/welcome.json +49 -0
- package/locales/ko-KR/auth.json +8 -0
- package/locales/ko-KR/chat.json +138 -0
- package/locales/ko-KR/clerk.json +769 -0
- package/locales/ko-KR/common.json +224 -0
- package/locales/ko-KR/components.json +16 -0
- package/locales/ko-KR/error.json +114 -0
- package/locales/ko-KR/market.json +32 -0
- package/locales/ko-KR/metadata.json +18 -0
- package/locales/ko-KR/migration.json +45 -0
- package/locales/ko-KR/modelProvider.json +108 -0
- package/locales/ko-KR/plugin.json +165 -0
- package/locales/ko-KR/setting.json +404 -0
- package/locales/ko-KR/tool.json +10 -0
- package/locales/ko-KR/welcome.json +49 -0
- package/locales/nl-NL/auth.json +8 -0
- package/locales/nl-NL/chat.json +138 -0
- package/locales/nl-NL/clerk.json +769 -0
- package/locales/nl-NL/common.json +224 -0
- package/locales/nl-NL/components.json +16 -0
- package/locales/nl-NL/error.json +114 -0
- package/locales/nl-NL/market.json +32 -0
- package/locales/nl-NL/metadata.json +18 -0
- package/locales/nl-NL/migration.json +45 -0
- package/locales/nl-NL/modelProvider.json +108 -0
- package/locales/nl-NL/plugin.json +165 -0
- package/locales/nl-NL/setting.json +404 -0
- package/locales/nl-NL/tool.json +10 -0
- package/locales/nl-NL/welcome.json +49 -0
- package/locales/pl-PL/auth.json +8 -0
- package/locales/pl-PL/chat.json +138 -0
- package/locales/pl-PL/clerk.json +769 -0
- package/locales/pl-PL/common.json +224 -0
- package/locales/pl-PL/components.json +16 -0
- package/locales/pl-PL/error.json +114 -0
- package/locales/pl-PL/market.json +32 -0
- package/locales/pl-PL/metadata.json +18 -0
- package/locales/pl-PL/migration.json +45 -0
- package/locales/pl-PL/modelProvider.json +108 -0
- package/locales/pl-PL/plugin.json +165 -0
- package/locales/pl-PL/setting.json +404 -0
- package/locales/pl-PL/tool.json +10 -0
- package/locales/pl-PL/welcome.json +49 -0
- package/locales/pt-BR/auth.json +8 -0
- package/locales/pt-BR/chat.json +138 -0
- package/locales/pt-BR/clerk.json +769 -0
- package/locales/pt-BR/common.json +224 -0
- package/locales/pt-BR/components.json +16 -0
- package/locales/pt-BR/error.json +114 -0
- package/locales/pt-BR/market.json +32 -0
- package/locales/pt-BR/metadata.json +18 -0
- package/locales/pt-BR/migration.json +45 -0
- package/locales/pt-BR/modelProvider.json +108 -0
- package/locales/pt-BR/plugin.json +165 -0
- package/locales/pt-BR/setting.json +404 -0
- package/locales/pt-BR/tool.json +10 -0
- package/locales/pt-BR/welcome.json +49 -0
- package/locales/ru-RU/auth.json +8 -0
- package/locales/ru-RU/chat.json +138 -0
- package/locales/ru-RU/clerk.json +769 -0
- package/locales/ru-RU/common.json +224 -0
- package/locales/ru-RU/components.json +16 -0
- package/locales/ru-RU/error.json +114 -0
- package/locales/ru-RU/market.json +32 -0
- package/locales/ru-RU/metadata.json +18 -0
- package/locales/ru-RU/migration.json +45 -0
- package/locales/ru-RU/modelProvider.json +108 -0
- package/locales/ru-RU/plugin.json +165 -0
- package/locales/ru-RU/setting.json +404 -0
- package/locales/ru-RU/tool.json +10 -0
- package/locales/ru-RU/welcome.json +49 -0
- package/locales/tr-TR/auth.json +8 -0
- package/locales/tr-TR/chat.json +138 -0
- package/locales/tr-TR/clerk.json +769 -0
- package/locales/tr-TR/common.json +224 -0
- package/locales/tr-TR/components.json +16 -0
- package/locales/tr-TR/error.json +114 -0
- package/locales/tr-TR/market.json +32 -0
- package/locales/tr-TR/metadata.json +18 -0
- package/locales/tr-TR/migration.json +45 -0
- package/locales/tr-TR/modelProvider.json +108 -0
- package/locales/tr-TR/plugin.json +165 -0
- package/locales/tr-TR/setting.json +404 -0
- package/locales/tr-TR/tool.json +10 -0
- package/locales/tr-TR/welcome.json +49 -0
- package/locales/vi-VN/auth.json +8 -0
- package/locales/vi-VN/chat.json +138 -0
- package/locales/vi-VN/clerk.json +769 -0
- package/locales/vi-VN/common.json +224 -0
- package/locales/vi-VN/components.json +16 -0
- package/locales/vi-VN/error.json +114 -0
- package/locales/vi-VN/market.json +32 -0
- package/locales/vi-VN/metadata.json +18 -0
- package/locales/vi-VN/migration.json +45 -0
- package/locales/vi-VN/modelProvider.json +108 -0
- package/locales/vi-VN/plugin.json +165 -0
- package/locales/vi-VN/setting.json +404 -0
- package/locales/vi-VN/tool.json +10 -0
- package/locales/vi-VN/welcome.json +49 -0
- package/locales/zh-CN/auth.json +8 -0
- package/locales/zh-CN/chat.json +138 -0
- package/locales/zh-CN/clerk.json +769 -0
- package/locales/zh-CN/common.json +224 -0
- package/locales/zh-CN/components.json +16 -0
- package/locales/zh-CN/error.json +114 -0
- package/locales/zh-CN/market.json +32 -0
- package/locales/zh-CN/metadata.json +18 -0
- package/locales/zh-CN/migration.json +45 -0
- package/locales/zh-CN/modelProvider.json +108 -0
- package/locales/zh-CN/plugin.json +165 -0
- package/locales/zh-CN/setting.json +404 -0
- package/locales/zh-CN/tool.json +10 -0
- package/locales/zh-CN/welcome.json +49 -0
- package/locales/zh-TW/auth.json +8 -0
- package/locales/zh-TW/chat.json +138 -0
- package/locales/zh-TW/clerk.json +769 -0
- package/locales/zh-TW/common.json +224 -0
- package/locales/zh-TW/components.json +16 -0
- package/locales/zh-TW/error.json +114 -0
- package/locales/zh-TW/market.json +32 -0
- package/locales/zh-TW/metadata.json +18 -0
- package/locales/zh-TW/migration.json +45 -0
- package/locales/zh-TW/modelProvider.json +108 -0
- package/locales/zh-TW/plugin.json +165 -0
- package/locales/zh-TW/setting.json +404 -0
- package/locales/zh-TW/tool.json +10 -0
- package/locales/zh-TW/welcome.json +49 -0
- package/netlify.toml +10 -0
- package/next-sitemap.config.mjs +53 -0
- package/next.config.mjs +113 -16
- package/package.json +212 -83
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon-32x32.ico +0 -0
- package/public/favicon.ico +0 -0
- package/public/icons/icon-192x192.maskable.png +0 -0
- package/public/icons/icon-192x192.png +0 -0
- package/public/icons/icon-512x512.maskable.png +0 -0
- package/public/icons/icon-512x512.png +0 -0
- package/public/images/banner_market_modal.webp +0 -0
- package/public/images/chatmode_chat_dark.webp +0 -0
- package/public/images/chatmode_chat_light.webp +0 -0
- package/public/images/chatmode_docs_dark.webp +0 -0
- package/public/images/chatmode_docs_light.webp +0 -0
- package/public/images/empty_topic_dark.webp +0 -0
- package/public/images/empty_topic_light.webp +0 -0
- package/public/images/logo.png +0 -0
- package/public/images/screenshot_background.webp +0 -0
- package/public/images/theme_auto.webp +0 -0
- package/public/images/theme_dark.webp +0 -0
- package/public/images/theme_light.webp +0 -0
- package/public/manifest.json +121 -0
- package/public/og/cover.png +0 -0
- package/public/screenshots/shot-1.desktop.png +0 -0
- package/public/screenshots/shot-1.mobile.png +0 -0
- package/public/screenshots/shot-2.desktop.png +0 -0
- package/public/screenshots/shot-2.mobile.png +0 -0
- package/public/screenshots/shot-3.desktop.png +0 -0
- package/public/screenshots/shot-3.mobile.png +0 -0
- package/public/screenshots/shot-4.desktop.png +0 -0
- package/public/screenshots/shot-4.mobile.png +0 -0
- package/public/screenshots/shot-5.desktop.png +0 -0
- package/public/screenshots/shot-5.mobile.png +0 -0
- package/public/videos/feedback.mp4 +0 -0
- package/public/videos/star.mp4 +0 -0
- package/renovate.json +13 -0
- package/scripts/docsWorkflow/const.ts +14 -0
- package/scripts/docsWorkflow/index.ts +82 -0
- package/scripts/docsWorkflow/toc.ts +60 -0
- package/scripts/docsWorkflow/utils.ts +38 -0
- package/scripts/i18nWorkflow/const.ts +18 -0
- package/scripts/i18nWorkflow/genDefaultLocale.ts +19 -0
- package/scripts/i18nWorkflow/genDiff.ts +50 -0
- package/scripts/i18nWorkflow/index.ts +11 -0
- package/scripts/i18nWorkflow/utils.ts +57 -0
- package/scripts/mdxWorkflow/index.ts +48 -0
- package/scripts/migrateServerDB/index.ts +30 -0
- package/scripts/readmeWorkflow/const.ts +19 -0
- package/scripts/readmeWorkflow/index.ts +12 -0
- package/scripts/readmeWorkflow/syncAgentIndex.ts +47 -0
- package/scripts/readmeWorkflow/syncPluginIndex.ts +42 -0
- package/scripts/readmeWorkflow/utlis.ts +52 -0
- package/sentry.client.config.ts +30 -0
- package/sentry.edge.config.ts +17 -0
- package/sentry.server.config.ts +19 -0
- package/src/app/(auth)/layout.tsx +19 -0
- package/src/app/(auth)/login/[[...login]]/page.tsx +21 -0
- package/src/app/(auth)/signup/[[...signup]]/page.tsx +21 -0
- package/src/app/(loading)/Client.tsx +13 -0
- package/src/app/(loading)/Redirect.tsx +51 -0
- package/src/app/(main)/(mobile)/me/(home)/__tests__/UserBanner.test.tsx +80 -0
- package/src/app/(main)/(mobile)/me/(home)/__tests__/useCategory.test.tsx +116 -0
- package/src/app/(main)/(mobile)/me/(home)/features/Category.tsx +15 -0
- package/src/app/(main)/(mobile)/me/(home)/features/Header.tsx +30 -0
- package/src/app/(main)/(mobile)/me/(home)/features/UserBanner.tsx +37 -0
- package/src/app/(main)/(mobile)/me/(home)/features/useCategory.tsx +118 -0
- package/src/app/(main)/(mobile)/me/(home)/layout.tsx +17 -0
- package/src/app/(main)/(mobile)/me/(home)/loading.tsx +38 -0
- package/src/app/(main)/(mobile)/me/(home)/page.tsx +38 -0
- package/src/app/(main)/(mobile)/me/data/features/Category.tsx +48 -0
- package/src/app/(main)/(mobile)/me/data/features/Header.tsx +33 -0
- package/src/app/(main)/(mobile)/me/data/layout.tsx +13 -0
- package/src/app/(main)/(mobile)/me/data/loading.tsx +5 -0
- package/src/app/(main)/(mobile)/me/data/page.tsx +27 -0
- package/src/app/(main)/(mobile)/me/profile/features/Category.tsx +45 -0
- package/src/app/(main)/(mobile)/me/profile/features/Header.tsx +33 -0
- package/src/app/(main)/(mobile)/me/profile/layout.tsx +16 -0
- package/src/app/(main)/(mobile)/me/profile/loading.tsx +5 -0
- package/src/app/(main)/(mobile)/me/profile/page.tsx +28 -0
- package/src/app/(main)/(mobile)/me/settings/features/Category.tsx +15 -0
- package/src/app/(main)/(mobile)/me/settings/features/Header.tsx +33 -0
- package/src/app/(main)/(mobile)/me/settings/features/useCategory.tsx +57 -0
- package/src/app/(main)/(mobile)/me/settings/layout.tsx +13 -0
- package/src/app/(main)/(mobile)/me/settings/loading.tsx +5 -0
- package/src/app/(main)/(mobile)/me/settings/page.tsx +28 -0
- package/src/app/(main)/@nav/_layout/Desktop/Avatar.test.tsx +55 -0
- package/src/app/(main)/@nav/_layout/Desktop/Avatar.tsx +53 -0
- package/src/app/(main)/@nav/_layout/Desktop/BottomActions.tsx +24 -0
- package/src/app/(main)/@nav/_layout/Desktop/TopActions.tsx +50 -0
- package/src/app/(main)/@nav/_layout/Desktop/index.tsx +26 -0
- package/src/app/(main)/@nav/_layout/Mobile.tsx +71 -0
- package/src/app/(main)/@nav/default.tsx +10 -0
- package/src/app/(main)/_layout/Desktop.tsx +33 -0
- package/src/app/(main)/_layout/Mobile.tsx +29 -0
- package/src/app/(main)/_layout/type.ts +6 -0
- package/src/app/(main)/chat/(workspace)/@conversation/default.tsx +23 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/DragUpload.tsx +245 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/LocalFiles.tsx +10 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/SendMore.tsx +122 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/index.tsx +173 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Header/index.tsx +25 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/TextArea.test.tsx +316 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/TextArea.tsx +129 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/__tests__/useAutoFocus.test.ts +45 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/index.tsx +60 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/useAutoFocus.ts +13 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files.tsx +19 -0
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/index.tsx +52 -0
- package/src/app/(main)/chat/(workspace)/@topic/_layout/Desktop.tsx +17 -0
- package/src/app/(main)/chat/(workspace)/@topic/_layout/Mobile.tsx +21 -0
- package/src/app/(main)/chat/(workspace)/@topic/default.tsx +32 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/Header.tsx +88 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/SkeletonList.tsx +57 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/SystemRole/SystemRoleContent.tsx +128 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/SystemRole/index.tsx +18 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/SystemRole/style.ts +32 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/DefaultContent.tsx +29 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicContent.tsx +211 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem.tsx +81 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/index.tsx +107 -0
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicSearchBar/index.tsx +42 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/HeaderAction.tsx +40 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +91 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +31 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/index.tsx +8 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/HotKeys.tsx +49 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/TopicPanel.tsx +77 -0
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/index.tsx +35 -0
- package/src/app/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/ChatHeaderTitle.tsx +55 -0
- package/src/app/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/index.tsx +37 -0
- package/src/app/(main)/chat/(workspace)/_layout/Mobile/TopicModal.tsx +35 -0
- package/src/app/(main)/chat/(workspace)/_layout/Mobile/index.tsx +21 -0
- package/src/app/(main)/chat/(workspace)/_layout/type.ts +7 -0
- package/src/app/(main)/chat/(workspace)/_layout/useInitAgentConfig.ts +10 -0
- package/src/app/(main)/chat/(workspace)/features/PluginTag/PluginStatus.tsx +108 -0
- package/src/app/(main)/chat/(workspace)/features/PluginTag/index.tsx +60 -0
- package/src/app/(main)/chat/(workspace)/features/SettingButton.tsx +25 -0
- package/src/app/(main)/chat/(workspace)/features/ShareButton/Preview.tsx +78 -0
- package/src/app/(main)/chat/(workspace)/features/ShareButton/ShareModal.tsx +164 -0
- package/src/app/(main)/chat/(workspace)/features/ShareButton/index.tsx +40 -0
- package/src/app/(main)/chat/(workspace)/features/ShareButton/style.ts +71 -0
- package/src/app/(main)/chat/(workspace)/features/ShareButton/type.ts +14 -0
- package/src/app/(main)/chat/(workspace)/features/ShareButton/useScreenshot.ts +60 -0
- package/src/app/(main)/chat/(workspace)/features/TelemetryNotification.tsx +93 -0
- package/src/app/(main)/chat/(workspace)/features/useWorkspaceModal.tsx +27 -0
- package/src/app/(main)/chat/(workspace)/layout.ts +11 -0
- package/src/app/(main)/chat/(workspace)/page.tsx +39 -0
- package/src/app/(main)/chat/@session/_layout/Desktop/PanelBody.tsx +22 -0
- package/src/app/(main)/chat/@session/_layout/Desktop/SessionHeader.tsx +59 -0
- package/src/app/(main)/chat/@session/_layout/Desktop/index.tsx +18 -0
- package/src/app/(main)/chat/@session/_layout/Mobile/SessionHeader.tsx +44 -0
- package/src/app/(main)/chat/@session/_layout/Mobile/index.tsx +22 -0
- package/src/app/(main)/chat/@session/default.tsx +29 -0
- package/src/app/(main)/chat/@session/features/SessionHydration.tsx +45 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/CollapseGroup/Actions.tsx +141 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/CollapseGroup/index.tsx +63 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/DefaultMode.tsx +106 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/Inbox/index.tsx +38 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/List/AddButton.tsx +28 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/List/Item/Actions.tsx +196 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/List/Item/index.tsx +95 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/List/index.tsx +67 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/ListItem/index.tsx +67 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx +89 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/index.tsx +85 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/Modals/CreateGroupModal.tsx +70 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/Modals/RenameGroupModal.tsx +59 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/SearchMode.tsx +21 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/index.tsx +18 -0
- package/src/app/(main)/chat/@session/features/SessionListContent/useSwitchSession.ts +26 -0
- package/src/app/(main)/chat/@session/features/SessionSearchBar.tsx +37 -0
- package/src/app/(main)/chat/@session/features/SkeletonList.tsx +51 -0
- package/src/app/(main)/chat/_layout/Desktop/SessionPanel.tsx +75 -0
- package/src/app/(main)/chat/_layout/Desktop/index.tsx +31 -0
- package/src/app/(main)/chat/_layout/Mobile.tsx +49 -0
- package/src/app/(main)/chat/_layout/type.ts +6 -0
- package/src/app/(main)/chat/error.tsx +5 -0
- package/src/app/(main)/chat/features/Migration/ExportConfigButton.tsx +33 -0
- package/src/app/(main)/chat/features/Migration/Failed.tsx +118 -0
- package/src/app/(main)/chat/features/Migration/Modal.tsx +80 -0
- package/src/app/(main)/chat/features/Migration/Start.tsx +106 -0
- package/src/app/(main)/chat/features/Migration/UpgradeButton.tsx +74 -0
- package/src/app/(main)/chat/features/Migration/const.ts +15 -0
- package/src/app/(main)/chat/features/Migration/index.tsx +39 -0
- package/src/app/(main)/chat/features/PageTitle/index.tsx +17 -0
- package/src/app/(main)/chat/layout.ts +11 -0
- package/src/app/(main)/chat/not-found.tsx +3 -0
- package/src/app/(main)/chat/settings/_layout/Desktop/Header.tsx +26 -0
- package/src/app/(main)/chat/settings/_layout/Desktop/index.tsx +21 -0
- package/src/app/(main)/chat/settings/_layout/Mobile/Header.tsx +27 -0
- package/src/app/(main)/chat/settings/_layout/Mobile/index.tsx +19 -0
- package/src/app/(main)/chat/settings/error.tsx +5 -0
- package/src/app/(main)/chat/settings/features/EditPage.tsx +40 -0
- package/src/app/(main)/chat/settings/features/HeaderContent.tsx +70 -0
- package/src/app/(main)/chat/settings/features/SubmitAgentButton/SubmitAgentModal.tsx +98 -0
- package/src/app/(main)/chat/settings/features/SubmitAgentButton/index.tsx +36 -0
- package/src/app/(main)/chat/settings/features/SubmitAgentButton/style.ts +46 -0
- package/src/app/(main)/chat/settings/layout.tsx +21 -0
- package/src/app/(main)/chat/settings/loading.tsx +3 -0
- package/src/app/(main)/chat/settings/modal/page.tsx +23 -0
- package/src/app/(main)/chat/settings/not-found.tsx +3 -0
- package/src/app/(main)/chat/settings/page.tsx +7 -0
- package/src/app/(main)/error.tsx +5 -0
- package/src/app/(main)/layout.tsx +11 -0
- package/src/app/(main)/market/@detail/default.tsx +12 -0
- package/src/app/(main)/market/@detail/features/AgentDetailContent.tsx +73 -0
- package/src/app/(main)/market/@detail/features/Banner.tsx +46 -0
- package/src/app/(main)/market/@detail/features/Comment.tsx +16 -0
- package/src/app/(main)/market/@detail/features/Header.tsx +81 -0
- package/src/app/(main)/market/@detail/features/Loading.tsx +63 -0
- package/src/app/(main)/market/@detail/features/TokenTag.tsx +26 -0
- package/src/app/(main)/market/@detail/features/style.ts +31 -0
- package/src/app/(main)/market/_layout/Desktop/DetailSidebar.tsx +84 -0
- package/src/app/(main)/market/_layout/Desktop/Header.tsx +27 -0
- package/src/app/(main)/market/_layout/Desktop/Hero.tsx +39 -0
- package/src/app/(main)/market/_layout/Desktop/index.tsx +46 -0
- package/src/app/(main)/market/_layout/Mobile/DetailModal.tsx +32 -0
- package/src/app/(main)/market/_layout/Mobile/Header.tsx +20 -0
- package/src/app/(main)/market/_layout/Mobile/index.tsx +25 -0
- package/src/app/(main)/market/_layout/type.ts +6 -0
- package/src/app/(main)/market/features/AgentCard/AgentCardBanner.tsx +59 -0
- package/src/app/(main)/market/features/AgentCard/index.tsx +139 -0
- package/src/app/(main)/market/features/AgentList.tsx +103 -0
- package/src/app/(main)/market/features/AgentSearchBar.tsx +42 -0
- package/src/app/(main)/market/features/ShareAgentButton/Inner.tsx +54 -0
- package/src/app/(main)/market/features/ShareAgentButton/index.tsx +50 -0
- package/src/app/(main)/market/features/TagList.tsx +69 -0
- package/src/app/(main)/market/layout.tsx +11 -0
- package/src/app/(main)/market/loading.tsx +15 -0
- package/src/app/(main)/market/page.tsx +44 -0
- package/src/app/(main)/not-found.tsx +3 -0
- package/src/app/(main)/profile/[[...slugs]]/Client.tsx +74 -0
- package/src/app/(main)/profile/[[...slugs]]/page.tsx +21 -0
- package/src/app/(main)/profile/_layout/Mobile/Header.tsx +26 -0
- package/src/app/(main)/profile/_layout/Mobile/index.tsx +16 -0
- package/src/app/(main)/profile/layout.tsx +20 -0
- package/src/app/(main)/profile/loading.tsx +23 -0
- package/src/app/(main)/settings/@category/default.tsx +15 -0
- package/src/app/(main)/settings/@category/features/CategoryContent.tsx +37 -0
- package/src/app/(main)/settings/@category/features/UpgradeAlert.tsx +38 -0
- package/src/app/(main)/settings/_layout/Desktop/Header.tsx +85 -0
- package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +59 -0
- package/src/app/(main)/settings/_layout/Desktop/index.tsx +54 -0
- package/src/app/(main)/settings/_layout/Mobile/Header.tsx +43 -0
- package/src/app/(main)/settings/_layout/Mobile/index.tsx +18 -0
- package/src/app/(main)/settings/_layout/type.ts +6 -0
- package/src/app/(main)/settings/about/features/AboutList.tsx +27 -0
- package/src/app/(main)/settings/about/features/Analytics.tsx +42 -0
- package/src/app/(main)/settings/about/features/ItemCard.tsx +45 -0
- package/src/app/(main)/settings/about/features/ItemLink.tsx +32 -0
- package/src/app/(main)/settings/about/features/Version.tsx +74 -0
- package/src/app/(main)/settings/about/index.tsx +139 -0
- package/src/app/(main)/settings/about/page.tsx +20 -0
- package/src/app/(main)/settings/agent/index.tsx +33 -0
- package/src/app/(main)/settings/agent/page.tsx +12 -0
- package/src/app/(main)/settings/common/features/Common.tsx +171 -0
- package/src/app/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesNeutral.tsx +33 -0
- package/src/app/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesPrimary.tsx +33 -0
- package/src/app/(main)/settings/common/features/Theme/ThemeSwatches/index.ts +2 -0
- package/src/app/(main)/settings/common/features/Theme/index.tsx +148 -0
- package/src/app/(main)/settings/common/index.tsx +15 -0
- package/src/app/(main)/settings/common/page.tsx +13 -0
- package/src/app/(main)/settings/error.tsx +5 -0
- package/src/app/(main)/settings/features/UpgradeAlert.tsx +42 -0
- package/src/app/(main)/settings/hooks/useCategory.tsx +94 -0
- package/src/app/(main)/settings/hooks/useSyncSettings.ts +23 -0
- package/src/app/(main)/settings/layout.ts +11 -0
- package/src/app/(main)/settings/llm/ProviderList/Azure/index.tsx +107 -0
- package/src/app/(main)/settings/llm/ProviderList/Bedrock/index.tsx +68 -0
- package/src/app/(main)/settings/llm/ProviderList/Ollama/Checker.tsx +73 -0
- package/src/app/(main)/settings/llm/ProviderList/Ollama/index.tsx +29 -0
- package/src/app/(main)/settings/llm/ProviderList/OpenAI/index.tsx +20 -0
- package/src/app/(main)/settings/llm/ProviderList/providers.tsx +141 -0
- package/src/app/(main)/settings/llm/components/Checker.tsx +111 -0
- package/src/app/(main)/settings/llm/components/Footer.tsx +35 -0
- package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +214 -0
- package/src/app/(main)/settings/llm/components/ProviderModelList/CustomModelOption.tsx +93 -0
- package/src/app/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/Form.tsx +98 -0
- package/src/app/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/MaxTokenSlider.tsx +103 -0
- package/src/app/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/index.tsx +78 -0
- package/src/app/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +86 -0
- package/src/app/(main)/settings/llm/components/ProviderModelList/Option.tsx +66 -0
- package/src/app/(main)/settings/llm/components/ProviderModelList/index.tsx +147 -0
- package/src/app/(main)/settings/llm/const.ts +20 -0
- package/src/app/(main)/settings/llm/index.tsx +25 -0
- package/src/app/(main)/settings/llm/page.tsx +23 -0
- package/src/app/(main)/settings/llm/type.ts +5 -0
- package/src/app/(main)/settings/loading.tsx +9 -0
- package/src/app/(main)/settings/modal/page.tsx +27 -0
- package/src/app/(main)/settings/not-found.tsx +3 -0
- package/src/app/(main)/settings/sync/features/Alert.tsx +39 -0
- package/src/app/(main)/settings/sync/features/DeviceInfo/Card.tsx +42 -0
- package/src/app/(main)/settings/sync/features/DeviceInfo/DeviceName.tsx +63 -0
- package/src/app/(main)/settings/sync/features/DeviceInfo/SystemIcon.tsx +29 -0
- package/src/app/(main)/settings/sync/features/DeviceInfo/index.tsx +103 -0
- package/src/app/(main)/settings/sync/features/WebRTC/ChannelNameInput.tsx +46 -0
- package/src/app/(main)/settings/sync/features/WebRTC/SyncSwitch/index.css +237 -0
- package/src/app/(main)/settings/sync/features/WebRTC/SyncSwitch/index.tsx +79 -0
- package/src/app/(main)/settings/sync/features/WebRTC/generateRandomRoomName.ts +4 -0
- package/src/app/(main)/settings/sync/features/WebRTC/index.tsx +98 -0
- package/src/app/(main)/settings/sync/index.tsx +17 -0
- package/src/app/(main)/settings/sync/page.tsx +26 -0
- package/src/app/(main)/settings/system-agent/features/Topic.tsx +56 -0
- package/src/app/(main)/settings/system-agent/features/Translation.tsx +56 -0
- package/src/app/(main)/settings/system-agent/features/useSync.ts +23 -0
- package/src/app/(main)/settings/system-agent/index.tsx +15 -0
- package/src/app/(main)/settings/system-agent/page.tsx +14 -0
- package/src/app/(main)/settings/tts/features/OpenAI.tsx +54 -0
- package/src/app/(main)/settings/tts/features/STT.tsx +58 -0
- package/src/app/(main)/settings/tts/features/const.ts +30 -0
- package/src/app/(main)/settings/tts/index.tsx +15 -0
- package/src/app/(main)/settings/tts/page.tsx +12 -0
- package/src/app/(main)/welcome/_layout/Desktop.tsx +36 -0
- package/src/app/(main)/welcome/_layout/Mobile.tsx +12 -0
- package/src/app/(main)/welcome/features/Actions.tsx +39 -0
- package/src/app/(main)/welcome/features/Hero.tsx +63 -0
- package/src/app/(main)/welcome/features/Logo.tsx +30 -0
- package/src/app/(main)/welcome/layout.tsx +10 -0
- package/src/app/(main)/welcome/page.tsx +41 -0
- package/src/app/@modal/(.)settings/modal/index.tsx +45 -0
- package/src/app/@modal/(.)settings/modal/layout.tsx +44 -0
- package/src/app/@modal/(.)settings/modal/loading.tsx +5 -0
- package/src/app/@modal/(.)settings/modal/page.tsx +19 -0
- package/src/app/@modal/_layout/SettingModalLayout.tsx +71 -0
- package/src/app/@modal/chat/(.)settings/modal/features/CategoryContent.tsx +37 -0
- package/src/app/@modal/chat/(.)settings/modal/features/useCategory.tsx +54 -0
- package/src/app/@modal/chat/(.)settings/modal/layout.tsx +58 -0
- package/src/app/@modal/chat/(.)settings/modal/loading.tsx +5 -0
- package/src/app/@modal/chat/(.)settings/modal/page.tsx +55 -0
- package/src/app/@modal/default.tsx +3 -0
- package/src/app/@modal/error.tsx +5 -0
- package/src/app/@modal/layout.tsx +34 -0
- package/src/app/@modal/loading.tsx +5 -0
- package/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/src/app/api/chat/[provider]/route.test.ts +222 -0
- package/src/app/api/chat/[provider]/route.ts +56 -0
- package/src/app/api/chat/agentRuntime.test.ts +333 -0
- package/src/app/api/chat/agentRuntime.ts +240 -0
- package/src/app/api/chat/anthropic/route.test.ts +28 -0
- package/src/app/api/chat/anthropic/route.ts +33 -0
- package/src/app/api/chat/apiKeyManager.test.ts +131 -0
- package/src/app/api/chat/apiKeyManager.ts +46 -0
- package/src/app/api/chat/google/route.test.ts +28 -0
- package/src/app/api/chat/google/route.ts +20 -0
- package/src/app/api/chat/minimax/route.test.ts +24 -0
- package/src/app/api/chat/minimax/route.ts +5 -0
- package/src/app/api/chat/models/[provider]/route.ts +45 -0
- package/src/app/api/config.test.ts +43 -0
- package/src/app/api/config.ts +14 -0
- package/src/app/api/errorResponse.test.ts +100 -0
- package/src/app/api/errorResponse.ts +54 -0
- package/src/app/api/market/AgentMarket.test.ts +55 -0
- package/src/app/api/market/AgentMarket.ts +25 -0
- package/src/app/api/market/[id]/route.ts +22 -0
- package/src/app/api/market/route.ts +23 -0
- package/src/app/api/middleware/auth/index.test.ts +77 -0
- package/src/app/api/middleware/auth/index.ts +62 -0
- package/src/app/api/middleware/auth/utils.test.ts +150 -0
- package/src/app/api/middleware/auth/utils.ts +83 -0
- package/src/app/api/openai/createBizOpenAI/auth.test.ts +53 -0
- package/src/app/api/openai/createBizOpenAI/auth.ts +31 -0
- package/src/app/api/openai/createBizOpenAI/createAzureOpenai.ts +33 -0
- package/src/app/api/openai/createBizOpenAI/createOpenai.ts +17 -0
- package/src/app/api/openai/createBizOpenAI/index.ts +37 -0
- package/src/app/api/openai/stt/route.ts +31 -0
- package/src/app/api/openai/tts/route.ts +19 -0
- package/src/app/api/plugin/gateway/route.ts +82 -0
- package/src/app/api/plugin/gateway/settings.test.ts +105 -0
- package/src/app/api/plugin/gateway/settings.ts +29 -0
- package/src/app/api/plugin/store/Store.test.ts +26 -0
- package/src/app/api/plugin/store/Store.ts +19 -0
- package/src/app/api/plugin/store/route.ts +23 -0
- package/src/app/api/proxy/route.ts +34 -0
- package/src/app/api/text-to-image/[provider]/route.ts +61 -0
- package/src/app/api/trace/route.ts +40 -0
- package/src/app/api/tts/edge-speech/route.ts +9 -0
- package/src/app/api/tts/microsoft-speech/route.ts +9 -0
- package/src/app/api/webhooks/clerk/__tests__/fixtures/createUser.json +73 -0
- package/src/app/api/webhooks/clerk/route.ts +159 -0
- package/src/app/api/webhooks/clerk/validateRequest.ts +22 -0
- package/src/app/error.tsx +5 -0
- package/src/app/global-error.tsx +20 -0
- package/src/app/layout.tsx +64 -0
- package/src/app/metadata.ts +58 -0
- package/src/app/not-found.tsx +3 -0
- package/src/app/page.tsx +23 -0
- package/src/app/trpc/edge/[trpc]/route.ts +28 -0
- package/src/app/trpc/lambda/[trpc]/route.ts +26 -0
- package/src/chains/__tests__/langDetect.test.ts +51 -0
- package/src/chains/__tests__/pickEmoji.test.ts +47 -0
- package/src/chains/__tests__/summaryAgentName.test.ts +57 -0
- package/src/chains/__tests__/summaryDescription.test.ts +83 -0
- package/src/chains/__tests__/summaryTags.test.ts +54 -0
- package/src/chains/__tests__/summaryTitle.test.ts +54 -0
- package/src/chains/__tests__/translate.test.ts +28 -0
- package/src/chains/langDetect.ts +31 -0
- package/src/chains/pickEmoji.ts +31 -0
- package/src/chains/summaryAgentName.ts +35 -0
- package/src/chains/summaryDescription.ts +49 -0
- package/src/chains/summaryTags.ts +28 -0
- package/src/chains/summaryTitle.ts +21 -0
- package/src/chains/translate.ts +17 -0
- package/src/components/404/index.tsx +43 -0
- package/src/components/Analytics/Clarity.tsx +28 -0
- package/src/components/Analytics/Google.tsx +7 -0
- package/src/components/Analytics/Plausible.tsx +16 -0
- package/src/components/Analytics/Posthog.tsx +22 -0
- package/src/components/Analytics/Umami.tsx +16 -0
- package/src/components/Analytics/Vercel.tsx +8 -0
- package/src/components/Analytics/index.tsx +44 -0
- package/src/components/AntdStaticMethods/index.test.tsx +43 -0
- package/src/components/AntdStaticMethods/index.tsx +20 -0
- package/src/components/BrandWatermark/index.tsx +39 -0
- package/src/components/BrowserIcon/components/Brave.tsx +56 -0
- package/src/components/BrowserIcon/components/Chrome.tsx +14 -0
- package/src/components/BrowserIcon/components/Chromium.tsx +14 -0
- package/src/components/BrowserIcon/components/Edge.tsx +36 -0
- package/src/components/BrowserIcon/components/Firefox.tsx +38 -0
- package/src/components/BrowserIcon/components/Opera.tsx +19 -0
- package/src/components/BrowserIcon/components/Safari.tsx +23 -0
- package/src/components/BrowserIcon/components/Samsung.tsx +21 -0
- package/src/components/BrowserIcon/index.tsx +50 -0
- package/src/components/BrowserIcon/types.ts +8 -0
- package/src/components/Cell/Divider.tsx +22 -0
- package/src/components/Cell/index.tsx +53 -0
- package/src/components/DataStyleModal/index.tsx +64 -0
- package/src/components/Error/index.tsx +58 -0
- package/src/components/Error/sentryCaptureException.ts +9 -0
- package/src/components/FetchErrorNotification/Description.tsx +48 -0
- package/src/components/FetchErrorNotification/index.tsx +15 -0
- package/src/components/FileList/EditableFileList.tsx +47 -0
- package/src/components/FileList/FileListViewer.tsx +19 -0
- package/src/components/FileList/index.ts +2 -0
- package/src/components/FileList/type.tsx +7 -0
- package/src/components/FullscreenLoading/index.tsx +20 -0
- package/src/components/GalleyGrid/Grid.tsx +36 -0
- package/src/components/GalleyGrid/index.tsx +58 -0
- package/src/components/GalleyGrid/style.ts +24 -0
- package/src/components/GuideModal/index.tsx +77 -0
- package/src/components/GuideVideo/index.tsx +30 -0
- package/src/components/HotKeys/index.tsx +77 -0
- package/src/components/ImageItem/index.tsx +75 -0
- package/src/components/ImageItem/style.ts +1 -0
- package/src/components/ManifestPreviewer/index.tsx +30 -0
- package/src/components/Menu/index.tsx +97 -0
- package/src/components/ModelIcon/index.tsx +97 -0
- package/src/components/ModelProviderIcon/index.tsx +118 -0
- package/src/components/ModelSelect/index.tsx +163 -0
- package/src/components/ModelTag/ModelIcon.tsx +93 -0
- package/src/components/ModelTag/index.tsx +13 -0
- package/src/components/Notification/index.tsx +95 -0
- package/src/components/PageTitle/index.tsx +11 -0
- package/src/components/SafeSpacing/index.tsx +27 -0
- package/src/components/SidebarHeader/index.tsx +38 -0
- package/src/components/SkeletonLoading/index.tsx +21 -0
- package/src/components/StopLoading.tsx +38 -0
- package/src/components/StoreHydration/ChatHydration/index.tsx +33 -0
- package/src/components/StructuredData/index.tsx +12 -0
- package/src/components/client/ClientResponsiveContent/index.tsx +32 -0
- package/src/components/client/ClientResponsiveLayout.tsx +32 -0
- package/src/components/server/MobileNavLayout.tsx +62 -0
- package/src/components/server/ServerLayout.tsx +19 -0
- package/src/config/__tests__/analytics.test.ts +70 -0
- package/src/config/__tests__/app.test.ts +48 -0
- package/src/config/__tests__/client.test.ts +40 -0
- package/src/config/analytics.ts +148 -0
- package/src/config/app.ts +60 -0
- package/src/config/auth.ts +149 -0
- package/src/config/db.ts +28 -0
- package/src/config/debug.ts +22 -0
- package/src/config/featureFlags/index.ts +31 -0
- package/src/config/featureFlags/schema.test.ts +59 -0
- package/src/config/featureFlags/schema.ts +57 -0
- package/src/config/featureFlags/utils/parser.test.ts +88 -0
- package/src/config/featureFlags/utils/parser.ts +32 -0
- package/src/config/file.ts +34 -0
- package/src/config/langfuse.ts +23 -0
- package/src/config/llm.ts +195 -0
- package/src/config/modelProviders/anthropic.ts +69 -0
- package/src/config/modelProviders/azure.ts +45 -0
- package/src/config/modelProviders/bedrock.ts +96 -0
- package/src/config/modelProviders/deepseek.ts +26 -0
- package/src/config/modelProviders/google.ts +108 -0
- package/src/config/modelProviders/groq.ts +48 -0
- package/src/config/modelProviders/index.ts +80 -0
- package/src/config/modelProviders/minimax.ts +50 -0
- package/src/config/modelProviders/mistral.ts +49 -0
- package/src/config/modelProviders/moonshot.ts +33 -0
- package/src/config/modelProviders/ollama.ts +190 -0
- package/src/config/modelProviders/openai.ts +142 -0
- package/src/config/modelProviders/openrouter.ts +125 -0
- package/src/config/modelProviders/perplexity.ts +52 -0
- package/src/config/modelProviders/qwen.ts +58 -0
- package/src/config/modelProviders/togetherai.ts +79 -0
- package/src/config/modelProviders/zeroone.ts +74 -0
- package/src/config/modelProviders/zhipu.ts +64 -0
- package/src/const/auth.ts +45 -0
- package/src/const/fetch.ts +27 -1
- package/src/const/guide.ts +86 -0
- package/src/const/hotkeys.ts +5 -0
- package/src/const/layoutTokens.ts +21 -0
- package/src/const/locale.ts +12 -0
- package/src/const/market.ts +15 -0
- package/src/const/message.test.ts +55 -0
- package/src/const/message.ts +15 -0
- package/src/const/meta.ts +8 -0
- package/src/const/plugin.ts +2 -0
- package/src/const/session.ts +25 -0
- package/src/const/settings/agent.ts +40 -0
- package/src/const/settings/common.ts +7 -0
- package/src/const/settings/index.ts +28 -0
- package/src/const/settings/llm.ts +96 -0
- package/src/const/settings/sync.ts +5 -0
- package/src/const/settings/systemAgent.ts +13 -0
- package/src/const/settings/tool.ts +5 -0
- package/src/const/settings/tts.ts +10 -0
- package/src/const/theme.ts +5 -0
- package/src/const/trace.ts +60 -0
- package/src/const/url.ts +59 -0
- package/src/const/user.ts +10 -0
- package/src/const/version.ts +6 -0
- package/src/database/client/core/__tests__/db-upgrade.test.ts +42 -0
- package/src/database/client/core/__tests__/db.test.ts +79 -0
- package/src/database/client/core/__tests__/model.test.ts +55 -0
- package/src/database/client/core/db.ts +246 -0
- package/src/database/client/core/index.ts +3 -0
- package/src/database/client/core/migrations/migrateSettingsToUser/fixtures/input.json +55 -0
- package/src/database/client/core/migrations/migrateSettingsToUser/fixtures/output.json +60 -0
- package/src/database/client/core/migrations/migrateSettingsToUser/index.test.ts +14 -0
- package/src/database/client/core/migrations/migrateSettingsToUser/index.ts +22 -0
- package/src/database/client/core/migrations/migrateSettingsToUser/type.ts +108 -0
- package/src/database/client/core/model.ts +252 -0
- package/src/database/client/core/schemas.ts +88 -0
- package/src/database/client/core/sync.ts +328 -0
- package/src/database/client/core/types/db.ts +15 -0
- package/src/database/client/models/__DEBUG.ts +124 -0
- package/src/database/client/models/__tests__/file.test.ts +83 -0
- package/src/database/client/models/__tests__/message.test.ts +417 -0
- package/src/database/client/models/__tests__/plugin.test.ts +81 -0
- package/src/database/client/models/__tests__/session.test.ts +254 -0
- package/src/database/client/models/__tests__/sessionGroup.test.ts +220 -0
- package/src/database/client/models/__tests__/topic.test.ts +523 -0
- package/src/database/client/models/__tests__/user.test.ts +82 -0
- package/src/database/client/models/file.ts +31 -0
- package/src/database/client/models/message.ts +262 -0
- package/src/database/client/models/plugin.ts +62 -0
- package/src/database/client/models/session.ts +271 -0
- package/src/database/client/models/sessionGroup.ts +90 -0
- package/src/database/client/models/topic.ts +244 -0
- package/src/database/client/models/user.ts +69 -0
- package/src/database/client/schemas/files.ts +39 -0
- package/src/database/client/schemas/message.ts +50 -0
- package/src/database/client/schemas/plugin.ts +12 -0
- package/src/database/client/schemas/session.ts +51 -0
- package/src/database/client/schemas/sessionGroup.ts +8 -0
- package/src/database/client/schemas/topic.ts +12 -0
- package/src/database/client/schemas/user.ts +40 -0
- package/src/database/server/core/db.ts +44 -0
- package/src/database/server/core/dbForTest.ts +45 -0
- package/src/database/server/index.ts +1 -0
- package/src/database/server/migrations/0000_init.sql +439 -0
- package/src/database/server/migrations/0001_add_client_id.sql +9 -0
- package/src/database/server/migrations/0002_amusing_puma.sql +9 -0
- package/src/database/server/migrations/meta/0000_snapshot.json +1583 -0
- package/src/database/server/migrations/meta/0001_snapshot.json +1636 -0
- package/src/database/server/migrations/meta/0002_snapshot.json +1630 -0
- package/src/database/server/migrations/meta/_journal.json +27 -0
- package/src/database/server/models/__tests__/file.test.ts +140 -0
- package/src/database/server/models/__tests__/message.test.ts +847 -0
- package/src/database/server/models/__tests__/plugin.test.ts +172 -0
- package/src/database/server/models/__tests__/session.test.ts +595 -0
- package/src/database/server/models/__tests__/topic.test.ts +623 -0
- package/src/database/server/models/__tests__/user.test.ts +173 -0
- package/src/database/server/models/_template.ts +44 -0
- package/src/database/server/models/file.ts +51 -0
- package/src/database/server/models/message.ts +378 -0
- package/src/database/server/models/plugin.ts +63 -0
- package/src/database/server/models/session.ts +290 -0
- package/src/database/server/models/sessionGroup.ts +69 -0
- package/src/database/server/models/topic.ts +265 -0
- package/src/database/server/models/user.ts +138 -0
- package/src/database/server/modules/DataImporter/__tests__/fixtures/messages.json +1101 -0
- package/src/database/server/modules/DataImporter/__tests__/index.test.ts +954 -0
- package/src/database/server/modules/DataImporter/index.ts +333 -0
- package/src/database/server/schemas/_id.ts +15 -0
- package/src/database/server/schemas/lobechat.ts +601 -0
- package/src/database/server/utils/idGenerator.test.ts +39 -0
- package/src/database/server/utils/idGenerator.ts +26 -0
- package/src/features/AgentInfo/index.tsx +70 -0
- package/src/features/AgentSetting/AgentChat/index.tsx +142 -0
- package/src/features/AgentSetting/AgentMeta/AutoGenerateInput.tsx +45 -0
- package/src/features/AgentSetting/AgentMeta/AutoGenerateSelect.tsx +50 -0
- package/src/features/AgentSetting/AgentMeta/BackgroundSwatches.tsx +27 -0
- package/src/features/AgentSetting/AgentMeta/index.tsx +135 -0
- package/src/features/AgentSetting/AgentModal/ModelSelect.tsx +20 -0
- package/src/features/AgentSetting/AgentModal/index.tsx +95 -0
- package/src/features/AgentSetting/AgentPlugin/AddPluginButton.tsx +49 -0
- package/src/features/AgentSetting/AgentPlugin/LoadingList.tsx +48 -0
- package/src/features/AgentSetting/AgentPlugin/LocalPluginItem.tsx +42 -0
- package/src/features/AgentSetting/AgentPlugin/PluginAction/index.tsx +36 -0
- package/src/features/AgentSetting/AgentPlugin/index.tsx +163 -0
- package/src/features/AgentSetting/AgentPrompt/TokenTag.tsx +39 -0
- package/src/features/AgentSetting/AgentPrompt/index.tsx +128 -0
- package/src/features/AgentSetting/AgentTTS/SelectWithTTSPreview.tsx +120 -0
- package/src/features/AgentSetting/AgentTTS/index.tsx +122 -0
- package/src/features/AgentSetting/AgentTTS/options.ts +16 -0
- package/src/features/AgentSetting/StoreUpdater.tsx +27 -0
- package/src/features/AgentSetting/index.tsx +26 -0
- package/src/features/AgentSetting/store/action.ts +287 -0
- package/src/features/AgentSetting/store/index.ts +16 -0
- package/src/features/AgentSetting/store/initialState.ts +28 -0
- package/src/features/AgentSetting/store/reducers/config.ts +54 -0
- package/src/features/AgentSetting/store/reducers/meta.ts +21 -0
- package/src/features/AgentSetting/store/selectors.ts +11 -0
- package/src/features/AgentSetting/useSyncAgemtSettings.ts +14 -0
- package/src/features/AvatarWithUpload/index.tsx +40 -0
- package/src/features/ChatInput/ActionBar/Clear.tsx +49 -0
- package/src/features/ChatInput/ActionBar/FileUpload.tsx +69 -0
- package/src/features/ChatInput/ActionBar/History.tsx +70 -0
- package/src/features/ChatInput/ActionBar/ModelSwitch.tsx +20 -0
- package/src/features/ChatInput/ActionBar/Temperature.tsx +49 -0
- package/src/features/ChatInput/ActionBar/Token/TokenProgress.tsx +80 -0
- package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +149 -0
- package/src/features/ChatInput/ActionBar/Token/index.tsx +18 -0
- package/src/features/ChatInput/ActionBar/Tools/Dropdown.tsx +145 -0
- package/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx +45 -0
- package/src/features/ChatInput/ActionBar/Tools/index.tsx +33 -0
- package/src/features/ChatInput/ActionBar/config.ts +33 -0
- package/src/features/ChatInput/ActionBar/index.tsx +58 -0
- package/src/features/ChatInput/STT/browser.tsx +118 -0
- package/src/features/ChatInput/STT/common.tsx +120 -0
- package/src/features/ChatInput/STT/index.tsx +20 -0
- package/src/features/ChatInput/STT/openai.tsx +129 -0
- package/src/features/ChatInput/Topic/index.tsx +41 -0
- package/src/features/ChatInput/useChatInput.ts +45 -0
- package/src/features/ChatInput/useSend.ts +35 -0
- package/src/features/Conversation/Actions/Assistant.tsx +36 -0
- package/src/features/Conversation/Actions/Error.tsx +11 -0
- package/src/features/Conversation/Actions/Fallback.tsx +13 -0
- package/src/features/Conversation/Actions/Tool.tsx +28 -0
- package/src/features/Conversation/Actions/User.tsx +20 -0
- package/src/features/Conversation/Actions/customAction.ts +37 -0
- package/src/features/Conversation/Actions/index.ts +79 -0
- package/src/features/Conversation/Error/APIKeyForm/Bedrock.tsx +80 -0
- package/src/features/Conversation/Error/APIKeyForm/ProviderApiKeyForm.tsx +79 -0
- package/src/features/Conversation/Error/APIKeyForm/ProviderAvatar.tsx +89 -0
- package/src/features/Conversation/Error/APIKeyForm/index.tsx +96 -0
- package/src/features/Conversation/Error/AccessCodeForm.tsx +63 -0
- package/src/features/Conversation/Error/ClerkLogin/index.tsx +47 -0
- package/src/features/Conversation/Error/ErrorJsonViewer.tsx +26 -0
- package/src/features/Conversation/Error/InvalidAPIKey.tsx +16 -0
- package/src/features/Conversation/Error/InvalidAccessCode.tsx +79 -0
- package/src/features/Conversation/Error/OAuthForm.tsx +97 -0
- package/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel/index.tsx +153 -0
- package/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel/useDownloadMonitor.ts +46 -0
- package/src/features/Conversation/Error/OllamaBizError/SetupGuide.tsx +221 -0
- package/src/features/Conversation/Error/OllamaBizError/index.tsx +47 -0
- package/src/features/Conversation/Error/OpenAiBizError.tsx +29 -0
- package/src/features/Conversation/Error/PluginSettings.tsx +66 -0
- package/src/features/Conversation/Error/index.tsx +117 -0
- package/src/features/Conversation/Error/style.tsx +76 -0
- package/src/features/Conversation/Extras/Assistant.test.tsx +86 -0
- package/src/features/Conversation/Extras/Assistant.tsx +51 -0
- package/src/features/Conversation/Extras/ExtraContainer.tsx +13 -0
- package/src/features/Conversation/Extras/TTS/FilePlayer.tsx +25 -0
- package/src/features/Conversation/Extras/TTS/InitPlayer.tsx +93 -0
- package/src/features/Conversation/Extras/TTS/Player.tsx +61 -0
- package/src/features/Conversation/Extras/TTS/index.tsx +32 -0
- package/src/features/Conversation/Extras/Translate.tsx +72 -0
- package/src/features/Conversation/Extras/User.tsx +36 -0
- package/src/features/Conversation/Extras/index.ts +8 -0
- package/src/features/Conversation/Extras/type.ts +5 -0
- package/src/features/Conversation/Messages/Assistant/ToolCalls/index.tsx +73 -0
- package/src/features/Conversation/Messages/Assistant/ToolCalls/style.ts +25 -0
- package/src/features/Conversation/Messages/Assistant/index.tsx +51 -0
- package/src/features/Conversation/Messages/Default.tsx +19 -0
- package/src/features/Conversation/Messages/Tool/Inspector/PluginResultJSON.tsx +24 -0
- package/src/features/Conversation/Messages/Tool/Inspector/Settings.tsx +39 -0
- package/src/features/Conversation/Messages/Tool/Inspector/index.tsx +134 -0
- package/src/features/Conversation/Messages/Tool/Inspector/style.ts +26 -0
- package/src/features/Conversation/Messages/Tool/index.tsx +44 -0
- package/src/features/Conversation/Messages/User.tsx +23 -0
- package/src/features/Conversation/Messages/index.ts +38 -0
- package/src/features/Conversation/Plugins/Render/BuiltinType/index.test.tsx +53 -0
- package/src/features/Conversation/Plugins/Render/BuiltinType/index.tsx +29 -0
- package/src/features/Conversation/Plugins/Render/DefaultType/IFrameRender/index.tsx +61 -0
- package/src/features/Conversation/Plugins/Render/DefaultType/SystemJsRender/index.tsx +40 -0
- package/src/features/Conversation/Plugins/Render/DefaultType/SystemJsRender/utils.ts +26 -0
- package/src/features/Conversation/Plugins/Render/DefaultType/index.tsx +53 -0
- package/src/features/Conversation/Plugins/Render/Loading.tsx +60 -0
- package/src/features/Conversation/Plugins/Render/MarkdownType/index.tsx +25 -0
- package/src/features/Conversation/Plugins/Render/StandaloneType/Iframe.tsx +163 -0
- package/src/features/Conversation/Plugins/Render/StandaloneType/index.tsx +29 -0
- package/src/features/Conversation/Plugins/Render/index.tsx +51 -0
- package/src/features/Conversation/Plugins/Render/useParseContent.ts +15 -0
- package/src/features/Conversation/Plugins/Render/utils/iframeOnReady.test.ts +75 -0
- package/src/features/Conversation/Plugins/Render/utils/iframeOnReady.ts +25 -0
- package/src/features/Conversation/Plugins/Render/utils/listenToPlugin.test.ts +164 -0
- package/src/features/Conversation/Plugins/Render/utils/listenToPlugin.ts +98 -0
- package/src/features/Conversation/Plugins/Render/utils/pluginSettings.test.ts +53 -0
- package/src/features/Conversation/Plugins/Render/utils/pluginSettings.ts +17 -0
- package/src/features/Conversation/Plugins/Render/utils/pluginState.test.ts +43 -0
- package/src/features/Conversation/Plugins/Render/utils/pluginState.ts +20 -0
- package/src/features/Conversation/Plugins/Render/utils/postMessage.test.ts +64 -0
- package/src/features/Conversation/Plugins/Render/utils/postMessage.ts +28 -0
- package/src/features/Conversation/components/AutoScroll.tsx +26 -0
- package/src/features/Conversation/components/BackBottom/index.tsx +31 -0
- package/src/features/Conversation/components/BackBottom/style.ts +36 -0
- package/src/features/Conversation/components/BubblesLoading.tsx +61 -0
- package/src/features/Conversation/components/ChatItem/ActionsBar.tsx +58 -0
- package/src/features/Conversation/components/ChatItem/HistoryDivider.tsx +26 -0
- package/src/features/Conversation/components/ChatItem/index.tsx +156 -0
- package/src/features/Conversation/components/ChatList/index.tsx +21 -0
- package/src/features/Conversation/components/InboxWelcome/AgentsSuggest.tsx +113 -0
- package/src/features/Conversation/components/InboxWelcome/QuestionSuggest.tsx +104 -0
- package/src/features/Conversation/components/InboxWelcome/index.tsx +70 -0
- package/src/features/Conversation/components/OTPInput.tsx +136 -0
- package/src/features/Conversation/components/SkeletonList.tsx +51 -0
- package/src/features/Conversation/components/VirtualizedList/index.tsx +138 -0
- package/src/features/Conversation/hooks/useChatListActionsBar.tsx +55 -0
- package/src/features/Conversation/index.tsx +30 -0
- package/src/features/Conversation/types/index.tsx +32 -0
- package/src/features/DataImporter/Error.tsx +65 -0
- package/src/features/DataImporter/FileUploading.tsx +50 -0
- package/src/features/DataImporter/Loading.tsx +125 -0
- package/src/features/DataImporter/SuccessResult.tsx +61 -0
- package/src/features/DataImporter/index.tsx +185 -0
- package/src/features/DataImporter/style.ts +17 -0
- package/src/features/DebugUI/index.tsx +36 -0
- package/src/features/FileList/EditableFileList.tsx +31 -0
- package/src/features/FileList/FileListPreviewer.tsx +17 -0
- package/src/features/FileList/index.tsx +2 -0
- package/src/features/Follow/index.tsx +64 -0
- package/src/features/MobileSwitchLoading/index.tsx +13 -0
- package/src/features/MobileTabBar/index.tsx +61 -0
- package/src/features/ModelSelect/index.tsx +67 -0
- package/src/features/ModelSwitchPanel/index.tsx +113 -0
- package/src/features/PWAInstall/index.tsx +72 -0
- package/src/features/PluginDetailModal/APIs.tsx +43 -0
- package/src/features/PluginDetailModal/Meta.tsx +57 -0
- package/src/features/PluginDetailModal/index.tsx +75 -0
- package/src/features/PluginDevModal/LocalForm.tsx +124 -0
- package/src/features/PluginDevModal/PluginPreview.tsx +36 -0
- package/src/features/PluginDevModal/UrlManifestForm.tsx +134 -0
- package/src/features/PluginDevModal/index.tsx +172 -0
- package/src/features/PluginSettings/PluginSettingRender.tsx +86 -0
- package/src/features/PluginSettings/index.tsx +87 -0
- package/src/features/PluginStore/AddPluginButton.tsx +47 -0
- package/src/features/PluginStore/InstalledPluginList.tsx +61 -0
- package/src/features/PluginStore/Loading.tsx +13 -0
- package/src/features/PluginStore/OnlineList.tsx +89 -0
- package/src/features/PluginStore/PluginItem/Action.tsx +116 -0
- package/src/features/PluginStore/PluginItem/EditCustomPlugin.tsx +55 -0
- package/src/features/PluginStore/PluginItem/PluginTag.tsx +58 -0
- package/src/features/PluginStore/PluginItem/index.tsx +82 -0
- package/src/features/PluginStore/index.tsx +57 -0
- package/src/features/Setting/Footer.tsx +96 -0
- package/src/features/Setting/SettingContainer.tsx +35 -0
- package/src/features/SyncStatusInspector/DisableSync.tsx +79 -0
- package/src/features/SyncStatusInspector/EnableSync.tsx +136 -0
- package/src/features/SyncStatusInspector/EnableTag.tsx +66 -0
- package/src/features/SyncStatusInspector/index.tsx +27 -0
- package/src/features/User/DataStatistics.tsx +155 -0
- package/src/features/User/PlanTag.tsx +45 -0
- package/src/features/User/UserAvatar.tsx +75 -0
- package/src/features/User/UserInfo.tsx +59 -0
- package/src/features/User/UserLoginOrSignup.tsx +23 -0
- package/src/features/User/UserPanel/LangButton.tsx +57 -0
- package/src/features/User/UserPanel/PanelContent.tsx +85 -0
- package/src/features/User/UserPanel/ThemeButton.tsx +70 -0
- package/src/features/User/UserPanel/UpgradeBadge.tsx +19 -0
- package/src/features/User/UserPanel/index.tsx +43 -0
- package/src/features/User/UserPanel/useMenu.tsx +239 -0
- package/src/features/User/UserPanel/useNewVersion.tsx +14 -0
- package/src/features/User/__tests__/PanelContent.test.tsx +155 -0
- package/src/features/User/__tests__/UserAvatar.test.tsx +83 -0
- package/src/features/User/__tests__/useMenu.test.tsx +146 -0
- package/src/hooks/_header.ts +23 -0
- package/src/hooks/useActiveSettingsKey.ts +20 -0
- package/src/hooks/useActiveTabKey.ts +12 -0
- package/src/hooks/useDownloadSpeed.ts +50 -0
- package/src/hooks/useGreeting/greetingTime.ts +14 -0
- package/src/hooks/useGreeting/index.ts +16 -0
- package/src/hooks/useInterceptingRoutes.test.ts +70 -0
- package/src/hooks/useInterceptingRoutes.ts +46 -0
- package/src/hooks/useIsMobile.ts +8 -0
- package/src/hooks/useIsSubSlug.ts +12 -0
- package/src/hooks/usePWAInstall.test.ts +78 -0
- package/src/hooks/usePWAInstall.ts +39 -0
- package/src/hooks/usePlatform.test.ts +82 -0
- package/src/hooks/usePlatform.ts +32 -0
- package/src/hooks/useProviderName.ts +8 -0
- package/src/hooks/useQuery.test.ts +19 -0
- package/src/hooks/useQuery.ts +8 -0
- package/src/hooks/useQueryRoute.test.ts +86 -0
- package/src/hooks/useQueryRoute.ts +46 -0
- package/src/hooks/useSyncData.ts +50 -0
- package/src/hooks/useTTS.ts +84 -0
- package/src/hooks/useTokenCount.test.ts +41 -0
- package/src/hooks/useTokenCount.ts +20 -0
- package/src/layout/AuthProvider/Clerk/UserUpdater.tsx +40 -0
- package/src/layout/AuthProvider/Clerk/index.tsx +26 -0
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +123 -0
- package/src/layout/AuthProvider/NextAuth/UserUpdater.tsx +35 -0
- package/src/layout/AuthProvider/NextAuth/index.tsx +17 -0
- package/src/layout/AuthProvider/NoAuth/index.tsx +16 -0
- package/src/layout/AuthProvider/index.tsx +17 -0
- package/src/layout/GlobalProvider/AppTheme.tsx +127 -0
- package/src/layout/GlobalProvider/Locale.tsx +62 -0
- package/src/layout/GlobalProvider/StoreInitialization.tsx +79 -0
- package/src/layout/GlobalProvider/StyleRegistry.tsx +24 -0
- package/src/layout/GlobalProvider/index.tsx +100 -0
- package/src/libs/agent-runtime/AgentRuntime.test.ts +416 -0
- package/src/libs/agent-runtime/AgentRuntime.ts +221 -0
- package/src/libs/agent-runtime/BaseAI.ts +24 -0
- package/src/libs/agent-runtime/anthropic/index.test.ts +507 -0
- package/src/libs/agent-runtime/anthropic/index.ts +160 -0
- package/src/libs/agent-runtime/azureOpenai/index.test.ts +356 -0
- package/src/libs/agent-runtime/azureOpenai/index.ts +106 -0
- package/src/libs/agent-runtime/bedrock/index.test.ts +394 -0
- package/src/libs/agent-runtime/bedrock/index.ts +154 -0
- package/src/libs/agent-runtime/deepseek/index.test.ts +255 -0
- package/src/libs/agent-runtime/deepseek/index.ts +10 -0
- package/src/libs/agent-runtime/error.ts +26 -0
- package/src/libs/agent-runtime/google/index.test.ts +602 -0
- package/src/libs/agent-runtime/google/index.ts +336 -0
- package/src/libs/agent-runtime/groq/index.test.ts +320 -0
- package/src/libs/agent-runtime/groq/index.ts +25 -0
- package/src/libs/agent-runtime/index.ts +22 -0
- package/src/libs/agent-runtime/minimax/index.test.ts +275 -0
- package/src/libs/agent-runtime/minimax/index.ts +176 -0
- package/src/libs/agent-runtime/mistral/index.test.ts +331 -0
- package/src/libs/agent-runtime/mistral/index.ts +21 -0
- package/src/libs/agent-runtime/moonshot/index.test.ts +251 -0
- package/src/libs/agent-runtime/moonshot/index.ts +10 -0
- package/src/libs/agent-runtime/ollama/index.test.ts +197 -0
- package/src/libs/agent-runtime/ollama/index.ts +111 -0
- package/src/libs/agent-runtime/ollama/type.ts +8 -0
- package/src/libs/agent-runtime/openai/__snapshots__/index.test.ts.snap +101 -0
- package/src/libs/agent-runtime/openai/fixtures/openai-models.json +170 -0
- package/src/libs/agent-runtime/openai/index.test.ts +245 -0
- package/src/libs/agent-runtime/openai/index.ts +16 -0
- package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +82 -0
- package/src/libs/agent-runtime/openrouter/fixtures/models.json +62 -0
- package/src/libs/agent-runtime/openrouter/index.test.ts +312 -0
- package/src/libs/agent-runtime/openrouter/index.ts +41 -0
- package/src/libs/agent-runtime/openrouter/type.ts +28 -0
- package/src/libs/agent-runtime/perplexity/index.test.ts +249 -0
- package/src/libs/agent-runtime/perplexity/index.ts +31 -0
- package/src/libs/agent-runtime/qwen/index.test.ts +251 -0
- package/src/libs/agent-runtime/qwen/index.ts +28 -0
- package/src/libs/agent-runtime/togetherai/__snapshots__/index.test.ts.snap +886 -0
- package/src/libs/agent-runtime/togetherai/fixtures/models.json +8111 -0
- package/src/libs/agent-runtime/togetherai/index.test.ts +313 -0
- package/src/libs/agent-runtime/togetherai/index.ts +47 -0
- package/src/libs/agent-runtime/togetherai/type.ts +75 -0
- package/src/libs/agent-runtime/types/chat.ts +150 -0
- package/src/libs/agent-runtime/types/index.ts +3 -0
- package/src/libs/agent-runtime/types/textToImage.ts +34 -0
- package/src/libs/agent-runtime/types/type.ts +44 -0
- package/src/libs/agent-runtime/utils/anthropicHelpers.test.ts +233 -0
- package/src/libs/agent-runtime/utils/anthropicHelpers.ts +120 -0
- package/src/libs/agent-runtime/utils/createError.ts +11 -0
- package/src/libs/agent-runtime/utils/debugStream.test.ts +70 -0
- package/src/libs/agent-runtime/utils/debugStream.ts +48 -0
- package/src/libs/agent-runtime/utils/desensitizeUrl.test.ts +47 -0
- package/src/libs/agent-runtime/utils/desensitizeUrl.ts +34 -0
- package/src/libs/agent-runtime/utils/handleOpenAIError.ts +39 -0
- package/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.test.ts +641 -0
- package/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts +294 -0
- package/src/libs/agent-runtime/utils/response.ts +12 -0
- package/src/libs/agent-runtime/utils/streams/anthropic.test.ts +197 -0
- package/src/libs/agent-runtime/utils/streams/anthropic.ts +91 -0
- package/src/libs/agent-runtime/utils/streams/bedrock/claude.ts +21 -0
- package/src/libs/agent-runtime/utils/streams/bedrock/common.ts +32 -0
- package/src/libs/agent-runtime/utils/streams/bedrock/index.ts +3 -0
- package/src/libs/agent-runtime/utils/streams/bedrock/llama.test.ts +196 -0
- package/src/libs/agent-runtime/utils/streams/bedrock/llama.ts +51 -0
- package/src/libs/agent-runtime/utils/streams/google-ai.test.ts +97 -0
- package/src/libs/agent-runtime/utils/streams/google-ai.ts +68 -0
- package/src/libs/agent-runtime/utils/streams/index.ts +7 -0
- package/src/libs/agent-runtime/utils/streams/minimax.ts +39 -0
- package/src/libs/agent-runtime/utils/streams/ollama.test.ts +77 -0
- package/src/libs/agent-runtime/utils/streams/ollama.ts +38 -0
- package/src/libs/agent-runtime/utils/streams/openai.test.ts +263 -0
- package/src/libs/agent-runtime/utils/streams/openai.ts +83 -0
- package/src/libs/agent-runtime/utils/streams/protocol.ts +100 -0
- package/src/libs/agent-runtime/utils/uriParser.test.ts +29 -0
- package/src/libs/agent-runtime/utils/uriParser.ts +24 -0
- package/src/libs/agent-runtime/zeroone/index.test.ts +299 -0
- package/src/libs/agent-runtime/zeroone/index.ts +11 -0
- package/src/libs/agent-runtime/zhipu/authToken.test.ts +18 -0
- package/src/libs/agent-runtime/zhipu/authToken.ts +22 -0
- package/src/libs/agent-runtime/zhipu/index.test.ts +322 -0
- package/src/libs/agent-runtime/zhipu/index.ts +130 -0
- package/src/libs/logger/index.ts +5 -0
- package/src/libs/next-auth/index.ts +46 -0
- package/src/libs/next-auth/sso-providers/auth0.ts +17 -0
- package/src/libs/next-auth/sso-providers/authentik.ts +17 -0
- package/src/libs/next-auth/sso-providers/azure-ad.ts +17 -0
- package/src/libs/next-auth/sso-providers/github.ts +15 -0
- package/src/libs/next-auth/sso-providers/index.ts +7 -0
- package/src/libs/next-auth/sso-providers/zitadel.ts +16 -0
- package/src/libs/swr/index.ts +74 -0
- package/src/libs/traces/event.test.ts +158 -0
- package/src/libs/traces/event.ts +133 -0
- package/src/libs/traces/index.test.ts +61 -0
- package/src/libs/traces/index.ts +52 -0
- package/src/libs/trpc/client.ts +65 -0
- package/src/libs/trpc/index.ts +42 -0
- package/src/libs/trpc/init.ts +26 -0
- package/src/libs/trpc/middleware/password.test.ts +88 -0
- package/src/libs/trpc/middleware/password.ts +26 -0
- package/src/libs/trpc/middleware/userAuth.test.ts +44 -0
- package/src/libs/trpc/middleware/userAuth.ts +18 -0
- package/src/locales/create.ts +51 -38
- package/src/locales/default/auth.ts +8 -0
- package/src/locales/default/chat.ts +139 -0
- package/src/locales/default/clerk.ts +782 -0
- package/src/locales/default/common.ts +214 -39
- package/src/locales/default/components.ts +16 -0
- package/src/locales/default/error.ts +127 -0
- package/src/locales/default/index.ts +33 -0
- package/src/locales/default/market.ts +32 -0
- package/src/locales/default/metadata.ts +20 -0
- package/src/locales/default/migration.ts +47 -0
- package/src/locales/default/modelProvider.ts +111 -0
- package/src/locales/default/plugin.ts +166 -0
- package/src/locales/default/setting.ts +343 -32
- package/src/locales/default/tool.ts +10 -0
- package/src/locales/default/welcome.ts +50 -0
- package/src/locales/resources.test.ts +49 -0
- package/src/locales/resources.ts +114 -0
- package/src/middleware.ts +47 -0
- package/src/migrations/FromV0ToV1.ts +2 -4
- package/src/migrations/FromV1ToV2/fixtures/input-v1-session.json +191 -0
- package/src/migrations/FromV1ToV2/fixtures/output-v2.json +202 -0
- package/src/migrations/FromV1ToV2/index.ts +82 -0
- package/src/migrations/FromV1ToV2/migrations.test.ts +224 -0
- package/src/migrations/FromV1ToV2/types/v1.ts +78 -0
- package/src/migrations/FromV1ToV2/types/v2.ts +52 -0
- package/src/migrations/FromV2ToV3/fixtures/input-v2-session.json +72 -0
- package/src/migrations/FromV2ToV3/fixtures/output-v3-from-v1.json +203 -0
- package/src/migrations/FromV2ToV3/fixtures/output-v3.json +74 -0
- package/src/migrations/FromV2ToV3/index.ts +30 -0
- package/src/migrations/FromV2ToV3/migrations.test.ts +42 -0
- package/src/migrations/FromV2ToV3/types/v3.ts +27 -0
- package/src/migrations/FromV3ToV4/fixtures/azure-input-v3.json +79 -0
- package/src/migrations/FromV3ToV4/fixtures/azure-output-v4.json +75 -0
- package/src/migrations/FromV3ToV4/fixtures/ollama-input-v3.json +85 -0
- package/src/migrations/FromV3ToV4/fixtures/ollama-output-v4.json +85 -0
- package/src/migrations/FromV3ToV4/fixtures/openai-input-v3.json +77 -0
- package/src/migrations/FromV3ToV4/fixtures/openai-output-v4.json +77 -0
- package/src/migrations/FromV3ToV4/fixtures/openrouter-input-v3.json +82 -0
- package/src/migrations/FromV3ToV4/fixtures/openrouter-output-v4.json +85 -0
- package/src/migrations/FromV3ToV4/fixtures/output-v4-from-v1.json +203 -0
- package/src/migrations/FromV3ToV4/index.ts +102 -0
- package/src/migrations/FromV3ToV4/migrations.test.ts +195 -0
- package/src/migrations/FromV3ToV4/types/v3.ts +52 -0
- package/src/migrations/FromV3ToV4/types/v4.ts +37 -0
- package/src/migrations/FromV4ToV5/fixtures/from-v1-to-v5-output.json +245 -0
- package/src/migrations/FromV4ToV5/fixtures/function-input-v4.json +96 -0
- package/src/migrations/FromV4ToV5/fixtures/function-output-v5.json +120 -0
- package/src/migrations/FromV4ToV5/index.ts +58 -0
- package/src/migrations/FromV4ToV5/migrations.test.ts +49 -0
- package/src/migrations/FromV4ToV5/types/v4.ts +21 -0
- package/src/migrations/FromV4ToV5/types/v5.ts +27 -0
- package/src/migrations/FromV5ToV6/fixtures/from-v1-to-v6-output.json +247 -0
- package/src/migrations/FromV5ToV6/fixtures/session-input-v5.json +81 -0
- package/src/migrations/FromV5ToV6/fixtures/session-output-v6.json +85 -0
- package/src/migrations/FromV5ToV6/index.ts +61 -0
- package/src/migrations/FromV5ToV6/migrations.test.ts +50 -0
- package/src/migrations/FromV5ToV6/types/v5.ts +48 -0
- package/src/migrations/FromV5ToV6/types/v6.ts +60 -0
- package/src/migrations/FromV6ToV7/fixtures/output-v7-from-v1.json +203 -0
- package/src/migrations/FromV6ToV7/fixtures/provider-input-v6.json +103 -0
- package/src/migrations/FromV6ToV7/fixtures/provider-output-v7.json +118 -0
- package/src/migrations/FromV6ToV7/index.ts +101 -0
- package/src/migrations/FromV6ToV7/migrations.test.ts +64 -0
- package/src/migrations/FromV6ToV7/types/v6.ts +61 -0
- package/src/migrations/FromV6ToV7/types/v7.ts +71 -0
- package/src/{utils → migrations}/VersionController.test.ts +1 -3
- package/src/{utils → migrations}/VersionController.ts +6 -3
- package/src/migrations/index.ts +55 -7
- package/src/server/context.ts +51 -0
- package/src/server/files/s3.ts +78 -0
- package/src/server/globalConfig/index.ts +132 -0
- package/src/server/globalConfig/parseDefaultAgent.test.ts +195 -0
- package/src/server/globalConfig/parseDefaultAgent.ts +47 -0
- package/src/server/globalConfig/parseSystemAgent.test.ts +95 -0
- package/src/server/globalConfig/parseSystemAgent.ts +39 -0
- package/src/server/keyVaultsEncrypt/index.test.ts +62 -0
- package/src/server/keyVaultsEncrypt/index.ts +93 -0
- package/src/server/ld.ts +218 -0
- package/src/server/metadata.ts +96 -0
- package/src/server/mock.ts +8 -0
- package/src/server/routers/edge/config/__snapshots__/index.test.ts.snap +134 -0
- package/src/server/routers/edge/config/index.test.ts +195 -0
- package/src/server/routers/edge/config/index.ts +12 -0
- package/src/server/routers/edge/index.ts +15 -0
- package/src/server/routers/edge/upload.ts +16 -0
- package/src/server/routers/lambda/file.ts +49 -0
- package/src/server/routers/lambda/importer.ts +54 -0
- package/src/server/routers/lambda/index.ts +28 -0
- package/src/server/routers/lambda/message.ts +165 -0
- package/src/server/routers/lambda/plugin.ts +100 -0
- package/src/server/routers/lambda/session.ts +194 -0
- package/src/server/routers/lambda/sessionGroup.ts +77 -0
- package/src/server/routers/lambda/topic.ts +134 -0
- package/src/server/routers/lambda/user.ts +57 -0
- package/src/server/translation.ts +44 -0
- package/src/services/__tests__/__snapshots__/chat.test.ts.snap +116 -0
- package/src/services/__tests__/__snapshots__/tool.test.ts.snap +204 -0
- package/src/services/__tests__/chat.test.ts +959 -0
- package/src/services/__tests__/global.test.ts +100 -0
- package/src/services/__tests__/ollama.test.ts +28 -0
- package/src/services/__tests__/openai/OpenAPI_V3.json +245 -0
- package/src/services/__tests__/openai/plugin.json +22 -0
- package/src/services/__tests__/share.test.ts +131 -0
- package/src/services/__tests__/sync.test.ts +56 -0
- package/src/services/__tests__/tool.test.ts +268 -0
- package/src/services/__tests__/upload.test.ts +72 -0
- package/src/services/_auth.test.ts +175 -0
- package/src/services/_auth.ts +75 -0
- package/src/services/_header.ts +20 -0
- package/src/services/_url.ts +46 -0
- package/src/services/chat.ts +524 -0
- package/src/services/config.ts +159 -0
- package/src/services/debug.ts +40 -0
- package/src/services/file/client.test.ts +160 -0
- package/src/services/file/client.ts +65 -0
- package/src/services/file/index.ts +6 -0
- package/src/services/file/server.ts +45 -0
- package/src/services/file/type.ts +9 -0
- package/src/services/github.ts +42 -0
- package/src/services/global.ts +29 -0
- package/src/services/import/client.ts +74 -0
- package/src/services/import/index.ts +6 -0
- package/src/services/import/server.ts +115 -0
- package/src/services/market.ts +22 -0
- package/src/services/message/client.test.ts +349 -0
- package/src/services/message/client.ts +83 -0
- package/src/services/message/index.test.ts +48 -0
- package/src/services/message/index.ts +8 -0
- package/src/services/message/server.ts +93 -0
- package/src/services/message/type.ts +46 -0
- package/src/services/models.ts +37 -0
- package/src/services/ollama.ts +83 -0
- package/src/services/plugin/client.test.ts +162 -0
- package/src/services/plugin/client.ts +42 -0
- package/src/services/plugin/index.ts +6 -0
- package/src/services/plugin/server.ts +46 -0
- package/src/services/plugin/type.ts +21 -0
- package/src/services/session/client.test.ts +439 -0
- package/src/services/session/client.ts +180 -0
- package/src/services/session/index.ts +6 -0
- package/src/services/session/server.ts +148 -0
- package/src/services/session/type.ts +65 -0
- package/src/services/share.ts +61 -0
- package/src/services/sync.ts +19 -0
- package/src/services/textToImage.ts +36 -0
- package/src/services/tool.ts +144 -0
- package/src/services/topic/client.test.ts +245 -0
- package/src/services/topic/client.ts +70 -0
- package/src/services/topic/index.ts +6 -0
- package/src/services/topic/server.ts +68 -0
- package/src/services/topic/type.ts +34 -0
- package/src/services/trace.ts +28 -0
- package/src/services/upload.ts +99 -0
- package/src/services/user/client.test.ts +102 -0
- package/src/services/user/client.ts +52 -0
- package/src/services/user/index.ts +6 -0
- package/src/services/user/server.ts +28 -0
- package/src/services/user/type.ts +11 -0
- package/src/store/agent/index.ts +2 -0
- package/src/store/agent/initialState.ts +7 -0
- package/src/store/agent/selectors.ts +1 -0
- package/src/store/agent/slices/chat/__snapshots__/selectors.test.ts.snap +30 -0
- package/src/store/agent/slices/chat/action.test.ts +305 -0
- package/src/store/agent/slices/chat/action.ts +176 -0
- package/src/store/agent/slices/chat/index.ts +2 -0
- package/src/store/agent/slices/chat/initialState.ts +20 -0
- package/src/store/agent/slices/chat/selectors.test.ts +227 -0
- package/src/store/agent/slices/chat/selectors.ts +98 -0
- package/src/store/agent/store.ts +22 -0
- package/src/store/chat/helpers.test.ts +109 -0
- package/src/store/chat/helpers.ts +30 -0
- package/src/store/chat/index.ts +3 -0
- package/src/store/chat/initialState.ts +13 -0
- package/src/store/chat/selectors.ts +3 -0
- package/src/store/chat/slices/builtinTool/action.test.ts +104 -0
- package/src/store/chat/slices/builtinTool/action.ts +101 -0
- package/src/store/chat/slices/builtinTool/initialState.ts +7 -0
- package/src/store/chat/slices/builtinTool/selectors.ts +11 -0
- package/src/store/chat/slices/enchance/action.test.ts +126 -0
- package/src/store/chat/slices/enchance/action.ts +124 -0
- package/src/store/chat/slices/message/action.test.ts +1243 -0
- package/src/store/chat/slices/message/action.ts +765 -0
- package/src/store/chat/slices/message/initialState.ts +45 -0
- package/src/store/chat/slices/message/reducer.test.ts +83 -0
- package/src/store/chat/slices/message/reducer.ts +131 -0
- package/src/store/chat/slices/message/selectors.test.ts +293 -0
- package/src/store/chat/slices/message/selectors.ts +161 -0
- package/src/store/chat/slices/message/utils.ts +7 -0
- package/src/store/chat/slices/plugin/action.test.ts +660 -0
- package/src/store/chat/slices/plugin/action.ts +304 -0
- package/src/store/chat/slices/share/action.test.ts +213 -0
- package/src/store/chat/slices/share/action.ts +122 -0
- package/src/store/chat/slices/share/initialState.ts +7 -0
- package/src/store/chat/slices/topic/action.test.ts +540 -0
- package/src/store/chat/slices/topic/action.ts +330 -0
- package/src/store/chat/slices/topic/initialState.ts +28 -0
- package/src/store/chat/slices/topic/reducer.test.ts +139 -0
- package/src/store/chat/slices/topic/reducer.ts +67 -0
- package/src/store/chat/slices/topic/selectors.test.ts +95 -0
- package/src/store/chat/slices/topic/selectors.ts +35 -0
- package/src/store/chat/store.ts +44 -0
- package/src/store/file/index.ts +2 -0
- package/src/store/file/initialState.ts +7 -0
- package/src/store/file/selectors.ts +7 -0
- package/src/store/file/slices/images/action.test.ts +184 -0
- package/src/store/file/slices/images/action.ts +153 -0
- package/src/store/file/slices/images/initialState.ts +13 -0
- package/src/store/file/slices/images/selectors.test.ts +78 -0
- package/src/store/file/slices/images/selectors.ts +40 -0
- package/src/store/file/slices/tts/action.test.ts +141 -0
- package/src/store/file/slices/tts/action.ts +63 -0
- package/src/store/file/slices/tts/index.ts +2 -0
- package/src/store/file/slices/tts/selectors.ts +3 -0
- package/src/store/file/store.ts +23 -0
- package/src/store/global/action.test.ts +183 -0
- package/src/store/global/action.ts +107 -0
- package/src/store/global/index.ts +1 -0
- package/src/store/global/initialState.ts +72 -0
- package/src/store/global/selectors.ts +26 -0
- package/src/store/global/store.ts +26 -0
- package/src/store/market/action.ts +82 -0
- package/src/store/market/index.ts +3 -0
- package/src/store/market/initialState.ts +19 -0
- package/src/store/market/selectors.ts +38 -0
- package/src/store/market/store.ts +48 -0
- package/src/store/middleware/createDevtools.ts +23 -0
- package/src/store/middleware/createHyperStorage/index.test.ts +341 -0
- package/src/store/middleware/createHyperStorage/index.ts +126 -0
- package/src/store/middleware/createHyperStorage/indexedDB.test.ts +64 -0
- package/src/store/middleware/createHyperStorage/indexedDB.ts +26 -0
- package/src/store/middleware/createHyperStorage/keyMapper.ts +57 -0
- package/src/store/middleware/createHyperStorage/localStorage.ts +18 -0
- package/src/store/middleware/createHyperStorage/type.ts +25 -0
- package/src/store/middleware/createHyperStorage/urlStorage.test.ts +84 -0
- package/src/store/middleware/createHyperStorage/urlStorage.ts +81 -0
- package/src/store/serverConfig/Provider.tsx +23 -0
- package/src/store/serverConfig/index.ts +3 -0
- package/src/store/serverConfig/selectors.test.ts +74 -0
- package/src/store/serverConfig/selectors.ts +14 -0
- package/src/store/serverConfig/store.test.ts +53 -0
- package/src/store/serverConfig/store.ts +66 -0
- package/src/store/session/helpers.ts +1 -0
- package/src/store/session/index.ts +1 -32
- package/src/store/session/initialState.ts +4 -6
- package/src/store/session/selectors.ts +2 -3
- package/src/store/session/slices/session/action.test.ts +232 -0
- package/src/store/session/slices/session/action.ts +226 -70
- package/src/store/session/slices/session/helpers.ts +17 -0
- package/src/store/session/slices/session/initialState.ts +18 -19
- package/src/store/session/slices/session/reducers.test.ts +79 -0
- package/src/store/session/slices/session/reducers.ts +61 -0
- package/src/store/session/slices/session/selectors/index.ts +2 -20
- package/src/store/session/slices/session/selectors/list.test.ts +126 -0
- package/src/store/session/slices/session/selectors/list.ts +45 -51
- package/src/store/session/slices/session/selectors/meta.test.ts +108 -0
- package/src/store/session/slices/session/selectors/meta.ts +45 -0
- package/src/store/session/slices/sessionGroup/action.test.ts +133 -0
- package/src/store/session/slices/sessionGroup/action.ts +73 -0
- package/src/store/session/slices/sessionGroup/initialState.ts +12 -0
- package/src/store/session/slices/sessionGroup/reducer.test.ts +86 -0
- package/src/store/session/slices/sessionGroup/reducer.ts +56 -0
- package/src/store/session/slices/sessionGroup/selectors.ts +11 -0
- package/src/store/session/store.ts +25 -9
- package/src/store/tool/helpers.ts +28 -0
- package/src/store/tool/index.ts +2 -0
- package/src/store/tool/initialState.ts +13 -0
- package/src/store/tool/selectors/index.ts +5 -0
- package/src/store/tool/selectors/tool.test.ts +233 -0
- package/src/store/tool/selectors/tool.ts +110 -0
- package/src/store/tool/slices/builtin/action.test.ts +90 -0
- package/src/store/tool/slices/builtin/action.ts +54 -0
- package/src/store/{session/slices/session → tool/slices/builtin}/index.ts +0 -1
- package/src/store/tool/slices/builtin/initialState.ts +12 -0
- package/src/store/tool/slices/builtin/selectors.test.ts +53 -0
- package/src/store/tool/slices/builtin/selectors.ts +20 -0
- package/src/store/tool/slices/customPlugin/action.test.ts +141 -0
- package/src/store/tool/slices/customPlugin/action.ts +88 -0
- package/src/store/{session/slices/chat → tool/slices/customPlugin}/index.ts +1 -1
- package/src/store/tool/slices/customPlugin/initialState.ts +17 -0
- package/src/store/tool/slices/customPlugin/reducers/customPluginList.ts +56 -0
- package/src/store/tool/slices/customPlugin/selectors.test.ts +70 -0
- package/src/store/tool/slices/customPlugin/selectors.ts +9 -0
- package/src/store/tool/slices/plugin/__snapshots__/action.test.ts.snap +15 -0
- package/src/store/tool/slices/plugin/action.test.ts +196 -0
- package/src/store/tool/slices/plugin/action.ts +76 -0
- package/src/store/tool/slices/plugin/index.ts +3 -0
- package/src/store/tool/slices/plugin/initialState.ts +16 -0
- package/src/store/tool/slices/plugin/reducers/manifest.ts +36 -0
- package/src/store/tool/slices/plugin/selectors.test.ts +197 -0
- package/src/store/tool/slices/plugin/selectors.ts +80 -0
- package/src/store/tool/slices/store/action.test.ts +392 -0
- package/src/store/tool/slices/store/action.ts +112 -0
- package/src/store/tool/slices/store/index.ts +3 -0
- package/src/store/tool/slices/store/initialState.ts +17 -0
- package/src/store/tool/slices/store/selectors.test.ts +50 -0
- package/src/store/tool/slices/store/selectors.ts +32 -0
- package/src/store/tool/store.ts +32 -0
- package/src/store/user/helpers.ts +9 -0
- package/src/store/user/index.ts +1 -0
- package/src/store/user/initialState.ts +22 -0
- package/src/store/user/selectors.ts +13 -0
- package/src/store/user/slices/auth/action.test.ts +202 -0
- package/src/store/user/slices/auth/action.ts +63 -0
- package/src/store/user/slices/auth/initialState.ts +28 -0
- package/src/store/user/slices/auth/selectors.test.ts +143 -0
- package/src/store/user/slices/auth/selectors.ts +48 -0
- package/src/store/user/slices/common/action.test.ts +271 -0
- package/src/store/user/slices/common/action.ts +129 -0
- package/src/store/user/slices/common/initialState.ts +15 -0
- package/src/store/user/slices/modelList/action.test.ts +363 -0
- package/src/store/user/slices/modelList/action.ts +209 -0
- package/src/store/user/slices/modelList/initialState.ts +15 -0
- package/src/store/user/slices/modelList/reducers/customModelCard.test.ts +204 -0
- package/src/store/user/slices/modelList/reducers/customModelCard.ts +64 -0
- package/src/store/user/slices/modelList/selectors/index.ts +3 -0
- package/src/store/user/slices/modelList/selectors/keyVaults.test.ts +201 -0
- package/src/store/user/slices/modelList/selectors/keyVaults.ts +45 -0
- package/src/store/user/slices/modelList/selectors/modelConfig.test.ts +179 -0
- package/src/store/user/slices/modelList/selectors/modelConfig.ts +80 -0
- package/src/store/user/slices/modelList/selectors/modelProvider.test.ts +145 -0
- package/src/store/user/slices/modelList/selectors/modelProvider.ts +147 -0
- package/src/store/user/slices/preference/action.test.ts +43 -0
- package/src/store/user/slices/preference/action.ts +35 -0
- package/src/store/user/slices/preference/initialState.ts +13 -0
- package/src/store/user/slices/preference/selectors.test.ts +82 -0
- package/src/store/user/slices/preference/selectors.ts +19 -0
- package/src/store/user/slices/settings/action.test.ts +153 -0
- package/src/store/user/slices/settings/action.ts +109 -0
- package/src/store/user/slices/settings/initialState.ts +15 -0
- package/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap +109 -0
- package/src/store/user/slices/settings/selectors/general.test.ts +45 -0
- package/src/store/user/slices/settings/selectors/general.ts +40 -0
- package/src/store/user/slices/settings/selectors/index.ts +3 -0
- package/src/store/user/slices/settings/selectors/settings.test.ts +156 -0
- package/src/store/user/slices/settings/selectors/settings.ts +52 -0
- package/src/store/user/slices/settings/selectors/systemAgent.ts +16 -0
- package/src/store/user/slices/sync/action.test.ts +164 -0
- package/src/store/user/slices/sync/action.ts +97 -0
- package/src/store/user/slices/sync/initialState.ts +13 -0
- package/src/store/user/slices/sync/selectors.ts +20 -0
- package/src/store/user/store.ts +42 -0
- package/src/styles/antdOverride.ts +9 -20
- package/src/styles/global.ts +39 -14
- package/src/styles/index.ts +6 -1
- package/src/styles/mobileHeader.ts +15 -0
- package/src/tools/dalle/Render/Item/EditMode.tsx +66 -0
- package/src/tools/dalle/Render/Item/Error.tsx +50 -0
- package/src/tools/dalle/Render/Item/Image.tsx +44 -0
- package/src/tools/dalle/Render/Item/ImageFileItem.tsx +77 -0
- package/src/tools/dalle/Render/Item/index.tsx +88 -0
- package/src/tools/dalle/Render/ToolBar.tsx +55 -0
- package/src/tools/dalle/Render/index.tsx +51 -0
- package/src/tools/dalle/index.ts +92 -0
- package/src/tools/index.ts +11 -0
- package/src/tools/renders.ts +14 -0
- package/src/types/agent/index.ts +83 -0
- package/src/types/exportConfig.ts +121 -14
- package/src/types/fetch.ts +36 -0
- package/src/types/files.ts +42 -0
- package/src/types/i18next.d.ts +1 -1
- package/src/types/importer.ts +128 -0
- package/src/types/llm.ts +70 -12
- package/src/types/locale.ts +4 -6
- package/src/types/market.ts +20 -0
- package/src/types/message/index.ts +82 -0
- package/src/types/message/tools.ts +65 -0
- package/src/types/message/translate.ts +4 -0
- package/src/types/meta.ts +24 -12
- package/src/types/next-auth.d.ts +23 -0
- package/src/types/openai/chat.ts +128 -0
- package/src/types/openai/functionCall.ts +10 -0
- package/src/types/openai/image.ts +34 -0
- package/src/types/openai/plugin.ts +57 -0
- package/src/types/serverConfig.ts +32 -0
- package/src/types/service.ts +7 -0
- package/src/types/session/agentSession.ts +35 -0
- package/src/types/session/index.ts +10 -0
- package/src/types/session/sessionGroup.ts +24 -0
- package/src/types/share.ts +7 -0
- package/src/types/sync.ts +41 -0
- package/src/types/tool/builtin.ts +36 -0
- package/src/types/tool/dalle.ts +12 -0
- package/src/types/tool/index.ts +16 -0
- package/src/types/tool/plugin.ts +35 -0
- package/src/types/tool/tool.ts +10 -0
- package/src/types/topic.ts +9 -0
- package/src/types/trace/action.ts +31 -0
- package/src/types/trace/index.ts +1 -0
- package/src/types/user/index.ts +44 -0
- package/src/types/user/settings/general.ts +12 -0
- package/src/types/user/settings/index.ts +32 -0
- package/src/types/user/settings/keyVaults.ts +37 -0
- package/src/types/user/settings/modelProvider.ts +34 -0
- package/src/types/user/settings/sync.ts +10 -0
- package/src/types/user/settings/systemAgent.ts +9 -0
- package/src/types/user/settings/tool.ts +5 -0
- package/src/types/user/settings/tts.ts +10 -0
- package/src/utils/__snapshots__/parseModels.test.ts.snap +63 -0
- package/src/utils/basePath.ts +3 -0
- package/src/utils/client/switchLang.test.ts +34 -0
- package/src/utils/client/switchLang.ts +10 -0
- package/src/utils/compass.ts +1 -5
- package/src/utils/compressImage.test.ts +59 -0
- package/src/utils/compressImage.ts +29 -0
- package/src/utils/config.ts +108 -0
- package/src/utils/cookie.ts +10 -0
- package/src/utils/difference.test.ts +46 -0
- package/src/utils/difference.ts +26 -0
- package/src/utils/env.ts +3 -0
- package/src/utils/fetch.test.ts +534 -0
- package/src/utils/fetch.ts +371 -105
- package/src/utils/filter.ts +1 -1
- package/src/utils/genOG.ts +20 -0
- package/src/utils/imageToBase64.ts +37 -0
- package/src/utils/jwt.test.ts +27 -0
- package/src/utils/jwt.ts +37 -0
- package/src/utils/keyboard.ts +13 -0
- package/src/utils/localStorage.ts +38 -0
- package/src/utils/locale.ts +16 -0
- package/src/utils/merge.ts +11 -0
- package/src/utils/parseMarkdown.ts +9 -0
- package/src/utils/parseModels.test.ts +290 -0
- package/src/utils/parseModels.ts +156 -0
- package/src/utils/platform.test.ts +83 -0
- package/src/utils/platform.ts +55 -0
- package/src/utils/responsive.ts +40 -0
- package/src/utils/speed.ts +32 -0
- package/src/utils/storeDebug.ts +11 -0
- package/src/utils/tokenizer.ts +5 -0
- package/src/utils/toolCall.ts +21 -0
- package/src/utils/trace.ts +21 -0
- package/src/utils/url.test.ts +51 -0
- package/src/utils/url.ts +23 -0
- package/src/utils/uuid.ts +4 -4
- package/src/utils/zustand.ts +8 -0
- package/tests/setup-db.ts +7 -0
- package/tests/setup.ts +35 -0
- package/tests/utils.tsx +11 -0
- package/tsconfig.json +24 -4
- package/vercel.json +3 -0
- package/vitest.config.ts +27 -3
- package/vitest.server.config.ts +23 -0
- package/.github/ISSUE_TEMPLATE/3_question.yml +0 -15
- package/.github/ISSUE_TEMPLATE/4_other.md +0 -7
- package/.github/dependabot.yml +0 -17
- package/.github/workflows/auto-merge.yml +0 -32
- package/.github/workflows/contributor-help.yml +0 -29
- package/.github/workflows/issue-check-inactive.yml +0 -22
- package/.github/workflows/issue-remove-inactive.yml +0 -25
- package/.gitpod.yml +0 -3
- package/.husky/commit-msg +0 -4
- package/locales/en_US/common.json +0 -40
- package/locales/en_US/setting.json +0 -97
- package/locales/zh_CN/common.json +0 -40
- package/locales/zh_CN/setting.json +0 -98
- package/public/next.svg +0 -1
- package/public/vercel.svg +0 -1
- package/scripts/genDefaultLocale.mjs +0 -12
- package/scripts/toc.mjs +0 -40
- package/src/const/modelTokens.ts +0 -8
- package/src/features/FolderPanel/index.tsx +0 -55
- package/src/helpers/prompt.test.ts +0 -36
- package/src/helpers/prompt.ts +0 -36
- package/src/layout/index.tsx +0 -42
- package/src/layout/style.ts +0 -18
- package/src/locales/index.ts +0 -5
- package/src/locales/resources/en_US.ts +0 -9
- package/src/locales/resources/index.ts +0 -7
- package/src/locales/resources/zh_CN.ts +0 -9
- package/src/pages/Sidebar.tsx +0 -36
- package/src/pages/_app.page.tsx +0 -13
- package/src/pages/_document.page.tsx +0 -70
- package/src/pages/api/LangChainStream.ts +0 -95
- package/src/pages/api/chain.api.ts +0 -17
- package/src/pages/api/openai.api.ts +0 -31
- package/src/pages/chat/SessionList/Header.tsx +0 -56
- package/src/pages/chat/SessionList/List/SessionItem.tsx +0 -90
- package/src/pages/chat/SessionList/List/index.tsx +0 -31
- package/src/pages/chat/SessionList/List/style.ts +0 -77
- package/src/pages/chat/SessionList/index.tsx +0 -18
- package/src/pages/chat/[id]/Config/ConfigCell.tsx +0 -68
- package/src/pages/chat/[id]/Config/ReadMode.tsx +0 -63
- package/src/pages/chat/[id]/Config/index.tsx +0 -79
- package/src/pages/chat/[id]/Conversation/ChatList.tsx +0 -36
- package/src/pages/chat/[id]/Conversation/Input.tsx +0 -61
- package/src/pages/chat/[id]/Conversation/index.tsx +0 -32
- package/src/pages/chat/[id]/Header.tsx +0 -86
- package/src/pages/chat/[id]/edit/AgentConfig.tsx +0 -95
- package/src/pages/chat/[id]/edit/AgentMeta.tsx +0 -117
- package/src/pages/chat/[id]/edit/FormItem.tsx +0 -26
- package/src/pages/chat/[id]/edit/Prompt.tsx +0 -68
- package/src/pages/chat/[id]/edit/index.page.tsx +0 -62
- package/src/pages/chat/[id]/edit/style.ts +0 -42
- package/src/pages/chat/[id]/index.page.tsx +0 -40
- package/src/pages/chat/index.page.tsx +0 -1
- package/src/pages/chat/layout.tsx +0 -51
- package/src/pages/index.page.tsx +0 -1
- package/src/pages/setting/Header.tsx +0 -27
- package/src/pages/setting/SettingForm.tsx +0 -42
- package/src/pages/setting/index.page.tsx +0 -41
- package/src/prompts/agent.ts +0 -65
- package/src/services/chatModel.ts +0 -34
- package/src/services/langChain.ts +0 -18
- package/src/services/url.ts +0 -8
- package/src/store/middleware/createHashStorage.ts +0 -49
- package/src/store/session/slices/agentConfig/action.ts +0 -226
- package/src/store/session/slices/agentConfig/initialState.ts +0 -34
- package/src/store/session/slices/agentConfig/selectors.ts +0 -54
- package/src/store/session/slices/chat/action.ts +0 -210
- package/src/store/session/slices/chat/initialState.ts +0 -12
- package/src/store/session/slices/chat/messageReducer.test.ts +0 -70
- package/src/store/session/slices/chat/messageReducer.ts +0 -84
- package/src/store/session/slices/chat/selectors.ts +0 -83
- package/src/store/session/slices/session/reducers/session.test.ts +0 -456
- package/src/store/session/slices/session/reducers/session.ts +0 -113
- package/src/store/session/slices/session/selectors/chat.ts +0 -4
- package/src/store/settings/action.ts +0 -31
- package/src/store/settings/index.ts +0 -23
- package/src/store/settings/initialState.ts +0 -25
- package/src/store/settings/selectors.ts +0 -9
- package/src/store/settings/store.ts +0 -13
- package/src/types/chatMessage.ts +0 -46
- package/src/types/langchain.ts +0 -34
- package/src/types/openai.ts +0 -62
- package/src/types/session.ts +0 -59
- /package/src/store/{session/slices/agentConfig → file/slices/images}/index.ts +0 -0
@@ -0,0 +1,769 @@
|
|
1
|
+
{
|
2
|
+
"backButton": "返回",
|
3
|
+
"badge__default": "預設",
|
4
|
+
"badge__otherImpersonatorDevice": "其他冒名頂替裝置",
|
5
|
+
"badge__primary": "主要",
|
6
|
+
"badge__requiresAction": "需要採取行動",
|
7
|
+
"badge__thisDevice": "此裝置",
|
8
|
+
"badge__unverified": "未驗證",
|
9
|
+
"badge__userDevice": "使用者裝置",
|
10
|
+
"badge__you": "您",
|
11
|
+
"createOrganization": {
|
12
|
+
"formButtonSubmit": "建立組織",
|
13
|
+
"invitePage": {
|
14
|
+
"formButtonReset": "跳過"
|
15
|
+
},
|
16
|
+
"title": "建立組織"
|
17
|
+
},
|
18
|
+
"dates": {
|
19
|
+
"lastDay": "昨天 {{ date | timeString('zh-TW') }}",
|
20
|
+
"next6Days": "{{ date | weekday('zh-TW','long') }} {{ date | timeString('zh-TW') }}",
|
21
|
+
"nextDay": "明天 {{ date | timeString('zh-TW') }}",
|
22
|
+
"numeric": "{{ date | numeric('zh-TW') }}",
|
23
|
+
"previous6Days": "上週{{ date | weekday('zh-TW','long') }} {{ date | timeString('zh-TW') }}",
|
24
|
+
"sameDay": "今天 {{ date | timeString('zh-TW') }}"
|
25
|
+
},
|
26
|
+
"dividerText": "或",
|
27
|
+
"footerActionLink__useAnotherMethod": "使用其他方法",
|
28
|
+
"footerPageLink__help": "幫助",
|
29
|
+
"footerPageLink__privacy": "隱私",
|
30
|
+
"footerPageLink__terms": "條款",
|
31
|
+
"formButtonPrimary": "繼續",
|
32
|
+
"formButtonPrimary__verify": "驗證",
|
33
|
+
"formFieldAction__forgotPassword": "忘記密碼?",
|
34
|
+
"formFieldError__matchingPasswords": "密碼相符。",
|
35
|
+
"formFieldError__notMatchingPasswords": "密碼不相符。",
|
36
|
+
"formFieldError__verificationLinkExpired": "驗證連結已過期。請求新連結。",
|
37
|
+
"formFieldHintText__optional": "選填",
|
38
|
+
"formFieldHintText__slug": "Slug 是一個人可讀的 ID,必須是唯一的。通常用於 URL。",
|
39
|
+
"formFieldInputPlaceholder__backupCode": "",
|
40
|
+
"formFieldInputPlaceholder__confirmDeletionUserAccount": "刪除帳號",
|
41
|
+
"formFieldInputPlaceholder__emailAddress": "",
|
42
|
+
"formFieldInputPlaceholder__emailAddress_username": "",
|
43
|
+
"formFieldInputPlaceholder__emailAddresses": "範例@email.com,範例2@email.com",
|
44
|
+
"formFieldInputPlaceholder__firstName": "",
|
45
|
+
"formFieldInputPlaceholder__lastName": "",
|
46
|
+
"formFieldInputPlaceholder__organizationDomain": "",
|
47
|
+
"formFieldInputPlaceholder__organizationDomainEmailAddress": "",
|
48
|
+
"formFieldInputPlaceholder__organizationName": "",
|
49
|
+
"formFieldInputPlaceholder__organizationSlug": "我的組織",
|
50
|
+
"formFieldInputPlaceholder__password": "",
|
51
|
+
"formFieldInputPlaceholder__phoneNumber": "",
|
52
|
+
"formFieldInputPlaceholder__username": "",
|
53
|
+
"formFieldLabel__automaticInvitations": "啟用此域名的自動邀請",
|
54
|
+
"formFieldLabel__backupCode": "備份代碼",
|
55
|
+
"formFieldLabel__confirmDeletion": "確認",
|
56
|
+
"formFieldLabel__confirmPassword": "確認密碼",
|
57
|
+
"formFieldLabel__currentPassword": "目前密碼",
|
58
|
+
"formFieldLabel__emailAddress": "電子郵件地址",
|
59
|
+
"formFieldLabel__emailAddress_username": "電子郵件地址或使用者名稱",
|
60
|
+
"formFieldLabel__emailAddresses": "電子郵件地址",
|
61
|
+
"formFieldLabel__firstName": "名字",
|
62
|
+
"formFieldLabel__lastName": "姓氏",
|
63
|
+
"formFieldLabel__newPassword": "新密碼",
|
64
|
+
"formFieldLabel__organizationDomain": "域名",
|
65
|
+
"formFieldLabel__organizationDomainDeletePending": "刪除待處理的邀請和建議",
|
66
|
+
"formFieldLabel__organizationDomainEmailAddress": "驗證電子郵件地址",
|
67
|
+
"formFieldLabel__organizationDomainEmailAddressDescription": "輸入此域名下的電子郵件地址,以接收代碼並驗證此域名。",
|
68
|
+
"formFieldLabel__organizationName": "名稱",
|
69
|
+
"formFieldLabel__organizationSlug": "Slug",
|
70
|
+
"formFieldLabel__passkeyName": "通行證名稱",
|
71
|
+
"formFieldLabel__password": "密碼",
|
72
|
+
"formFieldLabel__phoneNumber": "電話號碼",
|
73
|
+
"formFieldLabel__role": "角色",
|
74
|
+
"formFieldLabel__signOutOfOtherSessions": "登出所有其他裝置",
|
75
|
+
"formFieldLabel__username": "使用者名稱",
|
76
|
+
"impersonationFab": {
|
77
|
+
"action__signOut": "登出",
|
78
|
+
"title": "以 {{identifier}} 身分登入"
|
79
|
+
},
|
80
|
+
"locale": "zh-TW",
|
81
|
+
"maintenanceMode": "我們目前正在進行維護,但請放心,這不應該超過幾分鐘。",
|
82
|
+
"membershipRole__admin": "管理員",
|
83
|
+
"membershipRole__basicMember": "會員",
|
84
|
+
"membershipRole__guestMember": "訪客",
|
85
|
+
"organizationList": {
|
86
|
+
"action__createOrganization": "建立組織",
|
87
|
+
"action__invitationAccept": "加入",
|
88
|
+
"action__suggestionsAccept": "請求加入",
|
89
|
+
"createOrganization": "建立組織",
|
90
|
+
"invitationAcceptedLabel": "已加入",
|
91
|
+
"subtitle": "繼續使用{{applicationName}}",
|
92
|
+
"suggestionsAcceptedLabel": "待審批",
|
93
|
+
"title": "選擇帳號",
|
94
|
+
"titleWithoutPersonal": "選擇組織"
|
95
|
+
},
|
96
|
+
"organizationProfile": {
|
97
|
+
"badge__automaticInvitation": "自動邀請",
|
98
|
+
"badge__automaticSuggestion": "自動建議",
|
99
|
+
"badge__manualInvitation": "無自動註冊",
|
100
|
+
"badge__unverified": "未驗證",
|
101
|
+
"createDomainPage": {
|
102
|
+
"subtitle": "新增要驗證的網域。使用此網域電子郵件地址的使用者可以自動加入組織,或請求加入。",
|
103
|
+
"title": "新增網域"
|
104
|
+
},
|
105
|
+
"invitePage": {
|
106
|
+
"detailsTitle__inviteFailed": "無法發送邀請。以下電子郵件地址已有待處理的邀請:{{email_addresses}}。",
|
107
|
+
"formButtonPrimary__continue": "發送邀請",
|
108
|
+
"selectDropdown__role": "選擇角色",
|
109
|
+
"subtitle": "輸入或貼上一個或多個以空格或逗號分隔的電子郵件地址。",
|
110
|
+
"successMessage": "邀請成功發送",
|
111
|
+
"title": "邀請新成員"
|
112
|
+
},
|
113
|
+
"membersPage": {
|
114
|
+
"action__invite": "邀請",
|
115
|
+
"activeMembersTab": {
|
116
|
+
"menuAction__remove": "移除成員",
|
117
|
+
"tableHeader__actions": "",
|
118
|
+
"tableHeader__joined": "加入時間",
|
119
|
+
"tableHeader__role": "角色",
|
120
|
+
"tableHeader__user": "使用者"
|
121
|
+
},
|
122
|
+
"detailsTitle__emptyRow": "沒有成員可顯示",
|
123
|
+
"invitationsTab": {
|
124
|
+
"autoInvitations": {
|
125
|
+
"headerSubtitle": "透過連接電子郵件網域來邀請使用者加入組織。任何使用符合電子郵件網域的人都可以隨時加入組織。",
|
126
|
+
"headerTitle": "自動邀請",
|
127
|
+
"primaryButton": "管理已驗證的網域"
|
128
|
+
},
|
129
|
+
"table__emptyRow": "沒有邀請可顯示"
|
130
|
+
},
|
131
|
+
"invitedMembersTab": {
|
132
|
+
"menuAction__revoke": "撤銷邀請",
|
133
|
+
"tableHeader__invited": "已邀請"
|
134
|
+
},
|
135
|
+
"requestsTab": {
|
136
|
+
"autoSuggestions": {
|
137
|
+
"headerSubtitle": "使用符合電子郵件網域的使用者,將能看到請求加入您組織的建議。",
|
138
|
+
"headerTitle": "自動建議",
|
139
|
+
"primaryButton": "管理已驗證的網域"
|
140
|
+
},
|
141
|
+
"menuAction__approve": "核准",
|
142
|
+
"menuAction__reject": "拒絕",
|
143
|
+
"tableHeader__requested": "請求存取",
|
144
|
+
"table__emptyRow": "沒有請求可顯示"
|
145
|
+
},
|
146
|
+
"start": {
|
147
|
+
"headerTitle__invitations": "邀請",
|
148
|
+
"headerTitle__members": "成員",
|
149
|
+
"headerTitle__requests": "請求"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
"navbar": {
|
153
|
+
"description": "管理您的組織",
|
154
|
+
"general": "一般",
|
155
|
+
"members": "成員",
|
156
|
+
"title": "組織"
|
157
|
+
},
|
158
|
+
"profilePage": {
|
159
|
+
"dangerSection": {
|
160
|
+
"deleteOrganization": {
|
161
|
+
"actionDescription": "在下方輸入\"{{organizationName}}\"以繼續。",
|
162
|
+
"messageLine1": "您確定要刪除此組織嗎?",
|
163
|
+
"messageLine2": "此操作是永久且不可逆轉的。",
|
164
|
+
"successMessage": "您已刪除組織。",
|
165
|
+
"title": "刪除組織"
|
166
|
+
},
|
167
|
+
"leaveOrganization": {
|
168
|
+
"actionDescription": "在下方輸入\"{{organizationName}}\"以繼續。",
|
169
|
+
"messageLine1": "您確定要離開此組織嗎?您將失去對此組織及其應用程式的存取權。",
|
170
|
+
"messageLine2": "此操作是永久且不可逆轉的。",
|
171
|
+
"successMessage": "您已離開組織。",
|
172
|
+
"title": "離開組織"
|
173
|
+
},
|
174
|
+
"title": "風險"
|
175
|
+
},
|
176
|
+
"domainSection": {
|
177
|
+
"menuAction__manage": "管理",
|
178
|
+
"menuAction__remove": "刪除",
|
179
|
+
"menuAction__verify": "驗證",
|
180
|
+
"primaryButton": "新增網域",
|
181
|
+
"subtitle": "允許使用者根據驗證的電子郵件網域自動加入組織或請求加入。",
|
182
|
+
"title": "已驗證的網域"
|
183
|
+
},
|
184
|
+
"successMessage": "組織已更新",
|
185
|
+
"title": "更新檔案"
|
186
|
+
},
|
187
|
+
"removeDomainPage": {
|
188
|
+
"messageLine1": "將移除電子郵件網域{{domain}}。",
|
189
|
+
"messageLine2": "此後使用者將無法自動加入組織。",
|
190
|
+
"successMessage": "{{domain}}已移除",
|
191
|
+
"title": "移除網域"
|
192
|
+
},
|
193
|
+
"start": {
|
194
|
+
"headerTitle__general": "一般",
|
195
|
+
"headerTitle__members": "成員",
|
196
|
+
"profileSection": {
|
197
|
+
"primaryButton": "更新檔案",
|
198
|
+
"title": "組織檔案",
|
199
|
+
"uploadAction__title": "標誌"
|
200
|
+
}
|
201
|
+
},
|
202
|
+
"verifiedDomainPage": {
|
203
|
+
"dangerTab": {
|
204
|
+
"calloutInfoLabel": "移除此網域將影響被邀請的使用者。",
|
205
|
+
"removeDomainActionLabel__remove": "移除網域",
|
206
|
+
"removeDomainSubtitle": "從您的已驗證網域中移除此網域",
|
207
|
+
"removeDomainTitle": "移除網域"
|
208
|
+
},
|
209
|
+
"enrollmentTab": {
|
210
|
+
"automaticInvitationOption__description": "使用者在註冊時將自動獲得邀請加入組織,並隨時加入。",
|
211
|
+
"automaticInvitationOption__label": "自動邀請",
|
212
|
+
"automaticSuggestionOption__description": "使用者會收到請求加入的建議,但必須經管理員核准後才能加入組織。",
|
213
|
+
"automaticSuggestionOption__label": "自動建議",
|
214
|
+
"calloutInfoLabel": "更改註冊模式僅影響新使用者。",
|
215
|
+
"calloutInvitationCountLabel": "已發送給使用者的待處理邀請:{{count}}",
|
216
|
+
"calloutSuggestionCountLabel": "已發送給使用者的待處理建議:{{count}}",
|
217
|
+
"manualInvitationOption__description": "只能手動邀請使用者加入組織。",
|
218
|
+
"manualInvitationOption__label": "無自動註冊",
|
219
|
+
"subtitle": "選擇此網域的使用者如何加入組織。"
|
220
|
+
},
|
221
|
+
"start": {
|
222
|
+
"headerTitle__danger": "風險",
|
223
|
+
"headerTitle__enrollment": "註冊選項"
|
224
|
+
},
|
225
|
+
"subtitle": "網域{{domain}}現已驗證。請選擇註冊模式繼續。",
|
226
|
+
"title": "更新{{domain}}"
|
227
|
+
},
|
228
|
+
"verifyDomainPage": {
|
229
|
+
"formSubtitle": "輸入發送到您電子郵件地址的驗證碼",
|
230
|
+
"formTitle": "驗證碼",
|
231
|
+
"resendButton": "未收到驗證碼?重新發送",
|
232
|
+
"subtitle": "需透過電子郵件驗證{{domainName}}網域。",
|
233
|
+
"subtitleVerificationCodeScreen": "驗證碼已發送至{{emailAddress}}。請輸入驗證碼以繼續。",
|
234
|
+
"title": "驗證網域"
|
235
|
+
}
|
236
|
+
},
|
237
|
+
"organizationSwitcher": {
|
238
|
+
"action__createOrganization": "建立組織",
|
239
|
+
"action__invitationAccept": "加入",
|
240
|
+
"action__manageOrganization": "管理",
|
241
|
+
"action__suggestionsAccept": "請求加入",
|
242
|
+
"notSelected": "未選擇組織",
|
243
|
+
"personalWorkspace": "個人帳戶",
|
244
|
+
"suggestionsAcceptedLabel": "待審批"
|
245
|
+
},
|
246
|
+
"paginationButton__next": "下一步",
|
247
|
+
"paginationButton__previous": "上一步",
|
248
|
+
"paginationRowText__displaying": "顯示",
|
249
|
+
"paginationRowText__of": "共",
|
250
|
+
"signIn": {
|
251
|
+
"accountSwitcher": {
|
252
|
+
"action__addAccount": "新增帳戶",
|
253
|
+
"action__signOutAll": "登出所有帳戶",
|
254
|
+
"subtitle": "選擇您希望繼續使用的帳戶。",
|
255
|
+
"title": "選擇帳戶"
|
256
|
+
},
|
257
|
+
"alternativeMethods": {
|
258
|
+
"actionLink": "獲取幫助",
|
259
|
+
"actionText": "沒有這些?",
|
260
|
+
"blockButton__backupCode": "使用備份代碼",
|
261
|
+
"blockButton__emailCode": "將代碼發送至 {{identifier}} 的電子郵件",
|
262
|
+
"blockButton__emailLink": "將連結發送至 {{identifier}} 的電子郵件",
|
263
|
+
"blockButton__passkey": "使用您的通行證登入",
|
264
|
+
"blockButton__password": "使用密碼登入",
|
265
|
+
"blockButton__phoneCode": "將簡訊代碼發送至 {{identifier}}",
|
266
|
+
"blockButton__totp": "使用您的驗證器應用程式",
|
267
|
+
"getHelp": {
|
268
|
+
"blockButton__emailSupport": "電子郵件支援",
|
269
|
+
"content": "如果您在登入帳戶時遇到問題,請給我們發送電子郵件,我們將盡快與您合作恢復訪問權限。",
|
270
|
+
"title": "獲取幫助"
|
271
|
+
},
|
272
|
+
"subtitle": "遇到問題嗎?您可以使用以下任何方法登入。",
|
273
|
+
"title": "使用其他方法"
|
274
|
+
},
|
275
|
+
"backupCodeMfa": {
|
276
|
+
"subtitle": "您的備份代碼是設置兩步驗證時獲得的代碼。",
|
277
|
+
"title": "輸入備份代碼"
|
278
|
+
},
|
279
|
+
"emailCode": {
|
280
|
+
"formTitle": "驗證碼",
|
281
|
+
"resendButton": "未收到代碼?重新發送",
|
282
|
+
"subtitle": "繼續至 {{applicationName}}",
|
283
|
+
"title": "檢查您的電子郵件"
|
284
|
+
},
|
285
|
+
"emailLink": {
|
286
|
+
"expired": {
|
287
|
+
"subtitle": "返回原始標籤以繼續。",
|
288
|
+
"title": "此驗證連結已過期"
|
289
|
+
},
|
290
|
+
"failed": {
|
291
|
+
"subtitle": "返回原始標籤以繼續。",
|
292
|
+
"title": "此驗證連結無效"
|
293
|
+
},
|
294
|
+
"formSubtitle": "使用發送至您電子郵件的驗證連結",
|
295
|
+
"formTitle": "驗證連結",
|
296
|
+
"loading": {
|
297
|
+
"subtitle": "您將很快被重新導向",
|
298
|
+
"title": "登入中..."
|
299
|
+
},
|
300
|
+
"resendButton": "未收到連結?重新發送",
|
301
|
+
"subtitle": "繼續至 {{applicationName}}",
|
302
|
+
"title": "檢查您的電子郵件",
|
303
|
+
"unusedTab": {
|
304
|
+
"title": "您可以關閉此標籤"
|
305
|
+
},
|
306
|
+
"verified": {
|
307
|
+
"subtitle": "您將很快被重新導向",
|
308
|
+
"title": "成功登入"
|
309
|
+
},
|
310
|
+
"verifiedSwitchTab": {
|
311
|
+
"subtitle": "返回原始標籤以繼續",
|
312
|
+
"subtitleNewTab": "返回新開啟的標籤以繼續",
|
313
|
+
"titleNewTab": "在其他標籤上登入"
|
314
|
+
}
|
315
|
+
},
|
316
|
+
"forgotPassword": {
|
317
|
+
"formTitle": "重設密碼代碼",
|
318
|
+
"resendButton": "未收到代碼?重新發送",
|
319
|
+
"subtitle": "重設您的密碼",
|
320
|
+
"subtitle_email": "首先,輸入發送至您電子郵件地址的代碼",
|
321
|
+
"subtitle_phone": "首先,輸入發送至您電話的代碼",
|
322
|
+
"title": "重設密碼"
|
323
|
+
},
|
324
|
+
"forgotPasswordAlternativeMethods": {
|
325
|
+
"blockButton__resetPassword": "重設您的密碼",
|
326
|
+
"label__alternativeMethods": "或使用其他方法登入",
|
327
|
+
"title": "忘記密碼?"
|
328
|
+
},
|
329
|
+
"noAvailableMethods": {
|
330
|
+
"message": "無法繼續登入。沒有可用的身份驗證因素。",
|
331
|
+
"subtitle": "發生錯誤",
|
332
|
+
"title": "無法登入"
|
333
|
+
},
|
334
|
+
"passkey": {
|
335
|
+
"subtitle": "使用您的通行證確認您的身份。您的設備可能要求您的指紋、臉部或螢幕鎖。",
|
336
|
+
"title": "使用您的通行證"
|
337
|
+
},
|
338
|
+
"password": {
|
339
|
+
"actionLink": "使用其他方法",
|
340
|
+
"subtitle": "輸入與您帳戶關聯的密碼",
|
341
|
+
"title": "輸入您的密碼"
|
342
|
+
},
|
343
|
+
"passwordPwned": {
|
344
|
+
"title": "密碼已被盜用"
|
345
|
+
},
|
346
|
+
"phoneCode": {
|
347
|
+
"formTitle": "驗證碼",
|
348
|
+
"resendButton": "未收到代碼?重新發送",
|
349
|
+
"subtitle": "繼續至 {{applicationName}}",
|
350
|
+
"title": "檢查您的手機"
|
351
|
+
},
|
352
|
+
"phoneCodeMfa": {
|
353
|
+
"formTitle": "驗證碼",
|
354
|
+
"resendButton": "未收到代碼?重新發送",
|
355
|
+
"subtitle": "請輸入發送至您手機的驗證碼以繼續",
|
356
|
+
"title": "檢查您的手機"
|
357
|
+
},
|
358
|
+
"resetPassword": {
|
359
|
+
"formButtonPrimary": "重設密碼",
|
360
|
+
"requiredMessage": "出於安全原因,需要重設您的密碼。",
|
361
|
+
"successMessage": "您的密碼已成功更改。正在為您登入,請稍候片刻。",
|
362
|
+
"title": "設置新密碼"
|
363
|
+
},
|
364
|
+
"resetPasswordMfa": {
|
365
|
+
"detailsLabel": "在重設密碼之前,我們需要驗證您的身份。"
|
366
|
+
},
|
367
|
+
"start": {
|
368
|
+
"actionLink": "註冊",
|
369
|
+
"actionLink__use_email": "使用電子郵件",
|
370
|
+
"actionLink__use_email_username": "使用電子郵件或使用者名稱",
|
371
|
+
"actionLink__use_passkey": "改用通行證",
|
372
|
+
"actionLink__use_phone": "使用手機",
|
373
|
+
"actionLink__use_username": "使用使用者名稱",
|
374
|
+
"actionText": "還沒有帳戶?",
|
375
|
+
"subtitle": "歡迎回來!請登入以繼續",
|
376
|
+
"title": "登入 {{applicationName}}"
|
377
|
+
},
|
378
|
+
"totpMfa": {
|
379
|
+
"formTitle": "驗證碼",
|
380
|
+
"subtitle": "請輸入您的驗證器應用程式生成的驗證碼以繼續",
|
381
|
+
"title": "兩步驗證"
|
382
|
+
}
|
383
|
+
},
|
384
|
+
"signInEnterPasswordTitle": "輸入您的密碼",
|
385
|
+
"signUp": {
|
386
|
+
"continue": {
|
387
|
+
"actionLink": "登入",
|
388
|
+
"actionText": "已有帳戶?",
|
389
|
+
"subtitle": "請填寫剩餘的詳細信息以繼續。",
|
390
|
+
"title": "填寫缺少的字段"
|
391
|
+
},
|
392
|
+
"emailCode": {
|
393
|
+
"formSubtitle": "輸入發送至您電子郵件地址的驗證碼",
|
394
|
+
"formTitle": "驗證碼",
|
395
|
+
"resendButton": "未收到代碼?重新發送",
|
396
|
+
"subtitle": "輸入發送至您電子郵件的驗證碼",
|
397
|
+
"title": "驗證您的電子郵件"
|
398
|
+
},
|
399
|
+
"emailLink": {
|
400
|
+
"formSubtitle": "使用發送至您電子郵件地址的驗證連結",
|
401
|
+
"formTitle": "驗證連結",
|
402
|
+
"loading": {
|
403
|
+
"title": "正在註冊..."
|
404
|
+
},
|
405
|
+
"resendButton": "未收到連結?重新發送",
|
406
|
+
"subtitle": "繼續至 {{applicationName}}",
|
407
|
+
"title": "驗證您的電子郵件",
|
408
|
+
"verified": {
|
409
|
+
"title": "註冊成功"
|
410
|
+
},
|
411
|
+
"verifiedSwitchTab": {
|
412
|
+
"subtitle": "返回新開啟的標籤以繼續",
|
413
|
+
"subtitleNewTab": "返回上一個標籤以繼續",
|
414
|
+
"title": "電子郵件驗證成功"
|
415
|
+
}
|
416
|
+
},
|
417
|
+
"phoneCode": {
|
418
|
+
"formSubtitle": "輸入發送至您手機號碼的驗證碼",
|
419
|
+
"formTitle": "驗證碼",
|
420
|
+
"resendButton": "未收到代碼?重新發送",
|
421
|
+
"subtitle": "輸入發送至您手機的驗證碼",
|
422
|
+
"title": "驗證您的手機"
|
423
|
+
},
|
424
|
+
"start": {
|
425
|
+
"actionLink": "登入",
|
426
|
+
"actionText": "已有帳戶?",
|
427
|
+
"subtitle": "歡迎!請填寫詳細信息開始。",
|
428
|
+
"title": "創建您的帳戶"
|
429
|
+
}
|
430
|
+
},
|
431
|
+
"socialButtonsBlockButton": "使用 {{provider|titleize}} 繼續",
|
432
|
+
"unstable__errors": {
|
433
|
+
"captcha_invalid": "由於安全驗證失敗,註冊失敗。請重新整理頁面再試一次,或聯繫支援部門尋求協助。",
|
434
|
+
"captcha_unavailable": "由於機器人驗證失敗,註冊失敗。請重新整理頁面再試一次,或聯繫支援部門尋求協助。",
|
435
|
+
"form_code_incorrect": "",
|
436
|
+
"form_identifier_exists": "",
|
437
|
+
"form_identifier_exists__email_address": "此電子郵件地址已被使用。請嘗試其他地址。",
|
438
|
+
"form_identifier_exists__phone_number": "此電話號碼已被使用。請嘗試其他號碼。",
|
439
|
+
"form_identifier_exists__username": "此使用者名稱已被使用。請嘗試其他名稱。",
|
440
|
+
"form_identifier_not_found": "",
|
441
|
+
"form_param_format_invalid": "",
|
442
|
+
"form_param_format_invalid__email_address": "電子郵件地址必須是有效的電子郵件地址。",
|
443
|
+
"form_param_format_invalid__phone_number": "電話號碼必須符合有效的國際格式。",
|
444
|
+
"form_param_max_length_exceeded__first_name": "名字不應超過256個字符。",
|
445
|
+
"form_param_max_length_exceeded__last_name": "姓氏不應超過256個字符。",
|
446
|
+
"form_param_max_length_exceeded__name": "名稱不應超過256個字符。",
|
447
|
+
"form_param_nil": "",
|
448
|
+
"form_password_incorrect": "",
|
449
|
+
"form_password_length_too_short": "",
|
450
|
+
"form_password_not_strong_enough": "您的密碼不夠強大。",
|
451
|
+
"form_password_pwned": "此密碼已被發現存在安全漏洞,請嘗試其他密碼。",
|
452
|
+
"form_password_pwned__sign_in": "此密碼已被發現存在安全漏洞,請重設您的密碼。",
|
453
|
+
"form_password_size_in_bytes_exceeded": "您的密碼超過允許的最大字節數,請縮短或刪除一些特殊字符。",
|
454
|
+
"form_password_validation_failed": "密碼不正確",
|
455
|
+
"form_username_invalid_character": "",
|
456
|
+
"form_username_invalid_length": "",
|
457
|
+
"identification_deletion_failed": "您無法刪除您的最後一個身分證。",
|
458
|
+
"not_allowed_access": "",
|
459
|
+
"passkey_already_exists": "此設備已註冊了一個通行證。",
|
460
|
+
"passkey_not_supported": "此設備不支援通行證。",
|
461
|
+
"passkey_pa_not_supported": "註冊需要平台驗證器,但設備不支援。",
|
462
|
+
"passkey_registration_cancelled": "通行證註冊已取消或超時。",
|
463
|
+
"passkey_retrieval_cancelled": "通行證驗證已取消或超時。",
|
464
|
+
"passwordComplexity": {
|
465
|
+
"maximumLength": "少於{{length}}個字符",
|
466
|
+
"minimumLength": "{{length}}個或更多字符",
|
467
|
+
"requireLowercase": "小寫字母",
|
468
|
+
"requireNumbers": "數字",
|
469
|
+
"requireSpecialCharacter": "特殊字符",
|
470
|
+
"requireUppercase": "大寫字母",
|
471
|
+
"sentencePrefix": "您的密碼必須包含"
|
472
|
+
},
|
473
|
+
"phone_number_exists": "此電話號碼已被使用。請嘗試其他號碼。",
|
474
|
+
"zxcvbn": {
|
475
|
+
"couldBeStronger": "您的密碼有效,但可以更強大。嘗試添加更多字符。",
|
476
|
+
"goodPassword": "您的密碼符合所有必要條件。",
|
477
|
+
"notEnough": "您的密碼不夠強大。",
|
478
|
+
"suggestions": {
|
479
|
+
"allUppercase": "將一些字母大寫。",
|
480
|
+
"anotherWord": "添加更多不常見的單詞。",
|
481
|
+
"associatedYears": "避免與您有關的年份。",
|
482
|
+
"capitalization": "大寫第一個字母以外的字母。",
|
483
|
+
"dates": "避免與您有關的日期和年份。",
|
484
|
+
"l33t": "避免可預測的字母替換,如將'@'替換為'a'。",
|
485
|
+
"longerKeyboardPattern": "使用更長的鍵盤模式,並多次改變打字方向。",
|
486
|
+
"noNeed": "您可以創建強大的密碼,而無需使用符號、數字或大寫字母。",
|
487
|
+
"pwned": "如果您在其他地方使用此密碼,應該更改它。",
|
488
|
+
"recentYears": "避免最近的年份。",
|
489
|
+
"repeated": "避免重複的單詞和字符。",
|
490
|
+
"reverseWords": "避免常見單詞的反向拼寫。",
|
491
|
+
"sequences": "避免常見的字符序列。",
|
492
|
+
"useWords": "使用多個單詞,但避免常見短語。"
|
493
|
+
},
|
494
|
+
"warnings": {
|
495
|
+
"common": "這是常用的密碼。",
|
496
|
+
"commonNames": "常見名字和姓氏容易被猜測。",
|
497
|
+
"dates": "日期容易被猜測。",
|
498
|
+
"extendedRepeat": "重複字符模式如“abcabcabc”容易被猜測。",
|
499
|
+
"keyPattern": "短鍵盤模式容易被猜測。",
|
500
|
+
"namesByThemselves": "單個名字或姓氏容易被猜測。",
|
501
|
+
"pwned": "您的密碼在互聯網上的數據洩露中曝光。",
|
502
|
+
"recentYears": "最近的年份容易被猜測。",
|
503
|
+
"sequences": "常見的字符序列如“abc”容易被猜測。",
|
504
|
+
"similarToCommon": "這與常用密碼類似。",
|
505
|
+
"simpleRepeat": "重複字符如“aaa”容易被猜測。",
|
506
|
+
"straightRow": "鍵盤上的直行鍵容易被猜測。",
|
507
|
+
"topHundred": "這是常用的密碼。",
|
508
|
+
"topTen": "這是常用的密碼。",
|
509
|
+
"userInputs": "不應包含任何個人或頁面相關數據。",
|
510
|
+
"wordByItself": "單詞容易被猜測。"
|
511
|
+
}
|
512
|
+
}
|
513
|
+
},
|
514
|
+
"userButton": {
|
515
|
+
"action__addAccount": "新增帳戶",
|
516
|
+
"action__manageAccount": "管理帳戶",
|
517
|
+
"action__signOut": "登出",
|
518
|
+
"action__signOutAll": "登出所有帳戶"
|
519
|
+
},
|
520
|
+
"userProfile": {
|
521
|
+
"backupCodePage": {
|
522
|
+
"actionLabel__copied": "已複製!",
|
523
|
+
"actionLabel__copy": "全部複製",
|
524
|
+
"actionLabel__download": "下載 .txt",
|
525
|
+
"actionLabel__print": "列印",
|
526
|
+
"infoText1": "此帳戶將啟用備份代碼。",
|
527
|
+
"infoText2": "請保密並安全存放備份代碼。如果懷疑代碼已被泄露,可以重新生成備份代碼。",
|
528
|
+
"subtitle__codelist": "安全存放並保密。",
|
529
|
+
"successMessage": "備份代碼現已啟用。如果您無法使用身份驗證裝置,可以使用其中一個代碼登入您的帳戶。每個代碼只能使用一次。",
|
530
|
+
"successSubtitle": "如果您無法使用身份驗證裝置,可以使用其中一個代碼登入您的帳戶。",
|
531
|
+
"title": "新增備份代碼驗證",
|
532
|
+
"title__codelist": "備份代碼"
|
533
|
+
},
|
534
|
+
"connectedAccountPage": {
|
535
|
+
"formHint": "選擇提供者以連接您的帳戶。",
|
536
|
+
"formHint__noAccounts": "沒有可用的外部帳戶提供者。",
|
537
|
+
"removeResource": {
|
538
|
+
"messageLine1": "{{identifier}} 將從此帳戶中移除。",
|
539
|
+
"messageLine2": "您將無法再使用此連接帳戶,任何相關功能也將無法使用。",
|
540
|
+
"successMessage": "{{connectedAccount}} 已從您的帳戶中移除。",
|
541
|
+
"title": "移除連接帳戶"
|
542
|
+
},
|
543
|
+
"socialButtonsBlockButton": "{{provider|titleize}}",
|
544
|
+
"successMessage": "提供者已添加至您的帳戶",
|
545
|
+
"title": "新增連接帳戶"
|
546
|
+
},
|
547
|
+
"deletePage": {
|
548
|
+
"actionDescription": "在下方輸入\"刪除帳戶\"。",
|
549
|
+
"confirm": "刪除帳戶",
|
550
|
+
"messageLine1": "您確定要刪除您的帳戶嗎?",
|
551
|
+
"messageLine2": "此操作是永久且不可逆轉的。",
|
552
|
+
"title": "刪除帳戶"
|
553
|
+
},
|
554
|
+
"emailAddressPage": {
|
555
|
+
"emailCode": {
|
556
|
+
"formHint": "將發送包含驗證碼的郵件至此電子郵件地址。",
|
557
|
+
"formSubtitle": "輸入發送至 {{identifier}} 的驗證碼。",
|
558
|
+
"formTitle": "驗證碼",
|
559
|
+
"resendButton": "未收到驗證碼?重新發送",
|
560
|
+
"successMessage": "電子郵件 {{identifier}} 已添加至您的帳戶。"
|
561
|
+
},
|
562
|
+
"emailLink": {
|
563
|
+
"formHint": "將發送包含驗證連結的郵件至此電子郵件地址。",
|
564
|
+
"formSubtitle": "點擊發送至 {{identifier}} 的郵件中的驗證連結。",
|
565
|
+
"formTitle": "驗證連結",
|
566
|
+
"resendButton": "未收到連結?重新發送",
|
567
|
+
"successMessage": "電子郵件 {{identifier}} 已添加至您的帳戶。"
|
568
|
+
},
|
569
|
+
"removeResource": {
|
570
|
+
"messageLine1": "{{identifier}} 將從此帳戶中移除。",
|
571
|
+
"messageLine2": "您將無法再使用此電子郵件地址登入。",
|
572
|
+
"successMessage": "{{emailAddress}} 已從您的帳戶中移除。",
|
573
|
+
"title": "移除電子郵件地址"
|
574
|
+
},
|
575
|
+
"title": "新增電子郵件地址",
|
576
|
+
"verifyTitle": "驗證電子郵件地址"
|
577
|
+
},
|
578
|
+
"formButtonPrimary__add": "新增",
|
579
|
+
"formButtonPrimary__continue": "繼續",
|
580
|
+
"formButtonPrimary__finish": "完成",
|
581
|
+
"formButtonPrimary__remove": "移除",
|
582
|
+
"formButtonPrimary__save": "儲存",
|
583
|
+
"formButtonReset": "取消",
|
584
|
+
"mfaPage": {
|
585
|
+
"formHint": "選擇一種方法進行添加。",
|
586
|
+
"title": "新增兩步驗證"
|
587
|
+
},
|
588
|
+
"mfaPhoneCodePage": {
|
589
|
+
"backButton": "使用現有號碼",
|
590
|
+
"primaryButton__addPhoneNumber": "新增電話號碼",
|
591
|
+
"removeResource": {
|
592
|
+
"messageLine1": "登入時將不再接收來自此號碼的驗證碼。",
|
593
|
+
"messageLine2": "您的帳戶可能不夠安全。您確定要繼續嗎?",
|
594
|
+
"successMessage": "已移除 {{mfaPhoneCode}} 的簡訊驗證。",
|
595
|
+
"title": "移除兩步驗證"
|
596
|
+
},
|
597
|
+
"subtitle__availablePhoneNumbers": "選擇現有電話號碼註冊簡訊驗證,或新增一個。",
|
598
|
+
"subtitle__unavailablePhoneNumbers": "沒有可用的電話號碼可註冊簡訊驗證,請新增一個。",
|
599
|
+
"successMessage1": "登入時,您需要輸入發送至此電話號碼的驗證碼作為額外步驟。",
|
600
|
+
"successMessage2": "請儲存這些備份代碼並安全保管。如果您無法使用身份驗證裝置,可以使用備份代碼登入。",
|
601
|
+
"successTitle": "已啟用簡訊驗證",
|
602
|
+
"title": "新增簡訊驗證"
|
603
|
+
},
|
604
|
+
"mfaTOTPPage": {
|
605
|
+
"authenticatorApp": {
|
606
|
+
"buttonAbleToScan__nonPrimary": "掃描 QR 碼",
|
607
|
+
"buttonUnableToScan__nonPrimary": "無法掃描 QR 碼?",
|
608
|
+
"infoText__ableToScan": "在您的驗證器應用程式中設定新的登入方法,並掃描以下 QR 碼以將其連結至您的帳戶。",
|
609
|
+
"infoText__unableToScan": "在您的驗證器中設定新的登入方法,並輸入下方提供的金鑰。",
|
610
|
+
"inputLabel__unableToScan1": "確保已啟用基於時間或一次性密碼,然後完成連結您的帳戶。",
|
611
|
+
"inputLabel__unableToScan2": "或者,如果您的驗證器支援 TOTP URI,您也可以複製完整的 URI。"
|
612
|
+
},
|
613
|
+
"removeResource": {
|
614
|
+
"messageLine1": "登入時將不再需要來自此驗證器的驗證碼。",
|
615
|
+
"messageLine2": "您的帳戶可能不夠安全。您確定要繼續嗎?",
|
616
|
+
"successMessage": "已移除驗證器應用程式的兩步驗證。",
|
617
|
+
"title": "移除兩步驗證"
|
618
|
+
},
|
619
|
+
"successMessage": "已啟用兩步驗證。登入時,您需要輸入來自此驗證器的驗證碼作為額外步驟。",
|
620
|
+
"title": "新增驗證器應用程式",
|
621
|
+
"verifySubtitle": "輸入您的驗證器生成的驗證碼",
|
622
|
+
"verifyTitle": "驗證碼"
|
623
|
+
},
|
624
|
+
"mobileButton__menu": "選單",
|
625
|
+
"navbar": {
|
626
|
+
"account": "個人資料",
|
627
|
+
"description": "管理您的帳戶資訊",
|
628
|
+
"security": "安全性",
|
629
|
+
"title": "帳戶"
|
630
|
+
},
|
631
|
+
"passkeyScreen": {
|
632
|
+
"removeResource": {
|
633
|
+
"messageLine1": "{{name}} 將從此帳戶中移除。",
|
634
|
+
"title": "移除密碼鍵"
|
635
|
+
},
|
636
|
+
"subtitle__rename": "您可以更改密碼鍵名稱,以便更容易找到。",
|
637
|
+
"title__rename": "重新命名密碼鍵"
|
638
|
+
},
|
639
|
+
"passwordPage": {
|
640
|
+
"checkboxInfoText__signOutOfOtherSessions": "建議登出所有可能使用過您舊密碼的其他裝置。",
|
641
|
+
"readonly": "您目前無法編輯密碼,因為只能透過企業連線登入。",
|
642
|
+
"successMessage__set": "您的密碼已設定。",
|
643
|
+
"successMessage__signOutOfOtherSessions": "所有其他裝置已登出。",
|
644
|
+
"successMessage__update": "您的密碼已更新。",
|
645
|
+
"title__set": "設定密碼",
|
646
|
+
"title__update": "更新密碼"
|
647
|
+
},
|
648
|
+
"phoneNumberPage": {
|
649
|
+
"infoText": "將發送包含驗證碼的簡訊至此電話號碼。可能會產生訊息和資料費用。",
|
650
|
+
"removeResource": {
|
651
|
+
"messageLine1": "{{identifier}} 將從此帳戶中移除。",
|
652
|
+
"messageLine2": "您將無法再使用此電話號碼登入。",
|
653
|
+
"successMessage": "{{phoneNumber}} 已從您的帳戶中移除。",
|
654
|
+
"title": "移除電話號碼"
|
655
|
+
},
|
656
|
+
"successMessage": "{{identifier}} 已新增至您的帳戶。",
|
657
|
+
"title": "新增電話號碼",
|
658
|
+
"verifySubtitle": "輸入發送至 {{identifier}} 的驗證碼",
|
659
|
+
"verifyTitle": "驗證電話號碼"
|
660
|
+
},
|
661
|
+
"profilePage": {
|
662
|
+
"fileDropAreaHint": "建議尺寸 1:1,最大 10MB。",
|
663
|
+
"imageFormDestructiveActionSubtitle": "移除",
|
664
|
+
"imageFormSubtitle": "上傳",
|
665
|
+
"imageFormTitle": "個人形象",
|
666
|
+
"readonly": "您的個人資訊已由企業連線提供,無法編輯。",
|
667
|
+
"successMessage": "您的個人資料已更新。",
|
668
|
+
"title": "更新個人資料"
|
669
|
+
},
|
670
|
+
"start": {
|
671
|
+
"activeDevicesSection": {
|
672
|
+
"destructiveAction": "登出裝置",
|
673
|
+
"title": "活躍裝置"
|
674
|
+
},
|
675
|
+
"connectedAccountsSection": {
|
676
|
+
"actionLabel__connectionFailed": "重試",
|
677
|
+
"actionLabel__reauthorize": "現在授權",
|
678
|
+
"destructiveActionTitle": "移除",
|
679
|
+
"primaryButton": "連結帳戶",
|
680
|
+
"subtitle__reauthorize": "所需範圍已更新,您可能遇到功能受限的情況。請重新授權此應用以避免任何問題",
|
681
|
+
"title": "已連結帳戶"
|
682
|
+
},
|
683
|
+
"dangerSection": {
|
684
|
+
"deleteAccountButton": "刪除帳戶",
|
685
|
+
"title": "刪除帳戶"
|
686
|
+
},
|
687
|
+
"emailAddressesSection": {
|
688
|
+
"destructiveAction": "移除電子郵件",
|
689
|
+
"detailsAction__nonPrimary": "設為主要",
|
690
|
+
"detailsAction__primary": "完成驗證",
|
691
|
+
"detailsAction__unverified": "驗證",
|
692
|
+
"primaryButton": "新增電子郵件地址",
|
693
|
+
"title": "電子郵件地址"
|
694
|
+
},
|
695
|
+
"enterpriseAccountsSection": {
|
696
|
+
"title": "企業帳戶"
|
697
|
+
},
|
698
|
+
"headerTitle__account": "個人資料詳情",
|
699
|
+
"headerTitle__security": "安全性",
|
700
|
+
"mfaSection": {
|
701
|
+
"backupCodes": {
|
702
|
+
"actionLabel__regenerate": "重新生成",
|
703
|
+
"headerTitle": "備份代碼",
|
704
|
+
"subtitle__regenerate": "取得一組新的安全備份代碼。之前的備份代碼將被刪除且無法使用。",
|
705
|
+
"title__regenerate": "重新生成備份代碼"
|
706
|
+
},
|
707
|
+
"phoneCode": {
|
708
|
+
"actionLabel__setDefault": "設為預設",
|
709
|
+
"destructiveActionLabel": "移除"
|
710
|
+
},
|
711
|
+
"primaryButton": "新增雙重驗證",
|
712
|
+
"title": "雙重驗證",
|
713
|
+
"totp": {
|
714
|
+
"destructiveActionTitle": "移除",
|
715
|
+
"headerTitle": "驗證器應用程式"
|
716
|
+
}
|
717
|
+
},
|
718
|
+
"passkeysSection": {
|
719
|
+
"menuAction__destructive": "移除",
|
720
|
+
"menuAction__rename": "重新命名",
|
721
|
+
"title": "通行證"
|
722
|
+
},
|
723
|
+
"passwordSection": {
|
724
|
+
"primaryButton__setPassword": "設定密碼",
|
725
|
+
"primaryButton__updatePassword": "更新密碼",
|
726
|
+
"title": "密碼"
|
727
|
+
},
|
728
|
+
"phoneNumbersSection": {
|
729
|
+
"destructiveAction": "移除電話號碼",
|
730
|
+
"detailsAction__nonPrimary": "設為主要",
|
731
|
+
"detailsAction__primary": "完成驗證",
|
732
|
+
"detailsAction__unverified": "驗證電話號碼",
|
733
|
+
"primaryButton": "新增電話號碼",
|
734
|
+
"title": "電話號碼"
|
735
|
+
},
|
736
|
+
"profileSection": {
|
737
|
+
"primaryButton": "更新個人資料",
|
738
|
+
"title": "個人資料"
|
739
|
+
},
|
740
|
+
"usernameSection": {
|
741
|
+
"primaryButton__setUsername": "設定使用者名稱",
|
742
|
+
"primaryButton__updateUsername": "更新使用者名稱",
|
743
|
+
"title": "使用者名稱"
|
744
|
+
},
|
745
|
+
"web3WalletsSection": {
|
746
|
+
"destructiveAction": "移除錢包",
|
747
|
+
"primaryButton": "Web3錢包",
|
748
|
+
"title": "Web3錢包"
|
749
|
+
}
|
750
|
+
},
|
751
|
+
"usernamePage": {
|
752
|
+
"successMessage": "您的使用者名稱已更新。",
|
753
|
+
"title__set": "設定使用者名稱",
|
754
|
+
"title__update": "更新使用者名稱"
|
755
|
+
},
|
756
|
+
"web3WalletPage": {
|
757
|
+
"removeResource": {
|
758
|
+
"messageLine1": "{{identifier}} 將從此帳戶中移除。",
|
759
|
+
"messageLine2": "您將無法再使用此 Web3 錢包登入。",
|
760
|
+
"successMessage": "{{web3Wallet}} 已從您的帳戶中移除。",
|
761
|
+
"title": "移除 Web3 錢包"
|
762
|
+
},
|
763
|
+
"subtitle__availableWallets": "選擇一個 Web3 錢包連線至您的帳戶。",
|
764
|
+
"subtitle__unavailableWallets": "目前沒有可用的 Web3 錢包。",
|
765
|
+
"successMessage": "錢包已新增至您的帳戶。",
|
766
|
+
"title": "新增 Web3 錢包"
|
767
|
+
}
|
768
|
+
}
|
769
|
+
}
|