Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- N1: Whiteboard Export 动作标注 demo=true - N2/N3: Director + A2A 通过 #[cfg(feature)] 条件编译隔离 - N4: viking_adapter 文本匹配降级为 LOW(生产路径走 SqliteStorage) - N5: 移除冗余 compactor_compact_llm Tauri 命令注册 - M3: hand_approve/hand_cancel 添加 hand_id 验证防跨 Hand 审批 - N7: scheduled_task 文档注释标注 PLANNNED - 新增 COMPREHENSIVE_AUDIT_V5.md 独立审计报告 - 更新 DEEP_AUDIT_REPORT.md 追加修复记录(累计 32 项)
127 lines
2.8 KiB
TOML
127 lines
2.8 KiB
TOML
# Whiteboard Hand - 白板绘制能力包
|
|
#
|
|
# ZCLAW Hand 配置
|
|
# 提供交互式白板绘制能力,支持文本、图形、公式、图表等
|
|
|
|
[hand]
|
|
name = "whiteboard"
|
|
version = "1.0.0"
|
|
description = "白板绘制能力包 - 绘制文本、图形、公式、图表等教学内容"
|
|
author = "ZCLAW Team"
|
|
|
|
type = "presentation"
|
|
requires_approval = false
|
|
timeout = 60
|
|
max_concurrent = 1
|
|
|
|
tags = ["whiteboard", "drawing", "presentation", "education", "teaching"]
|
|
|
|
[hand.config]
|
|
# 画布尺寸
|
|
canvas_width = 1920
|
|
canvas_height = 1080
|
|
|
|
# 默认画笔颜色
|
|
default_color = "#333333"
|
|
|
|
# 默认线宽
|
|
default_line_width = 2
|
|
|
|
# 支持的绘制动作
|
|
supported_actions = [
|
|
"draw_text",
|
|
"draw_shape",
|
|
"draw_line",
|
|
"draw_chart",
|
|
"draw_latex",
|
|
"draw_table",
|
|
"erase",
|
|
"clear",
|
|
"undo",
|
|
"redo"
|
|
]
|
|
|
|
# 字体配置
|
|
[hand.config.fonts]
|
|
text_font = "system-ui"
|
|
math_font = "KaTeX_Main"
|
|
code_font = "JetBrains Mono"
|
|
|
|
[hand.triggers]
|
|
manual = true
|
|
schedule = false
|
|
webhook = false
|
|
|
|
[[hand.triggers.events]]
|
|
type = "chat.intent"
|
|
pattern = "画|绘制|白板|展示|draw|whiteboard|sketch"
|
|
priority = 5
|
|
|
|
[hand.permissions]
|
|
requires = [
|
|
"whiteboard.draw",
|
|
"whiteboard.clear",
|
|
"whiteboard.export"
|
|
]
|
|
|
|
roles = ["operator.read"]
|
|
|
|
[hand.rate_limit]
|
|
max_requests = 100
|
|
window_seconds = 3600
|
|
|
|
[hand.audit]
|
|
log_inputs = true
|
|
log_outputs = false # 绘制内容不记录
|
|
retention_days = 7
|
|
|
|
# 绘制动作定义
|
|
[[hand.actions]]
|
|
id = "draw_text"
|
|
name = "绘制文本"
|
|
description = "在白板上绘制文本"
|
|
params = { x = "number", y = "number", text = "string", font_size = "number?", color = "string?" }
|
|
|
|
[[hand.actions]]
|
|
id = "draw_shape"
|
|
name = "绘制图形"
|
|
description = "绘制矩形、圆形、箭头等基本图形"
|
|
params = { shape = "string", x = "number", y = "number", width = "number", height = "number", fill = "string?" }
|
|
|
|
[[hand.actions]]
|
|
id = "draw_line"
|
|
name = "绘制线条"
|
|
description = "绘制直线或曲线"
|
|
params = { points = "array", color = "string?", line_width = "number?" }
|
|
|
|
[[hand.actions]]
|
|
id = "draw_chart"
|
|
name = "绘制图表"
|
|
description = "绘制柱状图、折线图、饼图等"
|
|
params = { chart_type = "string", data = "object", x = "number", y = "number", width = "number", height = "number" }
|
|
|
|
[[hand.actions]]
|
|
id = "draw_latex"
|
|
name = "绘制公式"
|
|
description = "渲染 LaTeX 数学公式"
|
|
params = { latex = "string", x = "number", y = "number", font_size = "number?" }
|
|
|
|
[[hand.actions]]
|
|
id = "draw_table"
|
|
name = "绘制表格"
|
|
description = "绘制数据表格"
|
|
params = { headers = "array", rows = "array", x = "number", y = "number" }
|
|
|
|
[[hand.actions]]
|
|
id = "clear"
|
|
name = "清空画布"
|
|
description = "清空白板所有内容"
|
|
params = {}
|
|
|
|
[[hand.actions]]
|
|
id = "export"
|
|
name = "导出图片"
|
|
description = "将白板内容导出为图片(⚠️ 导出功能开发中,当前返回占位数据)"
|
|
demo = true
|
|
params = { format = "string?" }
|