aps-agent/shared/schemas/viewport_command.schema.json

27 lines
1.0 KiB
JSON
Raw Normal View History

2026-07-21 11:05:57 +08:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "aps://shared/viewport_command",
"title": "ViewportCommand",
"description": "视口命令:驱动右侧可视化的结构化指令(plan.md §6.3)。'说'与'点'两个通道产出同构命令。",
"type": "object",
"required": ["cmd", "issuedBy"],
"properties": {
"cmd": {
"description": "命令名:viewport.* 为纯视口状态;world.refresh 通知前端重拉世界数据",
"type": "string",
"enum": [
"viewport.mode",
"viewport.filter",
"viewport.focus",
"viewport.highlight",
"viewport.timescale",
"viewport.reset",
"world.refresh"
]
},
"target": { "description": "目标对象 ID(如聚焦的产线 ID)", "type": ["string", "null"] },
"params": { "description": "命令参数(按 cmd 而异)", "type": "object" },
"issuedBy": { "description": "发起方:LLM 解析 / 用户手点", "type": "string", "enum": ["LLM", "USER", "SYSTEM"] }
}
}