From 04f2f814f93de49433c76b3819b591c9b77f5abc Mon Sep 17 00:00:00 2001 From: Huarch Date: Thu, 30 Apr 2026 13:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B7=A5=E5=85=B7=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=B8=BA=E4=B8=AD=E6=96=87=EF=BC=8C=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- .opencode/tools/dynamic_http_call.ts | 2 +- .opencode/tools/locate_features.ts | 2 +- .opencode/tools/show_chart.ts | 2 +- .opencode/tools/view_history.ts | 2 +- .opencode/tools/view_scada.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.opencode/tools/dynamic_http_call.ts b/.opencode/tools/dynamic_http_call.ts index 1eea28e..0a58559 100644 --- a/.opencode/tools/dynamic_http_call.ts +++ b/.opencode/tools/dynamic_http_call.ts @@ -5,7 +5,7 @@ const internalToken = process.env.TJWATER_AGENT_INTERNAL_TOKEN ?? ""; export default tool({ description: - "Call the TJWater backend API through the local agent bridge. Provide path, optional method, and query arguments.", + "通过本地 Agent 桥接调用 TJWater 后端 API。需提供 API 路径、可选的请求方法以及查询参数。", args: { path: tool.schema.string().describe("Target backend API path, starting with '/'."), method: tool.schema diff --git a/.opencode/tools/locate_features.ts b/.opencode/tools/locate_features.ts index 3b862e3..63e6c6e 100644 --- a/.opencode/tools/locate_features.ts +++ b/.opencode/tools/locate_features.ts @@ -1,7 +1,7 @@ import { tool } from "@opencode-ai/plugin"; export default tool({ - description: "Locate and highlight TJWater map features in the frontend.", + description: "在前端地图上定位并高亮指定的管网要素。", args: { ids: tool.schema.array(tool.schema.string()).describe("Feature ids to locate."), feature_type: tool.schema diff --git a/.opencode/tools/show_chart.ts b/.opencode/tools/show_chart.ts index c1aa510..d980af1 100644 --- a/.opencode/tools/show_chart.ts +++ b/.opencode/tools/show_chart.ts @@ -1,7 +1,7 @@ import { tool } from "@opencode-ai/plugin"; export default tool({ - description: "Render a chart in the frontend chat UI.", + description: "在前端对话界面中渲染图表。", args: { title: tool.schema.string().optional().describe("Chart title."), chart_type: tool.schema diff --git a/.opencode/tools/view_history.ts b/.opencode/tools/view_history.ts index 85d61b2..97615f6 100644 --- a/.opencode/tools/view_history.ts +++ b/.opencode/tools/view_history.ts @@ -1,7 +1,7 @@ import { tool } from "@opencode-ai/plugin"; export default tool({ - description: "Open the frontend history panel for selected features.", + description: "为选定的管网要素打开前端的历史记录或计算结果面板。", args: { feature_infos: tool.schema .array(tool.schema.tuple([tool.schema.string(), tool.schema.string()])) diff --git a/.opencode/tools/view_scada.ts b/.opencode/tools/view_scada.ts index 86376ee..5c4e97e 100644 --- a/.opencode/tools/view_scada.ts +++ b/.opencode/tools/view_scada.ts @@ -1,7 +1,7 @@ import { tool } from "@opencode-ai/plugin"; export default tool({ - description: "Open the frontend SCADA history panel.", + description: "打开前端的 SCADA 监测数据历史面板。", args: { device_ids: tool.schema .array(tool.schema.string())