Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 52 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion PROJECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ MIT licensed.
fetch (`fetch.rs`), Markdown sections (`markdown.rs`), tree-sitter symbol
extraction for TypeScript, Python, Rust and Go (`extract.rs`), BM25
(`bm25.rs`), the per-version index cache (`index.rs`), and the three queries
(`query.rs`)
(`query.rs`), and embedding policy (`semantic.rs`, with the engine and
tokenizer from `sylphx-mcp-kit` 0.3)
- `crates/lockdocs`: the `lockdocs` binary (CLI, MCP stdio server, `setup`)
- `packages/lockdocs`: the npm launcher; `packages/npm/*`: native binaries
- `bench/`: version-sensitive questions, project pins, and the runner
Expand Down
2 changes: 1 addition & 1 deletion crates/lockdocs-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tree-sitter-rust = "0.24"
ureq = "3"
flate2 = "1"
tar = "0.4"
sha2 = "0.11"
sylphx-mcp-kit = { version = "0.3", default-features = false, features = ["embed", "search"] }
zip = { version = "8", default-features = false, features = ["deflate-flate2-zlib-rs"] }

[dev-dependencies]
Expand Down
5 changes: 1 addition & 4 deletions crates/lockdocs-core/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ use std::path::PathBuf;

/// `LOCKDOCS_CACHE`, else the OS cache directory, else a temp dir.
pub fn dir() -> PathBuf {
if let Some(p) = std::env::var_os("LOCKDOCS_CACHE").filter(|p| !p.is_empty()) {
return PathBuf::from(p);
}
dirs::cache_dir().unwrap_or_else(std::env::temp_dir).join("lockdocs")
mcp_kit::cache::root("LOCKDOCS_CACHE", "lockdocs", mcp_kit::cache::Fallback::Temp, mcp_kit::cache::Override::NonEmpty).expect("temporary cache fallback")
}

/// FNV-1a 64: stable across builds and platforms.
Expand Down
Loading
Loading