mirror of
https://github.com/akitaonrails/ai-memory.git
synced 2026-10-02 03:24:46 +08:00
The .sh and .ps1 script hooks cannot route server profiles, so a repository whose marker selects one now emits nothing from them. ai_memory_marker_qs appends a routed flag that ai_memory_post_hook and ai_memory_get_handoff refuse, which covers every script without a per-script check; the PowerShell library returns early from Invoke-AiMemoryHook. The walk matches the native one, and a `server`-only marker is a settings boundary in the shell parser too. The PowerShell guard is exercised under real PowerShell by a Windows-only test in the hooks crate (inherited selection, BOM, look-alike keys, the $HOME boundary with its control, past a checkout root outside home, current directory), and the shell suite pins on every platform that Invoke-AiMemoryHook consults it before building its query.