ECC/docs/zh-CN/commands
devin-ai-integration[bot] 3af4676e99
refactor: consolidate duplicated hook-root resolver into shared resolveEccRoot() (#2368) (#2410)
* fix(ci): resync lockfiles with package.json (eslint 10) + migrate yarn.lock to Yarn 4 format

package.json requires eslint@^10.6.0 but the committed locks pinned 9.39.2, so
npm ci aborted and Yarn 4 hardened mode rejected the stale v1-classic yarn.lock
(YN0028). Regenerate package-lock.json and rewrite yarn.lock in Yarn 4 (berry)
format so npm ci and immutable yarn installs both pass.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(ci): require clean probe exit for Windows shell/bash detection; add pyyaml dev dep

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* refactor: consolidate duplicated hook-root resolver into shared resolveEccRoot() (#2368)

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>

* fix(resolve-ecc-root): restore full env-unset discovery in inline resolver

Address Greptile review on #2410: when CLAUDE_PLUGIN_ROOT is unset the
delegating inline could only load the resolver module from ~/.claude,
returning ~/.claude without ever reaching the plugin/cache search. Restore
the old inline's discovery breadth (exact plugin roots + versioned cache)
Windows-safely (no spread, nested arrays, or escaped quotes), then delegate
the authoritative decision to resolveEccRoot(). Add regression tests for
plugin-subdir and versioned-cache bootstrap with env unset.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: affaan <affaan@itomarkets.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-03 20:01:17 -07:00
..
aside.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
auto-update.md refactor: consolidate duplicated hook-root resolver into shared resolveEccRoot() (#2368) (#2410) 2026-07-03 20:01:17 -07:00
build-fix.md docs(zh-CN): sync Chinese docs with latest upstream changes (#304) 2026-03-02 22:28:27 -08:00
checkpoint.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
claw.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
code-review.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
context-budget.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
cpp-build.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
cpp-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
cpp-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
devfleet.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
docs.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
e2e.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
eval.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
evolve.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
feature-dev.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
flutter-build.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
flutter-review.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
flutter-test.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
gan-build.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
gan-design.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
go-build.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
go-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
go-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
gradle-build.md docs(zh-CN): update 2026-03-13 17:45:44 +08:00
harness-audit.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
hookify-configure.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
hookify-help.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
hookify-list.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
hookify.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
instinct-export.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
instinct-import.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
instinct-status.md refactor: consolidate duplicated hook-root resolver into shared resolveEccRoot() (#2368) (#2410) 2026-07-03 20:01:17 -07:00
jira.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
kotlin-build.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
kotlin-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
kotlin-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
learn-eval.md docs: resolve markdownlint errors across translated docs 2026-04-05 14:41:27 -07:00
learn.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
loop-start.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
loop-status.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
model-route.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
multi-backend.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-execute.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-frontend.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-plan.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-workflow.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
orchestrate.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
plan.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
pm2.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
projects.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
promote.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
prompt-optimize.md docs(zh-CN): update 2026-03-13 17:45:44 +08:00
prp-commit.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-implement.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-plan.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-pr.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-prd.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prune.md fix(docs): correct zh-CN prune frontmatter 2026-03-28 23:23:51 -04:00
python-review.md docs: resolve markdownlint errors across translated docs 2026-04-05 14:41:27 -07:00
quality-gate.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
refactor-clean.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
resume-session.md docs: sync session storage paths across translations 2026-04-29 20:34:01 -04:00
review-pr.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
rules-distill.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
rust-build.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
rust-review.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
rust-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
santa-loop.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
save-session.md docs: sync session storage paths across translations 2026-04-29 20:34:01 -04:00
sessions.md refactor: consolidate duplicated hook-root resolver into shared resolveEccRoot() (#2368) (#2410) 2026-07-03 20:01:17 -07:00
setup-pm.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
skill-create.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
skill-health.md refactor: consolidate duplicated hook-root resolver into shared resolveEccRoot() (#2368) (#2410) 2026-07-03 20:01:17 -07:00
tdd.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
test-coverage.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
update-codemaps.md docs(zh-CN): sync Chinese docs with latest upstream changes (#304) 2026-03-02 22:28:27 -08:00
update-docs.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
verify.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00