chore: import upstream snapshot with attribution
CI / integration tests (3.13) (push) Failing after 1s
Commit lint / pull request title (push) Has been skipped
Docs / links (push) Failing after 1s
CI / unit tests (3.13) (push) Failing after 1s
CI / lint (push) Failing after 1s
CI / integration tests (push) Failing after 1s
CI / package build (push) Failing after 1s
Commit lint / commit messages (push) Failing after 1s
CI / unit tests (push) Failing after 1s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:24:24 +08:00
commit 6c9c7fe7f3
737 changed files with 184542 additions and 0 deletions
@@ -0,0 +1,14 @@
#!/bin/bash
# EverMem SessionStart Hook Wrapper
# Ensures npm dependencies are installed before running the hook
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PLUGIN_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# Check if SDK is installed, if not install it silently
if [ ! -d "$PLUGIN_ROOT/node_modules/@anthropic-ai/claude-agent-sdk" ]; then
(cd "$PLUGIN_ROOT" && npm install --silent 2>/dev/null) || true
fi
# Run the actual hook script, passing stdin through
exec node "$SCRIPT_DIR/session-context.js"