Skip to content

fix(cli): performance fixes and correctness improvements #73

Description

@jdmanring

Summary

Multiple CLI performance and correctness fixes:

  • L-01: Removed spawnWrapper no-op re-export
  • L-02: Merged processUtils into relaunch
  • L-03: Fixed errors.ts never-resolving promise pattern
  • L-04: Used ANSI escape for clearScreen instead of console.clear
  • L-05: Deduplicated apiPreconnect default URLs
  • L-06: Removed Object.freeze in CommandService
  • L-07: Fixed sessionPaths off-by-one in insertRecentFile
  • L-10: Replaced O(n) queue.shift() with splice(0) in flush
  • L-11,L-12: Used Object.fromEntries for env filtering, removed unused param

Files Changed

  • packages/cli/src/utils/*.ts (multiple files)
  • packages/cli/src/services/CommandService.ts

Type of Change

  • Bug fix
  • Performance improvement
  • Refactor
  • New feature

Testing

  • Unit tests pass
  • Integration tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions