codegraphcontext 0.4.2__py3-none-any.whl → 0.4.3__py3-none-any.whl

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.
@@ -81,13 +81,16 @@ async def get_graph(repo_path: Optional[str] = None, cypher_query: Optional[str]
81
81
  elif repo_path:
82
82
  repo_path = str(Path(repo_path).resolve())
83
83
  print(f"DEBUG: Fetching subgraph for: {repo_path}", flush=True)
84
+ # Get all nodes within the repository scope
84
85
  query = """
85
86
  MATCH (r:Repository {path: $repo_path})
86
87
  OPTIONAL MATCH (r)-[:CONTAINS*0..]->(n)
87
- WITH DISTINCT n
88
- WHERE n IS NOT NULL
89
- OPTIONAL MATCH (n)-[rel]->(m)
90
- RETURN n, rel, m
88
+ WITH DISTINCT r, COLLECT(DISTINCT n) as repo_nodes
89
+ UNWIND repo_nodes as node
90
+ OPTIONAL MATCH (node)-[rel]->(target)
91
+ WITH r, node, rel, target, repo_nodes
92
+ WHERE target IN repo_nodes OR target = r
93
+ RETURN node as n, rel, target as m
91
94
  """
92
95
  result = session.run(query, repo_path=repo_path)
93
96
  else:
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraphcontext
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: An MCP server that indexes local code into a graph database to provide context to AI assistants.
5
5
  Author-email: Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
6
6
  License: MIT License
7
7
 
8
- Copyright (c) 2025
8
+ Copyright (c) 2025-2026
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -165,7 +165,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
165
165
  ---
166
166
 
167
167
  ## Project Details
168
- - **Version:** 0.4.2
168
+ - **Version:** 0.4.3
169
169
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
170
170
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
171
171
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -89,7 +89,7 @@ codegraphcontext/utils/path_ignore.py,sha256=WPIcDmyAi6eL9692rPBQrUZunn5gHRb57nz
89
89
  codegraphcontext/utils/repo_path.py,sha256=2ydwYV4aK04eGPKqjhKMPZFZv7sNJitjig4hcl8cssw,1079
90
90
  codegraphcontext/utils/tree_sitter_manager.py,sha256=n8z45gxiOH_W1cbwe9Z7mvbB5gjGjUGRvV78JjftG_M,8993
91
91
  codegraphcontext/utils/visualize_graph.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
- codegraphcontext/viz/server.py,sha256=LUK3aHPpapZATG9c9ZeTsx3624bzy0w4rocms--VbWc,13155
92
+ codegraphcontext/viz/server.py,sha256=UThvOdqlRT3aA5_lhS32FLQlAZu-U9mhPWCHnGmFSI0,13393
93
93
  codegraphcontext/viz/dist/favicon.ico,sha256=AjhUxD_Eslt5XuSVHIAZ494Fk__rb5GLXR8qm0elfP4,1870
94
94
  codegraphcontext/viz/dist/index.html,sha256=g97sbeOQEOHA75sDelnPBEuzLfcaKGdH9DAQ7hfE6PU,1879
95
95
  codegraphcontext/viz/dist/placeholder.svg,sha256=ZLrfeqvaC5YwuHAg_7YJXLhYzLz2azVcKqCLEGOVTTs,3253
@@ -124,9 +124,9 @@ codegraphcontext/viz/dist/wasm/tree-sitter-typescript.wasm,sha256=hRVATc7tOOHthq
124
124
  codegraphcontext/viz/dist/wasm/tree-sitter.wasm,sha256=CCeVuI_hXktkBD-DW01xYPv5XoAYVRIqzJUJI5te-RY,196763
125
125
  codegraphcontext/viz/dist/wasm/web-tree-sitter.js,sha256=DIaCNqRylrT_PBVw8g4ImeSnhP9uXNe_ycOlUiVGPko,153666
126
126
  codegraphcontext/viz/dist/wasm/web-tree-sitter.wasm,sha256=CCeVuI_hXktkBD-DW01xYPv5XoAYVRIqzJUJI5te-RY,196763
127
- codegraphcontext-0.4.2.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
128
- codegraphcontext-0.4.2.dist-info/METADATA,sha256=2lvZnJhWuYSikZZsvR7UoLO3v0oPZO29J-917UPht4M,22108
129
- codegraphcontext-0.4.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
130
- codegraphcontext-0.4.2.dist-info/entry_points.txt,sha256=LCxWCWMshdvYGoHBPuQZ8C-e4CiNSHCLXofrNSGHkoE,103
131
- codegraphcontext-0.4.2.dist-info/top_level.txt,sha256=CBgc6LAPZIO5FS0nSYYkylDifHsZTIqw3Gf5UwDxeGI,17
132
- codegraphcontext-0.4.2.dist-info/RECORD,,
127
+ codegraphcontext-0.4.3.dist-info/licenses/LICENSE,sha256=rh8M-bJpQYJnw2vtRVgt0t7piMZXh5QzaKeNEI0vqqA,1061
128
+ codegraphcontext-0.4.3.dist-info/METADATA,sha256=G3DIqIwGaraVRtwqzeW0kLJKA5Mjkrr0XB9tdyurnHU,22113
129
+ codegraphcontext-0.4.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
130
+ codegraphcontext-0.4.3.dist-info/entry_points.txt,sha256=LCxWCWMshdvYGoHBPuQZ8C-e4CiNSHCLXofrNSGHkoE,103
131
+ codegraphcontext-0.4.3.dist-info/top_level.txt,sha256=CBgc6LAPZIO5FS0nSYYkylDifHsZTIqw3Gf5UwDxeGI,17
132
+ codegraphcontext-0.4.3.dist-info/RECORD,,
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025
3
+ Copyright (c) 2025-2026
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal