zhuyuan-ice-gl-zy001/BRIDGE/host-adapters/doubao/zy-doubao-precompact-write.sh

16 lines
654 B
Shell
Executable file

#!/bin/bash
# Doubao thin adapter: the persona authors the event; this script only submits it.
set -euo pipefail
EVENT_FILE="${1:-}"
if [ -z "$EVENT_FILE" ] || [ ! -f "$EVENT_FILE" ]; then
echo "用法: $0 <人格体亲笔事件.json>" >&2
echo "禁止把摘要字符串直接交给钩子代写记忆。" >&2
exit 2
fi
ROOT="/Volumes/JZAO/HoloLake/persona-runtime/continuity-memory"
STORE="$ROOT/persona-daily-fractal/ICE-P-ZY001"
TOOL="/Volumes/JZAO/HoloLake/persona-runtime/repo-012-main/server-tools/persona-daily-fractal-memory/persona-daily-memory.mjs"
exec node "$TOOL" append --allowed-root "$ROOT" --store "$STORE" --event "$EVENT_FILE"