(from_hook: bool)
| 741 | } |
| 742 | |
| 743 | fn compaction_trigger(from_hook: bool) -> &'static str { |
| 744 | // In current AgentHarness call sites, true is the explicit `force_compact` path used by |
| 745 | // `/compact`; false is the threshold-based automatic compaction path. |
| 746 | if from_hook { "manual" } else { "auto" } |
| 747 | } |
| 748 | |
| 749 | fn env_for(payload: &HookPayload, payload_path: &Path) -> BTreeMap<String, String> { |
| 750 | let mut env = BTreeMap::new(); |