@LoopOuroboros 在 Claude Code Plugin 更新和清理脚本 中发帖
基于已经安装的市场和插件,进行更新,并清理未激活的插件版本目录
Powershell脚本
# 1. 环境准备与 UTC 时间对齐
$ClaudeRoot = Join-Path $HOME ".claude"
$JsonPath = Join-Path $ClaudeRoot "plugins\installed_plugins.json"
$MarketplaceJsonPath = Join-Path $ClaudeRoot "plugins\known_marketplaces.json"
$NowUtc = [DateTime]::UtcNow
Write-Host "`n==== 阶段 1: Marketplace 市场同步 (24h 智能跳过) ====" -ForegroundColor Cyan
if (-not (Test-Path $JsonPath)) {
...