Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:42:05 +08:00
commit 2a050efe7f
17 changed files with 1342 additions and 0 deletions

23
hooks/install-deps.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Install MCP server and hooks dependencies on session start
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PLUGIN_ROOT="$(dirname "$SCRIPT_DIR")"
MCP_DIR="$PLUGIN_ROOT/mcp-servers/git-intelligence"
HOOKS_DIR="$PLUGIN_ROOT/hooks"
# Install MCP server dependencies
if [ ! -d "$MCP_DIR/node_modules" ]; then
cd "$MCP_DIR"
bun install --silent 2>/dev/null || bun install
fi
# Install hooks dependencies (for TypeScript types)
if [ ! -d "$HOOKS_DIR/node_modules" ]; then
cd "$HOOKS_DIR"
bun install --silent 2>/dev/null || bun install
fi
exit 0