mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-07-02 04:51:26 +08:00
6f01d26420
The inline node -e resolver blob was duplicated ~60x across hooks.json, command docs, and translations. Each copy inlined the full ~700-char plugin-root search using a spread over nested array literals (p.join(d,'plugins',...s) over [['ecc'],...]), which breaks Windows hook execution due to shell quoting (#2368). Collapse every copy to a 250-char locator that loads the committed resolve-ecc-root module and delegates to resolveEccRoot() — no spread, no nested array literals, no escaped double quotes. The real search logic now lives in one tested module. Also route session-start-bootstrap.js through resolveEccRoot() instead of its own duplicated reimplementation, and fix the auto-update.md 'marketplace' (singular) typo along the way. Guard tests updated: discovery behavior is asserted against resolveEccRoot(); the inline is asserted to delegate and to contain no Windows-fragile constructs. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1.6 KiB
1.6 KiB
description, disable-model-invocation
| description | disable-model-invocation |
|---|---|
| 最新のECCリポジトリ変更をプルし、現在の管理対象ターゲットを再インストールします。 | true |
自動更新
ECCをアップストリームリポジトリから更新し、元のインストール状態リクエストを使用して現在のコンテキストの管理対象インストールを再生成します。
使い方
# 何も変更せずに更新をプレビュー
ECC_ROOT="${CLAUDE_PLUGIN_ROOT:-$(node -e "var r=(function(){var p=require('path'),o=require('os');var e=process.env.CLAUDE_PLUGIN_ROOT;var b=(e&&e.trim())?e.trim():p.join(o.homedir(),'.claude');try{return require(p.join(b,'scripts','lib','resolve-ecc-root')).resolveEccRoot()}catch(x){return b}})();console.log(r)")}"
node "$ECC_ROOT/scripts/auto-update.js" --dry-run
# 現在のプロジェクトのCursor管理ファイルのみ更新
node "$ECC_ROOT/scripts/auto-update.js" --target cursor
# ECCリポジトリルートを明示的に上書き
node "$ECC_ROOT/scripts/auto-update.js" --repo-root /path/to/everything-claude-code
ノート
- このコマンドは記録されたインストール状態リクエストを使用し、最新のリポジトリ変更をプルした後に
install-apply.jsを再実行します。 - 再インストールは意図的です:
repair.jsが古い操作から安全に再構築できないアップストリームの名前変更や削除を処理します。 - 何も変更する前に再構築された再インストール計画を確認したい場合は、先に
--dry-runを使用してください。