Skip to content

chore: remove two dead TS helpers from utils.ts - #447

Open
ajayrgb wants to merge 1 commit into
plmbr:mainfrom
ajayrgb:worktree-bridge-cse_01VeQeiFSafQrekqe5MxHwgy
Open

ajayrgb wants to merge 1 commit into
plmbr:mainfrom
ajayrgb:worktree-bridge-cse_01VeQeiFSafQrekqe5MxHwgy

Conversation

@ajayrgb

@ajayrgb ajayrgb commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • removeAnsiChars duplicated the strip-ansi dependency already used in src/index.ts; its one call site now uses stripAnsi instead
  • Added a jest mock for strip-ansi (mirrors the existing tiktoken mock) since the real package is ESM-only and breaks the CJS jest runner
  • Removed moveCodeSectionBoundaryMarkersToNewLine, which had no production callers — only its own unit test exercised it

Test plan

  • npx tsc --noEmit -p .
  • npx eslint . --ext .ts,.tsx
  • npx prettier --check
  • npx stylelint
  • jlpm test (414 passed)
  • pytest tests/ -q (1829 passed)

🤖 Generated with Claude Code

removeAnsiChars duplicated the strip-ansi dep already used elsewhere;
switch its one call site to that import instead. Add a jest mock for
strip-ansi since the real package is ESM-only and breaks the CJS test
runner. moveCodeSectionBoundaryMarkersToNewLine had no production
callers, only its own test.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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