Skip to content

feat: "references" repos in local projects#187

Merged
bmdavis419 merged 3 commits intomainfrom
davis/local-clone
Feb 18, 2026
Merged

feat: "references" repos in local projects#187
bmdavis419 merged 3 commits intomainfrom
davis/local-clone

Conversation

@bmdavis419
Copy link
Collaborator

@bmdavis419 bmdavis419 commented Feb 18, 2026

Greptile Summary

Added btca reference command to clone git repositories into ./references/<repo-name> for use as read-only reference context. Also refactored SSE stream parsing to properly handle edge cases where data chunks are split across network boundaries.

Key changes:

  • New reference command clones repos and adds them to .git/info/exclude automatically
  • Improved SSE parser handles split chunks and delayed blank-line terminators
  • Error handling in ask command now throws proper BtcaError instead of just logging
  • Comprehensive test coverage added for all new functionality
  • Documentation updated in both README and docs site

Confidence Score: 5/5

  • Safe to merge - well-tested feature addition with no breaking changes
  • New feature is self-contained, existing commands unchanged, comprehensive tests added, follows project style guide, and documentation is complete
  • No files require special attention

Important Files Changed

Filename Overview
apps/cli/src/commands/reference.ts New command to clone reference repos into ./references/ with git exclude support
apps/cli/src/client/stream.ts Refactored SSE parser to handle split chunks and edge cases correctly
apps/cli/src/commands/ask.ts Extracted error handling to streamErrorToBtcaError helper, throws instead of logging

Last reviewed commit: 582b44a

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@bmdavis419 bmdavis419 changed the title first draft feat: "references" repos in local projects Feb 18, 2026
@bmdavis419 bmdavis419 marked this pull request as ready for review February 18, 2026 23:25
@bmdavis419 bmdavis419 merged commit daa1626 into main Feb 18, 2026
3 of 5 checks passed
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