cortex-local 2.3.8__tar.gz → 2.4.0__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.3.8 → cortex_local-2.4.0}/PKG-INFO +1 -1
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/formatters.py +5 -4
- {cortex_local-2.3.8 → cortex_local-2.4.0}/README.md +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/__init__.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/cli.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/config.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/__init__.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/cache.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/chunker.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/code_graph.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/global_graph.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/graph.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/notes_graph.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/roslyn_analyzer.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/roslyn_tool/CortexAnalyzer.csproj +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/core/roslyn_tool/Program.cs +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/embedder.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/indexer.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/mcp_server.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/state.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/cortex/watcher.py +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/pyproject.toml +0 -0
- {cortex_local-2.3.8 → cortex_local-2.4.0}/tests/test_imports.py +0 -0
|
@@ -53,13 +53,14 @@ def format_code_results(deduped) -> str:
|
|
|
53
53
|
|
|
54
54
|
def fmt_stats(v: str, stats: dict, current: bool = False) -> str:
|
|
55
55
|
"""Format stats block for one version. Safe for both server and local stats dicts."""
|
|
56
|
-
total_searches = stats.get("search_code_calls", 0) + stats.get("search_notes_calls", 0)
|
|
56
|
+
total_searches = stats.get("search_code_calls", 0) + stats.get("search_notes_calls", 0) + stats.get("search_all_calls", 0)
|
|
57
57
|
ppr_rate = (
|
|
58
58
|
f"{stats['ppr_fires'] / stats['search_notes_calls'] * 100:.1f}%"
|
|
59
59
|
if stats.get("search_notes_calls", 0) > 0 else "—"
|
|
60
60
|
)
|
|
61
61
|
avg_ppr = round(stats["ppr_results_added"] / stats["ppr_fires"], 1) if stats.get("ppr_fires", 0) > 0 else "—"
|
|
62
|
-
|
|
62
|
+
cold_loads = stats.get("graph_cache_cold_loads", 0)
|
|
63
|
+
total_cache = stats.get("graph_cache_hits", 0) + stats.get("graph_cache_misses", 0) + cold_loads
|
|
63
64
|
cache_rate = f"{stats['graph_cache_hits'] / total_cache * 100:.1f}%" if total_cache > 0 else "—"
|
|
64
65
|
avg_lift = round(stats["centrality_lift_total"] / stats["centrality_lift_count"], 4) if stats.get("centrality_lift_count", 0) > 0 else 0
|
|
65
66
|
total_results = stats.get("total_results_code", 0) + stats.get("total_results_notes", 0)
|
|
@@ -86,7 +87,7 @@ def fmt_stats(v: str, stats: dict, current: bool = False) -> str:
|
|
|
86
87
|
lines.append(f" period: {period}")
|
|
87
88
|
|
|
88
89
|
lines += [
|
|
89
|
-
f" searches: code={stats.get('search_code_calls', 0)} notes={stats.get('search_notes_calls', 0)} total={total_searches} (notes {notes_pct})",
|
|
90
|
+
f" searches: code={stats.get('search_code_calls', 0)} notes={stats.get('search_notes_calls', 0)} all={stats.get('search_all_calls', 0)} total={total_searches} (notes {notes_pct})",
|
|
90
91
|
f" results: code={stats.get('total_results_code', 0)} notes={stats.get('total_results_notes', 0)} avg/search={avg_results}",
|
|
91
92
|
f" centrality lift avg: {avg_lift} (across {stats.get('centrality_lift_count', 0)} results)",
|
|
92
93
|
f" PPR: {stats.get('ppr_fires', 0)} fires ({ppr_rate} of note searches) · +{stats.get('ppr_results_added', 0)} results · avg {avg_ppr}/fire",
|
|
@@ -107,7 +108,7 @@ def fmt_stats(v: str, stats: dict, current: bool = False) -> str:
|
|
|
107
108
|
|
|
108
109
|
lines += [
|
|
109
110
|
f" context injected: notes={_k(ctx_notes)} code={_k(ctx_code)} total={_k(ctx_total)} tokens (~chars/4 est.)",
|
|
110
|
-
f" graph cache: {cache_rate} ({stats.get('graph_cache_hits', 0)}/{total_cache})",
|
|
111
|
+
f" graph cache: {cache_rate} ({stats.get('graph_cache_hits', 0)}/{total_cache}) cold={cold_loads}",
|
|
111
112
|
f" embed cache skipped: notes={stats.get('embed_cache_notes', 0)} code={stats.get('embed_cache_code', 0)}",
|
|
112
113
|
f" reindexes: {stats.get('reindex_count', 0)}",
|
|
113
114
|
]
|
|
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
|