chore: 清理未用import

This commit is contained in:
LukeMackin
2026-07-22 19:39:31 +08:00
parent 490201f0d4
commit 3d82964075

View File

@@ -1,5 +1,5 @@
/**
* S-001: MCP Tool Types 36 Tool definitions for Yuzu-GCA
* S-001: MCP Tool Types 鈥?36 Tool definitions for Yuzu-GCA
*
* Each Tool follows the @modelcontextprotocol/sdk shape:
* { name, description, inputSchema }
@@ -19,7 +19,7 @@
import type { z } from "zod";
// ── JSON Schema primitive aliases ──────────────────────────
// 鈹€鈹€ JSON Schema primitive aliases 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
const str = (desc: string) => ({ type: "string" as const, description: desc });
const num = (desc: string) => ({ type: "number" as const, description: desc });
const bool = (desc: string) => ({ type: "boolean" as const, description: desc });
@@ -28,7 +28,7 @@ const obj = (props: Record<string,any>, required: string[], desc: string) => ({
type: "object" as const, properties: props, required, description: desc,
});
// ── Tool definition type ───────────────────────────────────
// 鈹€鈹€ Tool definition type 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export interface ToolDef {
name: string;
description: string;
@@ -45,7 +45,7 @@ export interface ToolCategory {
tools: ToolDef[];
}
// ── Module 1: Device Management (5 tools) ──────────────────
// 鈹€鈹€ Module 1: Device Management (5 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const DEVICE_TOOLS: ToolDef[] = [
{
name: "device_info",
@@ -77,7 +77,7 @@ export const DEVICE_TOOLS: ToolDef[] = [
},
];
// ── Module 2: Command Execution (4 tools) ──────────────────
// 鈹€鈹€ Module 2: Command Execution (4 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const EXEC_TOOLS: ToolDef[] = [
{
name: "exec",
@@ -113,7 +113,7 @@ export const EXEC_TOOLS: ToolDef[] = [
},
];
// ── Module 3: File Operations (6 tools) ────────────────────
// 鈹€鈹€ Module 3: File Operations (6 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const FILE_TOOLS: ToolDef[] = [
{
name: "file_list",
@@ -167,7 +167,7 @@ export const FILE_TOOLS: ToolDef[] = [
},
];
// ── Module 4: System Control (4 tools) ─────────────────────
// 鈹€鈹€ Module 4: System Control (4 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const SYSTEM_TOOLS: ToolDef[] = [
{
name: "sysinfo",
@@ -200,7 +200,7 @@ export const SYSTEM_TOOLS: ToolDef[] = [
},
];
// ── Module 5: Remote Desktop (4 tools) ─────────────────────
// 鈹€鈹€ Module 5: Remote Desktop (4 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const REMOTE_TOOLS: ToolDef[] = [
{
name: "screenshot",
@@ -239,7 +239,7 @@ export const REMOTE_TOOLS: ToolDef[] = [
},
];
// ── Module 6: AI Manipulation (4 tools) ────────────────────
// 鈹€鈹€ Module 6: AI Manipulation (4 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const AI_TOOLS: ToolDef[] = [
{
name: "ui_find",
@@ -279,7 +279,7 @@ export const AI_TOOLS: ToolDef[] = [
},
];
// ── Module 7: Network (3 tools) ─────────────────────────────
// 鈹€鈹€ Module 7: Network (3 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const NETWORK_TOOLS: ToolDef[] = [
{
name: "net_info",
@@ -301,7 +301,7 @@ export const NETWORK_TOOLS: ToolDef[] = [
},
];
// ── Module 8: Hardware (3 tools) ────────────────────────────
// 鈹€鈹€ Module 8: Hardware (3 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const HARDWARE_TOOLS: ToolDef[] = [
{
name: "hw_temperature",
@@ -322,7 +322,7 @@ export const HARDWARE_TOOLS: ToolDef[] = [
},
];
// ── Module 9: Developer Tools (2 tools) ─────────────────────
// 鈹€鈹€ Module 9: Developer Tools (2 tools) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const DEV_TOOLS: ToolDef[] = [
{
name: "dev_shell",
@@ -341,7 +341,7 @@ export const DEV_TOOLS: ToolDef[] = [
},
];
// ── Module 10: Media (1 tool) ──────────────────────────────
// 鈹€鈹€ Module 10: Media (1 tool) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const MEDIA_TOOLS: ToolDef[] = [
{
name: "media_control",
@@ -352,7 +352,7 @@ export const MEDIA_TOOLS: ToolDef[] = [
},
];
// ── Aggregate ───────────────────────────────────────────────
// 鈹€鈹€ Aggregate 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€
export const ALL_TOOLS: ToolCategory[] = [
{ module: 1, name: "Device Management", tools: DEVICE_TOOLS },
{ module: 2, name: "Command Execution", tools: EXEC_TOOLS },