contextl 1.2.21 → 1.2.23
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.
package/package.json
CHANGED
package/python/mcp_server.py
CHANGED
|
@@ -508,7 +508,7 @@ async def _handle_export_obsidian(args: dict) -> list[types.TextContent]:
|
|
|
508
508
|
def _run_export_obsidian(repo_path: str, output_dir: str) -> dict:
|
|
509
509
|
"""Uses cached graph — pipeline runs only on first call or after file changes."""
|
|
510
510
|
scan, repo_graph = _get_graph(repo_path)
|
|
511
|
-
vault_path = export_obsidian_vault(
|
|
511
|
+
vault_path = export_obsidian_vault(repo_path, output_dir)
|
|
512
512
|
|
|
513
513
|
return {
|
|
514
514
|
"repo": scan.root,
|
|
@@ -145,10 +145,6 @@ if __name__ == "__main__":
|
|
|
145
145
|
repo_path = sys.argv[1]
|
|
146
146
|
output_dir = sys.argv[2]
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
parse = parse_imports(scan)
|
|
150
|
-
repo_graph = build_graph(scan, parse)
|
|
151
|
-
|
|
152
|
-
vault_path = export_obsidian_vault(repo_graph, output_dir)
|
|
148
|
+
vault_path = export_obsidian_vault(repo_path, output_dir)
|
|
153
149
|
print(f"Obsidian Vault successfully generated at: {vault_path}")
|
|
154
150
|
print("Open this folder in Obsidian to view your codebase graph!")
|
package/python/query_engine.py
CHANGED
|
@@ -382,7 +382,7 @@ def query(
|
|
|
382
382
|
))
|
|
383
383
|
|
|
384
384
|
# Down-rank test files unless the user specifically searched for tests
|
|
385
|
-
is_test_query = "test" in
|
|
385
|
+
is_test_query = "test" in q.lower() or "spec" in q.lower()
|
|
386
386
|
from impact_analysis import _is_test_file
|
|
387
387
|
for r in results:
|
|
388
388
|
if _is_test_file(r.path) and not is_test_query:
|