Skip to content

fix: report CLI result truncation - #1647

Open
danusha2345 wants to merge 1 commit into
colbymchenry:mainfrom
danusha2345:fix/1639-cli-truncation-metadata
Open

fix: report CLI result truncation#1647
danusha2345 wants to merge 1 commit into
colbymchenry:mainfrom
danusha2345:fix/1639-cli-truncation-metadata

Conversation

@danusha2345

Copy link
Copy Markdown
Contributor

Fixes #1639.

  • callers and callees JSON now include total, limit, and truncated; human output shows shown of total plus a widening hint.
  • query fetches one extra result to detect a cut. Its existing bare-array JSON stdout remains unchanged; a truncation notice is emitted on stderr, while human output gets the same notice on stdout.
  • Metadata is emitted unconditionally for callers/callees, including truncated: false for complete results.

Tests:

  • regression tests failed against the pre-fix build
  • npm run build
  • focused CLI tests (11 passed)
  • npm test (3055 passed, 187 skipped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant