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

28 lines
1.1 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$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": {
"interfaceVersion": { "description": "跨层契约版本", "type": "string", "const": "1.0", "default": "1.0" },
"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"] }
}
}