cortex-local 2.7.0__tar.gz → 2.7.1__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.7.0 → cortex_local-2.7.1}/PKG-INFO +1 -1
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/godot.py +3 -1
- {cortex_local-2.7.0 → cortex_local-2.7.1}/.gitignore +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/README.md +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/__init__.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/cli.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/config.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/__init__.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/cache.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/chunker.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/code_graph.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/formatters.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/global_graph.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/graph.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/notes_graph.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/roslyn_analyzer.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/roslyn_tool/CortexAnalyzer.csproj +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/roslyn_tool/Program.cs +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/db.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/embedder.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/indexer.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/mcp_server.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/state.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/watcher.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/hatch_build.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/pyproject.toml +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/tests/test_imports.py +0 -0
- {cortex_local-2.7.0 → cortex_local-2.7.1}/tests/test_stdio_init.py +0 -0
|
@@ -19,7 +19,8 @@ GODOT_SUMMARY_EXTS = {".tscn", ".tres", ".godot"}
|
|
|
19
19
|
|
|
20
20
|
# ── res:// / uid:// resolution ───────────────────────────────────────────────
|
|
21
21
|
|
|
22
|
-
_SECTION_RE = re.compile(r'^\[(\w+)([^\]]*)\]\
|
|
22
|
+
_SECTION_RE = re.compile(r'^\[(\w+)([^\]\n]*)\][ \t]*$', re.MULTILINE) # single line: no cross-line backtracking
|
|
23
|
+
MAX_SUMMARY_INPUT = 2_000_000 # chars; larger scenes/resources are truncated before parsing
|
|
23
24
|
_ATTR_RE = re.compile(r'(\w+)=("([^"]*)"|[^\s\]]+)')
|
|
24
25
|
|
|
25
26
|
|
|
@@ -255,6 +256,7 @@ def summarize_project(text: str) -> str:
|
|
|
255
256
|
|
|
256
257
|
|
|
257
258
|
def summarize(path: Path, text: str) -> str:
|
|
259
|
+
text = text[:MAX_SUMMARY_INPUT]
|
|
258
260
|
if path.suffix == ".tscn":
|
|
259
261
|
return summarize_tscn(text)
|
|
260
262
|
if path.suffix == ".tres":
|
|
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
|
|
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
|