codegraphcontext 0.3.5__tar.gz → 0.3.7__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 (86) hide show
  1. {codegraphcontext-0.3.5/src/codegraphcontext.egg-info → codegraphcontext-0.3.7}/PKG-INFO +4 -4
  2. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/README.md +2 -2
  3. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/pyproject.toml +2 -2
  4. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/setup_wizard.py +6 -0
  5. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/code_finder.py +13 -3
  6. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7/src/codegraphcontext.egg-info}/PKG-INFO +4 -4
  7. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext.egg-info/requires.txt +1 -1
  8. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/LICENSE +0 -0
  9. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/MANIFEST.in +0 -0
  10. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/setup.cfg +0 -0
  11. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/__init__.py +0 -0
  12. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/__main__.py +0 -0
  13. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/__init__.py +0 -0
  14. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/cli_helpers.py +0 -0
  15. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/config_manager.py +0 -0
  16. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/main.py +0 -0
  17. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/registry_commands.py +0 -0
  18. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/setup_macos.py +0 -0
  19. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/cli/visualizer.py +0 -0
  20. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/__init__.py +0 -0
  21. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/bundle_registry.py +0 -0
  22. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/cgc_bundle.py +0 -0
  23. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/database.py +0 -0
  24. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/database_falkordb.py +0 -0
  25. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/database_falkordb_remote.py +0 -0
  26. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/database_kuzu.py +0 -0
  27. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/falkor_worker.py +0 -0
  28. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/jobs.py +0 -0
  29. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/core/watcher.py +0 -0
  30. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/prompts.py +0 -0
  31. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/server.py +0 -0
  32. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tool_definitions.py +0 -0
  33. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/__init__.py +0 -0
  34. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/advanced_language_query_tool.py +0 -0
  35. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/graph_builder.py +0 -0
  36. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/handlers/analysis_handlers.py +0 -0
  37. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/handlers/indexing_handlers.py +0 -0
  38. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/handlers/management_handlers.py +0 -0
  39. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/handlers/query_handlers.py +0 -0
  40. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/handlers/watcher_handlers.py +0 -0
  41. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/c.py +0 -0
  42. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/cpp.py +0 -0
  43. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/csharp.py +0 -0
  44. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/dart.py +0 -0
  45. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/elixir.py +0 -0
  46. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/go.py +0 -0
  47. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/haskell.py +0 -0
  48. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/java.py +0 -0
  49. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/javascript.py +0 -0
  50. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/kotlin.py +0 -0
  51. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/perl.py +0 -0
  52. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/php.py +0 -0
  53. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/python.py +0 -0
  54. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/ruby.py +0 -0
  55. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/rust.py +0 -0
  56. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/scala.py +0 -0
  57. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/swift.py +0 -0
  58. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/typescript.py +0 -0
  59. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/languages/typescriptjsx.py +0 -0
  60. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/package_resolver.py +0 -0
  61. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/c_toolkit.py +0 -0
  62. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/cpp_toolkit.py +0 -0
  63. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/csharp_toolkit.py +0 -0
  64. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/dart_toolkit.py +0 -0
  65. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/go_toolkit.py +0 -0
  66. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/haskell_toolkit.py +0 -0
  67. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/java_toolkit.py +0 -0
  68. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/javascript_toolkit.py +0 -0
  69. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/perl_toolkit.py +0 -0
  70. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/python_toolkit.py +0 -0
  71. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/ruby_toolkit.py +0 -0
  72. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/rust_toolkit.py +0 -0
  73. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/scala_toolkit.py +0 -0
  74. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/swift_toolkit.py +0 -0
  75. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/query_tool_languages/typescript_toolkit.py +0 -0
  76. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/scip_indexer.py +0 -0
  77. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/scip_pb2.py +0 -0
  78. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/tools/system.py +0 -0
  79. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/utils/debug_log.py +0 -0
  80. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/utils/tree_sitter_manager.py +0 -0
  81. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/utils/visualize_graph.py +0 -0
  82. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext/viz/server.py +0 -0
  83. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext.egg-info/SOURCES.txt +0 -0
  84. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext.egg-info/dependency_links.txt +0 -0
  85. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext.egg-info/entry_points.txt +0 -0
  86. {codegraphcontext-0.3.5 → codegraphcontext-0.3.7}/src/codegraphcontext.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraphcontext
