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.
Files changed (28) hide show
  1. {cortex_local-2.7.0 → cortex_local-2.7.1}/PKG-INFO +1 -1
  2. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/godot.py +3 -1
  3. {cortex_local-2.7.0 → cortex_local-2.7.1}/.gitignore +0 -0
  4. {cortex_local-2.7.0 → cortex_local-2.7.1}/README.md +0 -0
  5. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/__init__.py +0 -0
  6. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/cli.py +0 -0
  7. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/config.py +0 -0
  8. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/__init__.py +0 -0
  9. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/cache.py +0 -0
  10. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/chunker.py +0 -0
  11. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/code_graph.py +0 -0
  12. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/formatters.py +0 -0
  13. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/global_graph.py +0 -0
  14. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/graph.py +0 -0
  15. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/notes_graph.py +0 -0
  16. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/roslyn_analyzer.py +0 -0
  17. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/roslyn_tool/CortexAnalyzer.csproj +0 -0
  18. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/core/roslyn_tool/Program.cs +0 -0
  19. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/db.py +0 -0
  20. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/embedder.py +0 -0
  21. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/indexer.py +0 -0
  22. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/mcp_server.py +0 -0
  23. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/state.py +0 -0
  24. {cortex_local-2.7.0 → cortex_local-2.7.1}/cortex/watcher.py +0 -0
  25. {cortex_local-2.7.0 → cortex_local-2.7.1}/hatch_build.py +0 -0
  26. {cortex_local-2.7.0 → cortex_local-2.7.1}/pyproject.toml +0 -0
  27. {cortex_local-2.7.0 → cortex_local-2.7.1}/tests/test_imports.py +0 -0
  28. {cortex_local-2.7.0 → cortex_local-2.7.1}/tests/test_stdio_init.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cortex-local
3
- Version: 2.7.0
3
+ Version: 2.7.1
4
4
  Summary: Local semantic search MCP server — notes + code, embedded Qdrant, fastembed
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: click>=8.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+)([^\]]*)\]\s*$', re.MULTILINE)
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