mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
Addresses codex review feedback (P2). `resolve(__dirname, '../..')` breaks when `skills/understand/` is copied to a runtime skills directory whose parent is not the plugin checkout — exactly the case SKILL.md Phase 0 warns about and resolves via its multi-candidate $PLUGIN_ROOT search. This script now prefers $PLUGIN_ROOT from the env (validated via package.json presence) and falls back to the existing relative resolution. SKILL.md Phase 0.5 passes the env var in the invocation. Same latent pattern exists in scan-project / compute-batches / extract-import-map / extract-structure / build-fingerprints; hardening those is a separate concern (no behaviour change today for installs that already work). Refs #76 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>