3
- Version: 0.3.5
3
+ Version: 0.3.7
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
@@ -41,7 +41,7 @@ Requires-Dist: watchdog>=3.0.0
41
41
  Requires-Dist: stdlibs>=2023.11.18
42
42
  Requires-Dist: typer[all]>=0.9.0
43
43
  Requires-Dist: rich>=13.7.0
44
- Requires-Dist: inquirerpy>=0.3.5
44
+ Requires-Dist: inquirerpy>=0.3.4
45
45
  Requires-Dist: python-dotenv>=1.0.0
46
46
  Requires-Dist: tree-sitter>=0.21.0
47
47
  Requires-Dist: tree-sitter-language-pack>=0.6.0
@@ -162,7 +162,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
162
162
  ---
163
163
 
164
164
  ## Project Details
165
- - **Version:** 0.3.5
165
+ - **Version:** 0.3.7
166
166
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
167
167
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
168
168
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -249,7 +249,7 @@ _If you’re using CodeGraphContext in your project, feel free to open a PR and
249
249
  - `stdlibs>=2023.11.18`
250
250
  - `typer[all]>=0.9.0`
251
251
  - `rich>=13.7.0`
252
- - `inquirerpy>=0.3.5`
252
+ - `inquirerpy>=0.3.7`
253
253
  - `python-dotenv>=1.0.0`
254
254
  - `tree-sitter>=0.21.0`
255
255
  - `tree-sitter-language-pack>=0.6.0`
@@ -96,7 +96,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
96
96
  ---
97
97
 
98
98
  ## Project Details
99
- - **Version:** 0.3.5
99
+ - **Version:** 0.3.7
100
100
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
101
101
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
102
102
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -183,7 +183,7 @@ _If you’re using CodeGraphContext in your project, feel free to open a PR and
183
183
  - `stdlibs>=2023.11.18`
184
184
  - `typer[all]>=0.9.0`
185
185
  - `rich>=13.7.0`
186
- - `inquirerpy>=0.3.5`
186
+ - `inquirerpy>=0.3.7`
187
187
  - `python-dotenv>=1.0.0`
188
188
  - `tree-sitter>=0.21.0`
189
189
  - `tree-sitter-language-pack>=0.6.0`
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codegraphcontext"
3
- version = "0.3.5"
3
+ version = "0.3.7"
4
4
  description = "An MCP server that indexes local code into a graph database to provide context to AI assistants."
5
5
  authors = [{ name = "Shashank Shekhar Singh", email = "shashankshekharsingh1205@gmail.com" }]
6
6
  readme = "README.md"
