You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace shell syntax in run() calls across 8 tools (#172)
run() uses execFileSync('git', args) — no shell interpretation.
Many tools were passing shell operators (pipes, redirects, 2>/dev/null)
and non-git commands (cat, wc, find, npm, npx, tsc, gh, tail) through
run(), which silently broke.
Changes:
- Add shell() helper to git.ts for commands needing shell interpretation
- verify-completion: use shell() for tsc/npm/build, readFileSync for pkg
- token-audit: use Node fs for wc -l/wc -c, shell() for tail, array args for git
- session-handoff: use shell() for command -v and gh pr list
- audit-workspace: use shell() for find|wc, array args for git diff
- sharpen-followup: use array args for git status
- scope-work: use array args for git status/diff, JS filtering for ls-files
- enrich-agent-task: rewrite findAreaFiles/findRelatedTests/getExamplePattern
to use array args + JS filtering instead of shell pipes
- sequence-tasks: use array args for git ls-files + JS slicing
Closes#172
0 commit comments