contextl 1.2.27 → 1.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contextl",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
4
4
  "description": "contextl — finds the most relevant files in your codebase for any change request. MCP server for AI coding agents.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -65,9 +65,10 @@ class RankedFile:
65
65
 
66
66
 
67
67
  def _tokenize(text: str) -> list[str]:
68
- """Lowercase, split on non-alphanumeric, remove stop words."""
68
+ """Lowercase, split on non-alphanumeric, remove stop words, deduplicate."""
69
69
  tokens = re.findall(r"[a-z0-9]+", text.lower())
70
- return [t for t in tokens if t not in STOP_WORDS and len(t) > 1]
70
+ # Deduplicate while preserving order
71
+ return list(dict.fromkeys(t for t in tokens if t not in STOP_WORDS and len(t) > 1))
71
72
 
72
73
 
73
74
  def _path_tokens(path: str) -> list[str]:
package/requirements.txt CHANGED
@@ -8,3 +8,5 @@ tree-sitter-java>=0.22.0
8
8
  tree-sitter-rust>=0.22.0
9
9
  tree-sitter-go>=0.22.0
10
10
  tree-sitter-cpp>=0.22.0
11
+ numpy
12
+ scipy