mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 22:58:02 +00:00
Review findings from /simplify:
- Replace execSync('diff -r') with in-process tree compare. Removes the
POSIX diff dependency, eliminates the temp-dir dance, and yields a
structured drift list (changed/missing/extra per path) instead of a
2000-char-truncated blob.
- Use fileURLToPath for __dirname so paths work on Windows.
- Replace existsSync+statSync TOCTOU with a single statSync in try/catch,
and fix the error message for the non-directory case.
- Switch readdirSync to { withFileTypes: true } to avoid per-entry
statSync when scanning for extras.
- lefthook: exclude packages/codex-plugin/skills/** from the
codex-plugin-sync glob. Without this, editing the built copy (e.g.
during a conflict resolution) would trigger the hook to rebuild and
overwrite the user's edit.