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())