mati 0.1.0

Engineering knowledge that survives turnover
Documentation
1
2
3
4
5
6
7
8
9
10
/// pre-compact.sh — session flush before compaction (M-09-E).
///
/// PreCompact — SYNCHRONOUS (must complete before returning).
/// Flushes session state so it survives context compaction.
pub const SCRIPT: &str = r#"#!/usr/bin/env bash
# mati pre-compact hook — session flush (M-09-E)
HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)" && export PATH="$HOOKS_DIR:$PATH"
cat > /dev/null
mati session-flush 2>/dev/null || true
"#;