Skip to content

feat: v1 technically#27

Merged
seatedro merged 36 commits intomasterfrom
ro/rlrulpmmvqsm
Dec 31, 2025
Merged

feat: v1 technically#27
seatedro merged 36 commits intomasterfrom
ro/rlrulpmmvqsm

Conversation

@seatedro
Copy link
Owner

No description provided.

- split monolithic src/ into focused crates:
  - glimpse-core: types, config, tokenizer, source detection
  - glimpse-fetch: git clone and url processing
  - glimpse-tui: file picker
  - glimpse (cli): binary, arg parsing, analyzer, output
- migrate analyzer tests (16 tests for pattern matching, excludes, includes)
- add AGENTS.md with development guidelines
- clean dependency graph with core as shared foundation
- remove crates/ directory, consolidate into src/
- core, fetch, tui, code become submodules of the library
- single Cargo.toml with all dependencies
- remove BackwardsCompatOutputFormat, use serde rename_all
- update imports: binary uses glimpse::, lib uses super::
- remove resolve.rs entirely (was doing O(files × calls) filesystem walks)
- simplify CallGraph::build to use index-only O(1) lookups
- add depth-limited traversal (default depth=1)
- remove debug logging from code subcommand

result: 23s → 24ms (~1000x faster)
- add Resolver with prioritized resolution: same-file → imports → global fallback
- capture call qualifiers in tree-sitter queries for future type-aware resolution
- add --strict flag to disable global name matching (reduces false positives)
- global fallback enabled by default for broader coverage
- add LspClient for LSP server communication (stdin/stdout JSON-RPC)
- add LspResolver for go-to-definition based call resolution
- support auto-download for rust-analyzer and clangd binaries
- support npm package installation (bun/npm) for pyright, tsserver
- support go install for gopls with GOBIN set to lsp directory
- install all LSP binaries locally in ~/.local/share/glimpse/lsp/
- add --precise flag to use LSP mode instead of heuristic resolution
- add CallGraph::build_precise() integrating LSP with fallback
- add comprehensive integration tests for all supported languages
- update registry.toml with lsp configs (npm_package, go_package)
@amanchoudhri
Copy link

where's ur pr description sir

@seatedro seatedro merged commit b157721 into master Dec 31, 2025
1 check failed
@seatedro seatedro deleted the ro/rlrulpmmvqsm branch December 31, 2025 09:04
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.

2 participants