From fc8f06ee1442b385eb3f5a445e0114300440ae73 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Wed, 25 Feb 2026 18:12:33 +0800 Subject: [PATCH 1/2] fix(web): Agent init chat variables --- web/src/views/ApplicationConfig/Agent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/views/ApplicationConfig/Agent.tsx b/web/src/views/ApplicationConfig/Agent.tsx index 4c3b73ba..2ece4b6e 100644 --- a/web/src/views/ApplicationConfig/Agent.tsx +++ b/web/src/views/ApplicationConfig/Agent.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 16:29:21 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-10 18:46:40 + * @Last Modified time: 2026-02-25 18:11:49 */ import { type FC, type ReactNode, useEffect, useRef, useState, forwardRef, useImperativeHandle } from 'react'; import clsx from 'clsx' @@ -168,7 +168,7 @@ const Agent = forwardRef((_props, ref) => { setLoading(true) getApplicationConfig(id as string).then(res => { const response = res as Config - const { skills } = response + const { skills, variables } = response let allSkills = Array.isArray(skills?.skill_ids) ? skills?.skill_ids.map(vo => ({ id: vo })) : [] let allTools = Array.isArray(response.tools) ? response.tools : [] const memoryContent = response.memory?.memory_config_id @@ -187,6 +187,7 @@ const Agent = forwardRef((_props, ref) => { skill_ids: allSkills } }) + updateVariableList([...variables]) setData({ ...response, tools: allTools From 6c49456c131e5d693690173bcdce70e6fc4c2620 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Wed, 25 Feb 2026 18:50:30 +0800 Subject: [PATCH 2/2] fix(web): update i18n --- web/src/i18n/en.ts | 15 ++++++- web/src/i18n/zh.ts | 104 ++++++--------------------------------------- 2 files changed, 27 insertions(+), 92 deletions(-) diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index 8bfe8d41..8dfb68db 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -1,6 +1,5 @@ export const en = { translation: { - welcome: 'Welcome to React Font CLI', title: 'Memory Bear.AI ', memoryBear: 'Memory Bear.AI', index:{ @@ -248,6 +247,7 @@ export const en = { usernameOrAccount: 'Username / Login Account', displayName: 'Display Name', role: 'Role', + password: 'Password', status: 'Status', createTime: 'Creation Time', lastLoginTime: 'Last Login Time', @@ -602,6 +602,9 @@ export const en = { bedrock: "Bedrock" }, knowledgeBase: { + home: 'Home', + selectSpace: 'Please select space', + preview: 'Preview', pleaseUploadFileFirst: 'Please upload file first', shareSuccess: 'Share successfully', shareFailed: 'Share failed', @@ -1192,7 +1195,7 @@ export const en = { stateSharingStrategy: 'State Sharing Strategy', intermediateResultProcessing: 'Intermediate Result Processing', metadataTransfer: 'Metadata Transfer', - + knowledgeConfig: 'Knowledge Base Configuration', temperature: 'Temperature', temperature_desc: 'Temperature parameters, control the randomness of output', max_tokens: 'Max Tokens', @@ -1336,6 +1339,13 @@ export const en = { analyTask: 'Analyze Task Intent', dynamicMatchSkill: 'Dynamic Match Skill', executeTask: 'Execute Task', + + upload: 'Upload & Parse', + complex: 'Compatibility Analysis', + node: 'Node Mapping', + configCheck: 'Configuration Validation', + sureInfo: 'Information Confirmation', + completed: 'Import Completed', }, userMemory: { userMemory: 'User Memory', @@ -2012,6 +2022,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re query: 'Query Variable', knowledge_retrieval: 'Knowledge Base', recallConfig: 'Recall Test', + addKnowledge: 'Add Knowledge Base' }, 'parameter-extractor': { model_id: 'Model', diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index 421d2d58..feefc843 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -2,7 +2,6 @@ export const zh = { translation: { title: '记忆熊', memoryBear: '记忆熊', - welcome: '欢迎使用 React Font CLI', index:{ viewGuide: '查看引导', watchVideo: '观看视频', @@ -92,6 +91,7 @@ export const zh = { memberManagement: '成员管理', memorySummary: '记忆摘要', memoryConversation: '记忆验证', + helpCenter: '帮助中心', memorySummaryHandlers: '记忆摘要处理器', createMemorySummary: '创建记忆摘要', memoryManagement: '记忆管理', @@ -189,6 +189,7 @@ export const zh = { customText: '自定义文本', customContent: '自定义内容', createContentError: '创建自定义文件失败', + createLinkError: '创建链接内容失败', manuallyInputText: '手动输入一段文本作为数据集', openKnowledgeBase: '打开知识库', searchPlaceholder: '搜索', @@ -243,6 +244,7 @@ export const zh = { processing: '处理中', name: '名称', processingMode: '处理模式', + processMsg: '处理消息', dataSize: '数据量', createUpdateTime: '创建/更新时间', datasets: '通用知识库', @@ -440,8 +442,6 @@ export const zh = { agentDesc: '创建单个智能代理', multi_agent: '集群', multi_agentDesc: '创建Agent集群', - cluster: '集群', - clusterDesc: '创建Agent集群', workflow: '工作流', workflowDesc: '创建策略工作流', editApplication: '编辑应用信息', @@ -550,7 +550,6 @@ export const zh = { versionList: '版本列表', versionListDesc: '所有发布记录和状态', - fullAmount: '全量', current: '当前', rolledBack: '已回滚', history: '历史', @@ -574,6 +573,10 @@ export const zh = { clusterName: '集群名称', clusterDescription: '集群描述', clusterDescriptionPlaceholder: '这是一个专门处理核心业务的Agent集群,能够协作完成复杂的业务处理任务。', + toolCalling: '工具调用', + toolCallingDesc: '主控代理将子代理作为工具调用', + toolCallingFeature: '集中控制,适合结构化工作流', + handoffsFeature: '分散控制,适合复杂对话场景', recommend: '推荐', advanced: '高级', multiAgentArchitecture: '多代理架构模式', @@ -586,7 +589,7 @@ export const zh = { addSubAgent: '添加子代理', versionName: '版本名称', versionNameTip: '版本号格式:v[主版本号].[次版本号].[修订号](例如 v1.3.0)', - agentName: '代理名称', + agentName: 'Agent名称', roleType: '角色类型', coordinator: '协调者', analyzer: '分析者', @@ -595,6 +598,9 @@ export const zh = { updateSubAgent: '更新子代理', subAgentMaxLength: '子代理最多{{maxLength}}个', capabilities: '能力', + subAgent: '子代理', + maxChatCount: '最多添加4个模型', + ReplyException: '回复异常', contextEngineering: '上下文工程', dialogueHistoryManagement: '对话历史管理', stateSharingStrategy: '状态共享策略', @@ -737,55 +743,6 @@ export const zh = { sureInfo: '信息确认', completed: '完成导入', }, - role: { - roleManagement: '角色管理', - roleId: '角色ID', - roleName: '角色名称', - roleCode: '角色编码', - description: '角色描述', - status: '状态', - enabled: '已启用', - disabled: '已停用', - createTime: '创建时间', - createRole: '新建角色', - editRole: '编辑角色', - roleTemplate: '角色模板', - emptyTemplate: '空模板', - adminTemplate: '管理员模板', - userTemplate: '用户模板', - confirmDelete: '确定要删除这个角色吗?', - createSuccess: '角色创建成功', - updateSuccess: '角色更新成功', - deleteSuccess: '角色删除成功', - createFailed: '角色创建失败', - updateFailed: '角色更新失败', - deleteFailed: '角色删除失败' - }, - tenant: { - tenantId: '租户ID', - tenantName: '租户名称', - contactPerson: '联系人', - contactInfo: '联系方式', - status: '状态', - enabled: '启用', - disabled: '禁用', - expiryDate: '到期时间', - createTenant: '新增租户', - editTenant: '编辑租户', - searchPlaceholder: '搜索租户ID、名称、联系人或联系方式', - confirmDelete: '确定要删除该租户吗?', - confirmBatchDelete: '确定要批量删除选中的租户吗?', - fetchFailed: '获取租户数据失败', - batchEnableSuccess: '批量启用成功', - batchEnableFailed: '批量启用失败', - batchDisableSuccess: '批量停用成功', - batchDisableFailed: '批量停用失败', - exportSuccess: '导出成功', - batchDeleteSuccess: '批量删除成功', - batchDeleteFailed: '批量删除失败', - saveFailed: '保存失败', - batchImport: '批量导入' - }, table: { totalRecords: '共 {{total}} 条记录' }, @@ -916,12 +873,9 @@ export const zh = { subUsername: '或登录账号', usernameOrAccount: '用户名 / 登录账号', displayName: '显示名称', - tenantName: '所属租户', role: '角色', password: '密码', initialPassword: '初始密码', - expiryDate: '有效期', - expiryDateDue: '有效期至', status: '状态', enabled: '已启用', enabledOpera: '启用', @@ -993,6 +947,7 @@ export const zh = { exportList: '导出列表', selectPlaceholder: '请选择{{title}}', inputPlaceholder: '请输入{{title}}', + enterPlaceholder: '输入 {{title}}', saveSuccess: '保存成功', saveFailure: '保存失败', pleaseSelect: '请选择', @@ -1032,6 +987,7 @@ export const zh = { confirmChangeStatusDesc: '确定要更改【{{name}}】的状态吗?', operationSuccess: '操作成功', operateSuccess: '操作成功', + deleted: '已删除', pleaseUpload: '请上传', returnToSpace: '返回空间', createSuccess: '创建成功', @@ -1064,24 +1020,6 @@ export const zh = { prevStep: '上一步', exportSuccess: '导出成功', }, - product: { - applicationManagement: '应用管理', - createApplication: '创建应用', - applicationName: '应用名称', - applicationIcon: '应用图标', - applicationNameRequired: '请输入应用名称', - associationStatus: '关联状态', - associated: '已关联', - notAssociated: '未关联', - unassociate: '解除关联', - unassociateSuccess: '解除关联成功', - unassociateFailed: '解除关联失败', - viewKey: '查看KEY', - viewStats: '查看统计', - disableSuccess: '停用成功', - enableSuccess: '启用成功', - operationFailed: '操作失败', - }, model: { searchPlaceholder: '搜索模型…', type: '类型', @@ -1758,6 +1696,7 @@ export const zh = { name: '姓名', nameSubTitle: '(可选,用于团队成员识别)', namePlaceholder: '请输入您的姓名', + inviteLinkInvalid: '邀请链接无效', passwordStrength: '密码强度', noSet: '未设置', @@ -1781,21 +1720,6 @@ export const zh = { pageEmpty: '哎呀!暂无搜索结果', pageEmptyDesc: '红熊歪着头等待您更换新的关键词,让我们一起探索吧。', }, - - home: { - title: '首页', - welcome: '欢迎使用我们的带单页路由的 React 应用!', - counterCard: '计数器演示', - aboutCard: '关于我们', - workflowCard: '工作流编辑器', - websocketDemoCard: 'WebSocket 演示', - sseDemoCard: 'SSE演示' - }, - notFound: { - title: '页面未找到', - description: '请求的页面不存在。', - backToHome: '返回首页' - }, apiKey: { name: '项目名称', createApiKey: '创建API Key',