mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-21 01:18:08 +00:00
- 根目录清理: branding/docs/knowledge -> assets/, package/tools/deploy -> deploy/ - meta.go: Version 0.7.2, SDKCompatibleVersion 语义改为最高兼容 - Makefile: 版本回退 0.7.2 - registry.go: 系统提示词改用 meta.Version 格式化 - Agent 心跳: reorgGraph 拆分为三个独立循环(archive/merge/review),各自可配间隔 - GraphDB: 新增 sentences 表 + 关系句子溯源 + ClearSentenceID + CleanupOrphanedSentences - Knowledge: 支持词嵌入向量化器 - NLP 四阶段流水线: Parse -> Extract -> Verify -> Fuse + SentenceRef - 移除远程 HTTP 解析器(remote_parser.go) - 新增内嵌 ONNX 模型(vocab + dep_parser.onnx): +build onnxruntime: 全量 ONNX Runtime 推理 !build onnxruntime: 内嵌词表规则式降级解析器 - config: core.agent.onnx_model_path 替代 dep_parser_url
33 lines
698 B
Bash
33 lines
698 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
SERVICE_NAME="homeagent"
|
|
SERVICE_FILE="/lib/systemd/system/${SERVICE_NAME}.service"
|
|
HOMED_BIN="/usr/bin/homed"
|
|
DATA_DIR="/var/lib/homeagent"
|
|
|
|
case "$1" in
|
|
configure)
|
|
if [ -f "$HOMED_BIN" ]; then
|
|
mkdir -p "$DATA_DIR"
|
|
|
|
# 初始化凭据和数据库
|
|
if [ -x /usr/lib/homeagent/setup.sh ]; then
|
|
HOMEAGENT_DATA="$DATA_DIR" /usr/lib/homeagent/setup.sh || true
|
|
fi
|
|
|
|
# 注册 systemd 服务
|
|
if [ -f "$SERVICE_FILE" ]; then
|
|
systemctl daemon-reload 2>/dev/null || true
|
|
systemctl enable "$SERVICE_NAME" 2>/dev/null || true
|
|
fi
|
|
fi
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
exit 0
|