diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index bf1a3ce8..d54f0d25 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -2113,6 +2113,19 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re return_text_position_enable: 'Return Text Position Info', return_text_position_enable_desc: 'Whether to return coordinate positions of recognized text', + OpenClawTool_desc: 'OpenClaw Remote Agent', + OpenClawTool_features: 'OpenClaw Remote Agent — 3D Printing and Device Management', + OpenClawTool_config_desc: 'Configure OpenClaw Gateway connection. Server URL and API Key are required.', + OpenClawTool_server_url_desc: 'OpenClaw Gateway server URL, e.g. http://xxx.xxx.xxx.xx:xxx', + OpenClawTool_api_key_desc: 'OpenClaw API Key, created in OpenClaw admin console', + OpenClawTool_agent_id_desc: 'Target Agent ID, defaults to main, usually no need to change', + OpenClawTool_enable: 'Enable OpenClaw', + agent_id: 'Agent ID', + '3dPrinting': '3D Printing', + deviceManagement: 'Device Management', + multimodalInteraction: 'Multimodal Interaction', + remoteAgent: 'Remote Agent', + addCustom: 'Add Custom Tool', editCustom: 'Edit Custom Tool', schema: 'Schema', diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index a774ec55..5b46cb48 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -2109,6 +2109,21 @@ export const zh = { return_text_position_enable: '返回文本位置信息', return_text_position_enable_desc: '是否返回识别文字的坐标位置', + OpenClawTool_desc: 'OpenClaw远程Agent', + OpenClawTool_features: 'OpenClaw远程Agent —3D打印控制、设备管理等', + OpenClawTool_config_desc: '配置OpenClaw Gateway连接信息,需要提供服务地址和API Key。', + OpenClawTool_server_url_desc: 'OpenClaw Gateway 服务地址,如 http://xxx.xxx.xxx.xx:xxx', + OpenClawTool_api_key_desc: 'OpenClaw API Key,在 OpenClaw 管理后台创建', + OpenClawTool_agent_id_desc: '目标 Agent ID,默认为 main,通常无需修改', + OpenClawTool_enable: '启用 OpenClaw', + agent_id: 'Agent ID', + '3dPrinting': '3D 打印', + deviceManagement: '设备管理', + multimodalInteraction: '多模态交互', + remoteAgent: '远程 Agent', + + + addCustom: '添加自定义工具', editCustom: '编辑自定义工具', schema: 'Schema', diff --git a/web/src/views/ToolManagement/Inner.tsx b/web/src/views/ToolManagement/Inner.tsx index b88428b0..67c3a6f5 100644 --- a/web/src/views/ToolManagement/Inner.tsx +++ b/web/src/views/ToolManagement/Inner.tsx @@ -101,13 +101,13 @@ const Inner: React.FC<{ getStatusTag: (status: string) => ReactNode; keyword?: s {InnerConfigData[item.config_data.tool_class].features?.slice(0, 2).map((type, i) => ( -
{type}
+
{t(`tool.${type}`)}
))}
{InnerConfigData[item.config_data.tool_class].features.length > 2 && ( {InnerConfigData[item.config_data.tool_class].features?.slice(2, InnerConfigData[item.config_data.tool_class].features.length).map((type, i) => ( -
{type}
+
{t(`tool.${type}`)}
))}
} color="white" placement="bottom" @@ -135,7 +135,7 @@ const Inner: React.FC<{ getStatusTag: (status: string) => ReactNode; keyword?: s {InnerConfigData[item.config_data.tool_class].eg} : -
{t('configStatus')}
+
{t('tool.configStatus')}
{t(`tool.${item.status}_desc`)} } diff --git a/web/src/views/ToolManagement/constant.ts b/web/src/views/ToolManagement/constant.ts index 6763a140..5641ed4d 100644 --- a/web/src/views/ToolManagement/constant.ts +++ b/web/src/views/ToolManagement/constant.ts @@ -186,5 +186,43 @@ export const InnerConfigData: Record = { 'multilingualSupport', 'highPrecisionRecognition' ], + }, + OpenClawTool: { + link: 'https://openclaw.ai/', + config: { + server_url: { + name: ['config', 'parameters', 'server_url'], + type: 'input', + desc: 'OpenClawTool_server_url_desc', + rules: [ + { required: true, message: 'common.pleaseEnter' } + ] + }, + api_key: { + name: ['config', 'parameters', 'api_key'], + type: 'input', + desc: 'OpenClawTool_api_key_desc', + rules: [ + { required: true, message: 'common.pleaseEnter' } + ] + }, + agent_id: { + name: ['config', 'parameters', 'agent_id'], + type: 'input', + desc: 'OpenClawTool_agent_id_desc', + defaultValue: 'main', + }, + OpenClawTool_enable: { + name: ['config', 'is_enabled'], + type: 'checkbox', + defaultValue: true, + }, + }, + features: [ + '3dPrinting', + 'deviceManagement', + 'multimodalInteraction', + 'remoteAgent' + ], } } \ No newline at end of file