feat(hooks): session-end-dump calls kei-sleep-sync after ingest

This commit is contained in:
Parfii-bot 2026-04-22 01:34:42 +08:00
parent 9450ef0b95
commit 7db2328b68

View file

@ -41,4 +41,12 @@ if command -v kei-memory >/dev/null 2>&1 && [ -f "$dest" ]; then
>/dev/null 2>&1 || true
fi
# v0.11 sleep-sync (RULE 0.15) — push traces to the user's memory-repo so a
# cloud agent can consolidate them overnight. Silent no-op when the primitive
# is absent or the user hasn't opted in via /sleep-setup.
sleep_sync="${HOME}/.claude/agents/_primitives/kei-sleep-sync.sh"
if [ -x "$sleep_sync" ]; then
"$sleep_sync" >/dev/null 2>&1 || true
fi
exit 0