Refactor: Update stderr-test-hook to user-message-hook and improve path handling

This commit is contained in:
Alex Newman
2025-10-27 00:04:26 -04:00
parent 15c55a57a3
commit ea54a03fae
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env node
import{execSync as e}from"child_process";try{let o=e("node ~/.claude/plugins/marketplaces/thedotmack/plugin/scripts/context-hook.js --colors",{encoding:"utf8"});console.error(`
import{execSync as e}from"child_process";import{join as r}from"path";import{homedir as n}from"os";try{let o=r(n(),".claude","plugins","marketplaces","thedotmack","plugin","scripts","context-hook.js"),t=e(`node "${o}" --colors`,{encoding:"utf8"});console.error(`
\u{1F4DD} Claude-Mem Context Loaded
\u2139\uFE0F Note: This appears as stderr but is informational only
`+o)}catch(o){console.error(`\u274C Failed to load context display: ${o}`)}process.exit(3);
`+t)}catch(o){console.error(`\u274C Failed to load context display: ${o}`)}process.exit(3);