@@ -20,7 +20,7 @@ dependencies = [
20
20
  "stdlibs>=2023.11.18",
21
21
  "typer[all]>=0.9.0",
22
22
  "rich>=13.7.0",
23
- "inquirerpy>=0.3.5",
23
+ "inquirerpy>=0.3.4",
24
24
  "python-dotenv>=1.0.0",
25
25
  "tree-sitter>=0.21.0",
26
26
  "tree-sitter-language-pack>=0.6.0",
@@ -296,6 +296,12 @@ def run_command(command, console, shell=False, check=True, input_text=None):
296
296
  Returns the completed process object on success, None on failure.
297
297
  """
298
298
  cmd_str = command if isinstance(command, str) else ' '.join(command)
299
+
300
+ # Mask passwords from being printed out
301
+ if "set-initial-password" in cmd_str:
302
+ import re
303
+ cmd_str = re.sub(r'(set-initial-password\s+)(\S+)', r'\g<1>********', cmd_str)
304
+
299
305
  console.print(f"[cyan]$ {cmd_str}[/cyan]")
300
306
  try:
301
307
  process = subprocess.run(
@@ -539,7 +539,9 @@ class CodeFinder:
539
539
 
540
540
  with self.driver.session() as session:
541
541
  repo_filter = "AND func.path STARTS WITH $repo_path" if repo_path else ""
542
- result = session.run(f"""
542
+ decorator_filter = "AND ALL(decorator_name IN $exclude_decorated_with WHERE NOT decorator_name IN func.decorators)" if exclude_decorated_with else ""
543
+
544
+ query = f"""
543
545
  MATCH (func:Function)
544
546
  WHERE func.is_dependency = false {repo_filter}
545
547
  AND NOT func.name IN ['main', 'setup', 'run']
@@ -550,7 +552,7 @@ class CodeFinder:
550
552
  AND NOT toLower(func.name) CONTAINS 'application'
551
553
  AND NOT toLower(func.name) CONTAINS 'entry'
552
554
  AND NOT toLower(func.name) CONTAINS 'entrypoint'
553
- AND ALL(decorator_name IN $exclude_decorated_with WHERE NOT decorator_name IN func.decorators)
555
+ {decorator_filter}
554
556
  WITH func
555
557
  OPTIONAL MATCH (caller:Function)-[:CALLS]->(func)
556
558
  WHERE caller.is_dependency = false
@@ -566,7 +568,15 @@ class CodeFinder:
566
568
  file.name as file_name
567
569
  ORDER BY func.path, func.line_number
568
570
  LIMIT 50
569
- """, exclude_decorated_with=exclude_decorated_with, repo_path=repo_path)
571
+ """
572
+
573
+ params = {}
574
+ if repo_path:
575
+ params["repo_path"] = repo_path
576
+ if exclude_decorated_with:
577
+ params["exclude_decorated_with"] = exclude_decorated_with
578
+
579
+ result = session.run(query, **params)
570
580
 
571
581
  return {
572
582
  "potentially_unused_functions": result.data(),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraphcontext
3
- Version: 0.3.5
3
+ Version: 0.3.7
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
@@ -41,7 +41,7 @@ Requires-Dist: watchdog>=3.0.0
41
41
  Requires-Dist: stdlibs>=2023.11.18
42
42
  Requires-Dist: typer[all]>=0.9.0
43
43
  Requires-Dist: rich>=13.7.0
44
- Requires-Dist: inquirerpy>=0.3.5
44
+ Requires-Dist: inquirerpy>=0.3.4
45
45
  Requires-Dist: python-dotenv>=1.0.0
46
46
  Requires-Dist: tree-sitter>=0.21.0
47
47
  Requires-Dist: tree-sitter-language-pack>=0.6.0
@@ -162,7 +162,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
162
162
  ---
163
163
 
164
164
  ## Project Details
165
- - **Version:** 0.3.5
165
+ - **Version:** 0.3.7
166
166
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
167
167
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
168
168
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -249,7 +249,7 @@ _If you’re using CodeGraphContext in your project, feel free to open a PR and
249
249
  - `stdlibs>=2023.11.18`
250
250
  - `typer[all]>=0.9.0`
251
251
  - `rich>=13.7.0`
252
- - `inquirerpy>=0.3.5`
252
+ - `inquirerpy>=0.3.7`
253
253
  - `python-dotenv>=1.0.0`
254
254
  - `tree-sitter>=0.21.0`
255
255
  - `tree-sitter-language-pack>=0.6.0`
@@ -3,7 +3,7 @@ watchdog>=3.0.0
3
3
  stdlibs>=2023.11.18
4
4
  typer[all]>=0.9.0
5
5
  rich>=13.7.0
6
- inquirerpy>=0.3.5
6
+ inquirerpy>=0.3.4
7
7
  python-dotenv>=1.0.0
8
8
  tree-sitter>=0.21.0
9
9
  tree-sitter-language-pack>=0.6.0