From 7db2328b684072cc83d0a3542016e9315862d195 Mon Sep 17 00:00:00 2001 From: Parfii-bot Date: Wed, 22 Apr 2026 01:34:42 +0800 Subject: [PATCH] feat(hooks): session-end-dump calls kei-sleep-sync after ingest --- hooks/session-end-dump.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hooks/session-end-dump.sh b/hooks/session-end-dump.sh index 7483f66..9cfdecd 100755 --- a/hooks/session-end-dump.sh +++ b/hooks/session-end-dump.sh @@ -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