feat(hands): restructure Hands UI with Chinese localization
Major changes: - Add HandList.tsx component for left sidebar - Add HandTaskPanel.tsx for middle content area - Restructure Sidebar tabs: 分身/HANDS/Workflow - Remove Hands tab from RightPanel - Localize all UI text to Chinese - Archive legacy OpenClaw documentation - Add Hands integration lessons document - Update feature checklist with new components UI improvements: - Left sidebar now shows Hands list with status icons - Middle area shows selected Hand's tasks and results - Consistent styling with Tailwind CSS - Chinese status labels and buttons Documentation: - Create docs/archive/openclaw-legacy/ for old docs - Add docs/knowledge-base/hands-integration-lessons.md - Update docs/knowledge-base/feature-checklist.md - Update docs/knowledge-base/README.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
70
hands/browser.HAND.toml
Normal file
70
hands/browser.HAND.toml
Normal file
@@ -0,0 +1,70 @@
|
||||
# Browser Hand - 浏览器自动化能力包
|
||||
#
|
||||
# OpenFang Hand 配置示例
|
||||
# 这个 Hand 提供浏览器自动化、网页抓取和交互能力
|
||||
|
||||
[hand]
|
||||
name = "browser"
|
||||
version = "1.0.0"
|
||||
description = "浏览器自动化能力包 - 自动化网页操作和数据采集"
|
||||
author = "ZCLAW Team"
|
||||
|
||||
type = "automation"
|
||||
requires_approval = true # 浏览器操作需要审批
|
||||
timeout = 600
|
||||
max_concurrent = 2
|
||||
|
||||
tags = ["browser", "automation", "web-scraping", "selenium", "playwright"]
|
||||
|
||||
[hand.config]
|
||||
# 浏览器引擎: chromium, firefox, webkit
|
||||
browser_engine = "chromium"
|
||||
|
||||
# 是否使用无头模式
|
||||
headless = true
|
||||
|
||||
# 页面加载超时(秒)
|
||||
page_timeout = 30
|
||||
|
||||
# 是否加载图片
|
||||
load_images = false
|
||||
|
||||
# 是否执行 JavaScript
|
||||
enable_javascript = true
|
||||
|
||||
# User-Agent
|
||||
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
|
||||
|
||||
# 代理配置 (可选)
|
||||
# proxy = "http://127.0.0.1:7890"
|
||||
|
||||
[hand.triggers]
|
||||
manual = true
|
||||
schedule = false
|
||||
webhook = true
|
||||
|
||||
[[hand.triggers.events]]
|
||||
type = "chat.intent"
|
||||
pattern = "打开网页|访问网站|抓取|爬取|browse|scrape|visit"
|
||||
priority = 5
|
||||
|
||||
[hand.permissions]
|
||||
requires = [
|
||||
"browser.navigate",
|
||||
"browser.click",
|
||||
"browser.type",
|
||||
"browser.screenshot",
|
||||
"browser.evaluate",
|
||||
"file.write"
|
||||
]
|
||||
|
||||
roles = ["operator.read"]
|
||||
|
||||
[hand.rate_limit]
|
||||
max_requests = 50
|
||||
window_seconds = 3600
|
||||
|
||||
[hand.audit]
|
||||
log_inputs = true
|
||||
log_outputs = true
|
||||
retention_days = 14
|
||||
Reference in New Issue
Block a user