Files
hyperframes/packages
James d04e02ddd0 refactor(codex-plugin): portable drift check + lefthook cycle guard
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.
2026-04-21 19:23:47 +00:00
..
2026-04-20 12:40:27 -07:00