Files
Understand-Anything/understand-anything-plugin
T
thejesh 83d3fb6e7a fix(skills): prefer $PLUGIN_ROOT over relative path in generate-ignore.mjs
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>
83d3fb6e7a ยท 2026-06-17 01:02:17 -07:00
History
..
2026-06-09 14:26:48 -07:00