🔨 chore: update config (#10857)

chore update config
This commit is contained in:
Arvin Xu
2025-12-19 23:13:22 +08:00
committed by GitHub
parent 3c4ef8a837
commit 5cc9141b52
6 changed files with 19 additions and 5 deletions

5
.gitignore vendored
View File

@@ -24,7 +24,7 @@ Desktop.ini
.windsurfrules
*.code-workspace
.vscode/sessions.json
prd
# Temporary files
.temp/
temp/
@@ -93,7 +93,6 @@ robots.txt
.husky/prepare-commit-msg
# Documents and media
*.patch
*.pdf
# Cloud service keys
@@ -116,3 +115,5 @@ CLAUDE.local.md
*.xls*
e2e/reports
out

View File

@@ -1,2 +1,2 @@
npm run typecheck
npm run type-check
npx --no-install lint-staged

View File

@@ -30,7 +30,9 @@ module.exports = defineConfig({
jsonMode: true,
},
markdown: {
reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
reference:
'你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法。以下是一些词汇的固定翻译:\n' +
JSON.stringify(require('./glossary.json'), null, 2),
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
entryLocale: 'zh-CN',
outputLocales: ['en-US'],

View File

@@ -8,7 +8,7 @@ This TypeScript code snippet defines an object named `pluginSelectors`, which co
Here are some key points to note:
- `enabledSchema`: A function that returns an array of `ChatCompletionFunctions` filtered based on the enabled plugin list `enabledPlugins`. It appends the plugin identifier as a prefix to the API names to ensure uniqueness and uses the `uniqBy` function from the Lodash library to remove duplicates.
- `enabledSchema`: A function that returns an array of `ChatCompletionFunctions` filtered based on the enabled plugin list `enabledPlugins`. It appends the plugin identifier as a prefix to the API names to ensure uniqueness and uses the `uniqBy` function from the es-toolkit library to remove duplicates.
- `onlinePluginStore`: Returns the current online plugin list.
- `pluginList`: Returns the list of plugins, including custom plugins and standard plugins.
- `getPluginMetaById`: Returns the plugin metadata based on the plugin ID.

8
glossary.json Normal file
View File

@@ -0,0 +1,8 @@
{
"助手": {
"en-US": "Agent"
},
"文稿": {
"en-US": "Page"
}
}

View File

@@ -47,6 +47,9 @@ export default defineConfig({
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/tmp/**',
'**/temp/**',
'**/.temp/**',
'**/apps/desktop/**',
'**/apps/mobile/**',
'**/packages/**',