@rce-mcp/retrieval-core 0.1.1 → 0.1.2

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.
@@ -49,8 +49,9 @@ function nowIso() {
49
49
  function extensionToLanguage(path) {
50
50
  if (path.endsWith(".ts") || path.endsWith(".tsx"))
51
51
  return "typescript";
52
- if (path.endsWith(".js") || path.endsWith(".jsx"))
52
+ if (path.endsWith(".js") || path.endsWith(".jsx") || path.endsWith(".mjs") || path.endsWith(".cjs")) {
53
53
  return "javascript";
54
+ }
54
55
  if (path.endsWith(".py"))
55
56
  return "python";
56
57
  if (path.endsWith(".go"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rce-mcp/retrieval-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,21 +11,23 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@rce-mcp/contracts": "0.1.0",
15
- "@rce-mcp/data-plane": "0.1.0",
16
- "@rce-mcp/observability": "0.1.0",
14
+ "@anthropic-ai/claude-agent-sdk": "^0.2.42",
15
+ "@anthropic-ai/sdk": "^0.55.0",
16
+ "@rce-mcp/contracts": "0.1.1",
17
+ "@rce-mcp/data-plane": "0.1.1",
18
+ "@rce-mcp/observability": "0.1.1",
17
19
  "tree-sitter": "^0.22.4",
18
20
  "tree-sitter-go": "^0.23.4",
19
21
  "tree-sitter-javascript": "^0.25.0",
22
+ "tree-sitter-javascript-v023": "npm:tree-sitter-javascript@0.23.1",
20
23
  "tree-sitter-python": "^0.25.0",
24
+ "tree-sitter-python-v023": "npm:tree-sitter-python@0.23.6",
21
25
  "tree-sitter-typescript": "^0.23.2"
22
26
  },
23
27
  "devDependencies": {
24
28
  "pg-mem": "^3.0.5",
25
29
  "tree-sitter-go-v025": "npm:tree-sitter-go@0.25.0",
26
- "tree-sitter-javascript-v023": "npm:tree-sitter-javascript@0.23.1",
27
30
  "tree-sitter-javascript-v025": "npm:tree-sitter-javascript@0.25.0",
28
- "tree-sitter-python-v023": "npm:tree-sitter-python@0.23.6",
29
31
  "tree-sitter-python-v025": "npm:tree-sitter-python@0.25.0",
30
32
  "tree-sitter-v025": "npm:tree-sitter@0.25.0",
31
33
  "web-tree-sitter": "^0.26.5"
package/src/chunking.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import Parser from "tree-sitter";
2
2
  import Go from "tree-sitter-go";
3
- import JavaScript from "tree-sitter-javascript";
4
- import Python from "tree-sitter-python";
3
+ import JavaScriptV023 from "tree-sitter-javascript-v023";
4
+ import PythonV023 from "tree-sitter-python-v023";
5
5
  import TypeScript from "tree-sitter-typescript";
6
6
 
7
7
  export type ChunkingStrategy = "language_aware" | "sliding";
@@ -183,10 +183,11 @@ function loadParserLanguage(language: ParserLanguage): Parser.Language {
183
183
  return (TypeScript as unknown as { tsx: unknown }).tsx as Parser.Language;
184
184
  }
185
185
  if (language === "javascript" || language === "jsx") {
186
- return resolveTreeSitterLanguageHandle(JavaScript);
186
+ // Bun is currently most reliable with tree-sitter 0.23-compatible JS/Python grammars.
187
+ return resolveTreeSitterLanguageHandle(JavaScriptV023);
187
188
  }
188
189
  if (language === "python") {
189
- return resolveTreeSitterLanguageHandle(Python);
190
+ return resolveTreeSitterLanguageHandle(PythonV023);
190
191
  }
191
192
  return resolveTreeSitterLanguageHandle(Go);
192
193
  }