Skip to content

fix(#302): remove shell syntax from run() calls in 4 more tools#304

Open
TerminalGravity wants to merge 1 commit intomainfrom
fix/shell-syntax-302-batch3
Open

fix(#302): remove shell syntax from run() calls in 4 more tools#304
TerminalGravity wants to merge 1 commit intomainfrom
fix/shell-syntax-302-batch3

Conversation

@TerminalGravity
Copy link
Collaborator

Fixes the remaining files from #302.

Replaces shell syntax (pipes, redirects, 2>/dev/null) passed to run() with proper array args and Node.js equivalents in:

  • token-audit.ts — Node fs for line/byte counting and tail reads
  • enrich-agent-task.ts — filter git ls-files output in JS instead of grep/head pipes
  • clarify-intent.tsexecFileSync for tsc, Node fs for finding test files
  • audit-workspace.ts — array args for git diff, Node fs for counting test files

scan-sessions.ts was already clean (uses fs directly, not run()).

Together with #301 and #303, this completes the fix for #302.

  • tsc --noEmit clean
  • ✅ All 43 tests pass

Replace shell syntax (pipes, redirects, 2>/dev/null) passed to run()
with proper array args and Node.js equivalents:

- token-audit: use Node fs for line/byte counting and tail reads
- enrich-agent-task: filter git ls-files output in JS instead of grep/head pipes
- clarify-intent: use execFileSync for tsc, Node fs for finding test files
- audit-workspace: use array args for git diff, Node fs for counting test files

scan-sessions.ts was already clean (uses fs directly, not run()).

Closes the remaining files from #302.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant