cortex-local 2.2.1__tar.gz → 2.2.2__tar.gz
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.
- {cortex_local-2.2.1 → cortex_local-2.2.2}/PKG-INFO +1 -1
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/chunker.py +21 -3
- {cortex_local-2.2.1 → cortex_local-2.2.2}/README.md +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/__init__.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/cli.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/config.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/__init__.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/cache.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/code_graph.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/formatters.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/global_graph.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/graph.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/core/notes_graph.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/embedder.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/indexer.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/mcp_server.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/state.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/cortex/watcher.py +0 -0
- {cortex_local-2.2.1 → cortex_local-2.2.2}/pyproject.toml +0 -0
|
@@ -7,14 +7,14 @@ from pathlib import Path
|
|
|
7
7
|
|
|
8
8
|
REPOS_DIR = Path(os.environ.get("REPOS_DIR", "/tmp/repos"))
|
|
9
9
|
|
|
10
|
-
CODE_EXTS = {".js", ".ts", ".tsx", ".jsx", ".svelte", ".py", ".java", ".go", ".rs", ".css", ".html", ".kt", ".kts", ".gd", ".yml", ".yaml"}
|
|
11
|
-
SKIP_DIRS = {"node_modules", ".git", "dist", "build", ".next", ".svelte-kit", "__pycache__", ".gradle", "target"}
|
|
10
|
+
CODE_EXTS = {".js", ".ts", ".tsx", ".jsx", ".svelte", ".py", ".java", ".go", ".rs", ".css", ".html", ".kt", ".kts", ".gd", ".yml", ".yaml", ".cs"}
|
|
11
|
+
SKIP_DIRS = {"node_modules", ".git", "dist", "build", ".next", ".svelte-kit", "__pycache__", ".gradle", "target", "bin", "obj"}
|
|
12
12
|
LANG_MAP = {
|
|
13
13
|
".js": "javascript", ".ts": "typescript", ".tsx": "typescript",
|
|
14
14
|
".jsx": "javascript", ".svelte": "svelte", ".py": "python",
|
|
15
15
|
".java": "java", ".go": "go", ".rs": "rust", ".css": "css", ".html": "html",
|
|
16
16
|
".kt": "kotlin", ".kts": "kotlin", ".gd": "gdscript",
|
|
17
|
-
".yml": "yaml", ".yaml": "yaml",
|
|
17
|
+
".yml": "yaml", ".yaml": "yaml", ".cs": "csharp",
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
def _is_excluded(rel: str, patterns: list) -> bool:
|
|
@@ -97,6 +97,15 @@ _FRAMEWORK_IMPORTS = [
|
|
|
97
97
|
("use actix", "actix"),
|
|
98
98
|
("use axum", "axum"),
|
|
99
99
|
("use tokio", "tokio"),
|
|
100
|
+
# C#
|
|
101
|
+
("using Microsoft.AspNetCore", "aspnetcore"),
|
|
102
|
+
("using Microsoft.Extensions", "aspnetcore"),
|
|
103
|
+
("using Microsoft.EntityFrameworkCore", "entityframework"),
|
|
104
|
+
("using Newtonsoft.Json", "newtonsoft"),
|
|
105
|
+
("using System.Text.Json", "system-text-json"),
|
|
106
|
+
("using Xunit", "xunit"),
|
|
107
|
+
("using NUnit.Framework", "nunit"),
|
|
108
|
+
("using Microsoft.Azure", "azure-sdk"),
|
|
100
109
|
]
|
|
101
110
|
|
|
102
111
|
try:
|
|
@@ -124,6 +133,15 @@ try:
|
|
|
124
133
|
".kt": {"function_declaration", "class_declaration", "object_declaration"},
|
|
125
134
|
".kts": {"function_declaration", "class_declaration", "object_declaration"},
|
|
126
135
|
}
|
|
136
|
+
try:
|
|
137
|
+
import tree_sitter_c_sharp as _tscs
|
|
138
|
+
_TS_LANGUAGES[".cs"] = Language(_tscs.language())
|
|
139
|
+
_TS_SEMANTIC[".cs"] = {
|
|
140
|
+
"method_declaration", "class_declaration", "interface_declaration",
|
|
141
|
+
"constructor_declaration", "struct_declaration", "enum_declaration",
|
|
142
|
+
}
|
|
143
|
+
except Exception:
|
|
144
|
+
pass
|
|
127
145
|
_TS_AVAILABLE = True
|
|
128
146
|
except Exception:
|
|
129
147
|
_TS_AVAILABLE = False
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|