chore(web): 升级前端核心依赖并优化代码质量
Co-authored-by: Yuchuan <xerrors@qq.com>
This commit is contained in:
parent
6ef0e40df5
commit
bb8897ce28
@ -13,13 +13,13 @@
|
||||
- 检索测试中,添加问答
|
||||
- 集成 Memory,基于 deepagents 的文件后端实现,需要考虑定位
|
||||
- Yuxi-cli 相关的功能,放在后续版本中实现(不是类似于编程助手,而是管理平台的工,等各个 router 接口优化之后)
|
||||
- 完善个人知识库(仅设想,欢迎讨论)
|
||||
- 完善测试基准自动生成功能,目前的实现过于简单,无法覆盖实际需求
|
||||
- 完善 Skills 的环境变量注入
|
||||
- 拓宽检索的知识源,统一多知识源(channel),目前已知知识库/知识图谱/网页,可拓展:个人知识库、数据库、历史对话等
|
||||
- 前置任务,多知识库并行检索(扩展 query_kb)
|
||||
- 新增 query_keywords 工具,专门用于基于关键词命中的排序,也结合词频(和 BM25 的区别?)
|
||||
- 评估
|
||||
- 知识库选择,修改为默认选择所有知识库(dev2)
|
||||
|
||||
### Bugs
|
||||
- 目前的知识库的图片存在公开访问风险
|
||||
@ -28,6 +28,7 @@
|
||||
- 将自定义provider 的实现逻辑,从文件移动到数据库中,并将相关处理代码,移出 config 文件,放到 provider 模块中
|
||||
- 已补充方案文档:`docs/vibe/2026-04-18-custom-provider-db-refactor-plan.md`,明确采用“provider 一行、models 放 JSON、移除 provider 默认模型”的落地方案
|
||||
- 优化知识库的 API 接口设计,使用 /{db_id}/xxx 的形式,整合 mindmap / eval 接口
|
||||
- 移除 v1 版本的 provider 统一接口,改为 v2 版本的 provider 模块接口
|
||||
|
||||
|
||||
|
||||
|
||||
@ -14,42 +14,44 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons-vue": "^7.0.1",
|
||||
"@antv/g6": "^5.0.51",
|
||||
"@antv/g6": "^5.1.0",
|
||||
"@sigma/edge-curve": "^3.1.0",
|
||||
"@sigma/node-border": "^3.0.0",
|
||||
"@vueuse/core": "^13.9.0",
|
||||
"@vueuse/core": "^14.3.0",
|
||||
"ant-design-vue": "^4.2.6",
|
||||
"d3": "^7.9.0",
|
||||
"dayjs": "^1.11.19",
|
||||
"dayjs": "^1.11.20",
|
||||
"echarts": "^6.0.0",
|
||||
"graphology": "^0.26.0",
|
||||
"graphology-generators": "^0.11.2",
|
||||
"highlight.js": "^11.11.1",
|
||||
"less": "^4.5.1",
|
||||
"lucide-vue-next": "^0.542.0",
|
||||
"marked": "^16.4.2",
|
||||
"marked-highlight": "^2.2.3",
|
||||
"less": "^4.6.4",
|
||||
"lucide-vue-next": "^1.0.0",
|
||||
"marked": "^18.0.3",
|
||||
"marked-highlight": "^2.2.4",
|
||||
"markmap-lib": "^0.18.12",
|
||||
"markmap-view": "^0.18.12",
|
||||
"md-editor-v3": "^5.8.5",
|
||||
"md-editor-v3": "^6.5.0",
|
||||
"pinia": "^3.0.4",
|
||||
"pinia-plugin-persistedstate": "^4.7.1",
|
||||
"sigma": "^3.0.2",
|
||||
"vue": "^3.5.29",
|
||||
"vue-router": "^4.6.4"
|
||||
"sigma": "^3.0.3",
|
||||
"vue": "^3.5.34",
|
||||
"vue-router": "^5.0.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.3",
|
||||
"@vitejs/plugin-vue": "^6.0.4",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@vitejs/plugin-vue": "^6.0.6",
|
||||
"@vue/eslint-config-prettier": "^10.2.0",
|
||||
"eslint": "^9.39.3",
|
||||
"eslint-plugin-vue": "^10.8.0",
|
||||
"globals": "^17.4.0",
|
||||
"prettier": "^3.8.1",
|
||||
"vite": "^7.3.1"
|
||||
"eslint": "^10.3.0",
|
||||
"eslint-plugin-vue": "^10.9.1",
|
||||
"globals": "^17.6.0",
|
||||
"prettier": "^3.8.3",
|
||||
"vite": "^8.0.10",
|
||||
"vue-eslint-parser": "^10.4.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"eslint-scope": "9.1.2",
|
||||
"flatted": "3.4.2",
|
||||
"lodash-es": "4.18.1"
|
||||
}
|
||||
|
||||
2004
web/pnpm-lock.yaml
2004
web/pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -1115,7 +1115,7 @@ const runUploadTask = (task) => {
|
||||
return
|
||||
}
|
||||
|
||||
let errorResp = {}
|
||||
let errorResp
|
||||
try {
|
||||
errorResp = JSON.parse(xhr.responseText || '{}')
|
||||
} catch {
|
||||
|
||||
@ -471,7 +471,7 @@ const generateSampleQuestions = async (silent = false) => {
|
||||
// 静默模式下不显示错误消息(自动生成时)
|
||||
if (!silent) {
|
||||
// 提取详细错误信息
|
||||
let errorMsg = '未知错误'
|
||||
let errorMsg
|
||||
if (error.response?.data?.detail) {
|
||||
errorMsg = error.response.data.detail
|
||||
} else if (error.detail) {
|
||||
|
||||
@ -63,7 +63,7 @@ const currentUser = computed(() => {
|
||||
// 问候语计算属性
|
||||
const greeting = computed(() => {
|
||||
const hour = dayjs().tz('Asia/Shanghai').hour()
|
||||
let greetingText = ''
|
||||
let greetingText
|
||||
|
||||
if (hour >= 5 && hour < 12) {
|
||||
greetingText = '早上好'
|
||||
|
||||
@ -18,15 +18,14 @@ const parseRunSeq = (value) => {
|
||||
const text = normalizeRunSeq(value)
|
||||
if (text.includes('-')) {
|
||||
const [majorRaw, minorRaw] = text.split('-', 2)
|
||||
let major = 0n
|
||||
let minor = 0n
|
||||
|
||||
try {
|
||||
major = BigInt(majorRaw || '0')
|
||||
minor = BigInt(minorRaw || '0')
|
||||
const major = BigInt(majorRaw || '0')
|
||||
const minor = BigInt(minorRaw || '0')
|
||||
return { kind: 'stream', major, minor }
|
||||
} catch {
|
||||
return { kind: 'legacy', value: 0 }
|
||||
}
|
||||
return { kind: 'stream', major, minor }
|
||||
}
|
||||
|
||||
const numberValue = Number.parseInt(text, 10)
|
||||
|
||||
@ -50,7 +50,7 @@ export class ChatExporter {
|
||||
return { success: true, filename }
|
||||
} catch (error) {
|
||||
console.error('导出对话失败:', error)
|
||||
throw new Error(`导出失败: ${error.message}`)
|
||||
throw new Error(`导出失败: ${error.message}`, { cause: error })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user