Compare commits
1 Commits
87676e0198
...
90f19dfc0f
| Author | SHA1 | Date | |
|---|---|---|---|
| 90f19dfc0f |
@@ -10,6 +10,19 @@ PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(dirname "$(dirname "$(realpath "$0")")")}"
|
|||||||
# Marketplace root is 2 levels up from plugin root (plugins/projman -> .)
|
# Marketplace root is 2 levels up from plugin root (plugins/projman -> .)
|
||||||
MARKETPLACE_ROOT="$(dirname "$(dirname "$PLUGIN_ROOT")")"
|
MARKETPLACE_ROOT="$(dirname "$(dirname "$PLUGIN_ROOT")")"
|
||||||
VENV_REPAIR_SCRIPT="$MARKETPLACE_ROOT/scripts/venv-repair.sh"
|
VENV_REPAIR_SCRIPT="$MARKETPLACE_ROOT/scripts/venv-repair.sh"
|
||||||
|
PLUGIN_CACHE="$HOME/.claude/plugins/cache/leo-claude-mktplace"
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Clear stale plugin cache (MUST run before MCP servers load)
|
||||||
|
# ============================================================================
|
||||||
|
# The cache at ~/.claude/plugins/cache/ holds versioned .mcp.json files.
|
||||||
|
# After marketplace updates, cached configs may point to old paths.
|
||||||
|
# Clearing forces Claude to read fresh configs from installed marketplace.
|
||||||
|
|
||||||
|
if [[ -d "$PLUGIN_CACHE" ]]; then
|
||||||
|
rm -rf "$PLUGIN_CACHE"
|
||||||
|
# Don't output anything - this should be silent and automatic
|
||||||
|
fi
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
# Auto-repair MCP venvs (runs before other checks)
|
# Auto-repair MCP venvs (runs before other checks)
|
||||||
|
|||||||
Reference in New Issue
Block a user