mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-22 01:48:11 +00:00
e273e746ea36e5d185d7355558dd232c79cc2ba6
- simulator/main.js: All 30+ register* methods now send JSON-RPC notifications to Go instead of being silent no-ops. Each plugin capability registration (tool, provider, channel, hook, http_route, command, service, etc.) is forwarded to Go via the notify channel. - sidecar.go: Refactored to async reader goroutine. Single goroutine reads all stdout lines, routes responses to pending callers via channel by ID, and dispatches notifications (no-ID messages) to notifyCh for handling. - plugin.go: drainNotify() collects all capabilities registered during plugin init. handleNotify() logs each registered capability for visibility. - All 9 openclaw tests pass including simulator + full pipeline tests.
HomeAgent
24/7 智能管家。核心零 IO,一切外界交互来自插件。
📖 项目概览(非技术) · 🔧 插件开发指南 · 🏗️ 技术架构 · 📋 实施计划
快速体验
# 构建
make build
# 启动内核(需要 DeepSeek API 密钥)
DEEPSEEK_API_KEY="sk-xxx" ./build/homed -data /tmp/ha
# 在另一个终端聊天
echo "你好" | ./build/waiter -socket /tmp/ha/cli.sock
架构一句话
homed(内核零 IO)← PluginSDK → 插件(所有 IO 能力)
依赖:Go 1.19+, CGo (go-sqlite3), Linux。
Languages
Go
74.6%
JavaScript
12.8%
HTML
3.9%
CSS
3.1%
Python
2.4%
Other
3.1%