codegraph-py 1.1.0__tar.gz → 1.1.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 (51) hide show
  1. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/PKG-INFO +1 -1
  2. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/__init__.py +1 -1
  3. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/cli.py +14 -4
  4. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/codegraph.py +1 -1
  5. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph_py.egg-info/PKG-INFO +1 -1
  6. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/pyproject.toml +1 -1
  7. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/README.md +0 -0
  8. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/__main__.py +0 -0
  9. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/context/__init__.py +0 -0
  10. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/db/__init__.py +0 -0
  11. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/db/connection.py +0 -0
  12. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/db/queries.py +0 -0
  13. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/db/schema.sql +0 -0
  14. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/directory.py +0 -0
  15. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/errors.py +0 -0
  16. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/__init__.py +0 -0
  17. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/__init__.py +0 -0
  18. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/base.py +0 -0
  19. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/c_cfg.py +0 -0
  20. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/cpp_cfg.py +0 -0
  21. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/dart_cfg.py +0 -0
  22. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/go_cfg.py +0 -0
  23. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/java_cfg.py +0 -0
  24. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/javascript_cfg.py +0 -0
  25. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/kotlin_cfg.py +0 -0
  26. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/lua_cfg.py +0 -0
  27. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/python_cfg.py +0 -0
  28. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/ruby_cfg.py +0 -0
  29. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/rust_cfg.py +0 -0
  30. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/scala_cfg.py +0 -0
  31. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/swift_cfg.py +0 -0
  32. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/languages/typescript_cfg.py +0 -0
  33. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/extraction/tree_sitter_extractor.py +0 -0
  34. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/graph/__init__.py +0 -0
  35. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/installer/__init__.py +0 -0
  36. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/mcp/__init__.py +0 -0
  37. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/project_config.py +0 -0
  38. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/resolution/__init__.py +0 -0
  39. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/search/__init__.py +0 -0
  40. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/sync/__init__.py +0 -0
  41. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/types.py +0 -0
  42. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/ui/__init__.py +0 -0
  43. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph/utils.py +0 -0
  44. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph_py.egg-info/SOURCES.txt +0 -0
  45. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph_py.egg-info/dependency_links.txt +0 -0
  46. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph_py.egg-info/entry_points.txt +0 -0
  47. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph_py.egg-info/requires.txt +0 -0
  48. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/codegraph_py.egg-info/top_level.txt +0 -0
  49. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/setup.cfg +0 -0
  50. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/tests/test_codegraph.py +0 -0
  51. {codegraph_py-1.1.0 → codegraph_py-1.1.1}/tests/test_stress.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraph-py
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Supercharge AI coding agents with semantic code intelligence — surgical context, fewer tool calls, faster answers. 100% local.
5
5
  Author-email: mading <martin98@bu.edu>
6
6
  License-Expression: MIT
@@ -5,7 +5,7 @@ A local-first code intelligence system that builds a semantic
5
5
  knowledge graph from any codebase.
6
6
  """
7
7
 
8
- __version__ = "1.1.0"
8
+ __version__ = "1.1.1"
9
9
 
10
10
  from codegraph.codegraph import CodeGraph
11
11
 
@@ -14,12 +14,13 @@ from typing import Optional, List, Dict
14
14
 
15
15
  import click
16
16
 
17
+ from codegraph import __version__
17
18
  from codegraph.codegraph import CodeGraph
18
19
  from codegraph.directory import (
19
20
  is_initialized, find_nearest_codegraph_root,
20
21
  unsafe_index_root_reason, derive_project_name_tokens,
21
22
  )
22
- from codegraph.types import SearchOptions, GraphStats
23
+ from codegraph.types import SearchOptions, SearchResult, GraphStats
23
24
 
24
25
 
25
26
  # =============================================================================
@@ -68,6 +69,15 @@ def format_number(n: int) -> str:
68
69
  return f'{n:,}'
69
70
 
70
71
 
72
+ def _pluralize(word: str) -> str:
73
+ """Simple English pluralization."""
74
+ if word.endswith(('s', 'x', 'ch', 'sh')):
75
+ return word + 'es'
76
+ if word.endswith('y') and len(word) > 2 and word[-2] not in 'aeiou':
77
+ return word[:-1] + 'ies'
78
+ return word + 's'
79
+
80
+
71
81
  def format_duration(ms: float) -> str:
72
82
  """Format duration in milliseconds to human readable."""
73
83
  if ms < 1000:
@@ -107,7 +117,7 @@ def resolve_project_path(path_arg: Optional[str] = None) -> str:
107
117
  # =============================================================================
108
118
 
109
119
  @click.group(context_settings=dict(help_option_names=['-h', '--help']))
110
- @click.version_option(version='1.0.1', prog_name='codegraph')
120
+ @click.version_option(version=__version__, prog_name='codegraph')
111
121
  def main():
112
122
  """CodeGraph — Semantic code intelligence for AI coding agents.
113
123
 
@@ -486,7 +496,7 @@ def query(search: str, path_arg: Optional[str], limit: int,
486
496
  else:
487
497
  click.echo('No search term provided. Use --kind to browse by type.')
488
498
  else:
489
- title = f'\nSearch Results for "{search}":' if search else f'\nAll {kind}s:' if kind else '\nResults:'
499
+ title = f'\nSearch Results for "{search}":' if search else f'\nAll {_pluralize(kind)}:' if kind else '\nResults:'
490
500
  click.echo(bold(title + '\n'))
491
501
  for r in results:
492
502
  node = r.node
@@ -754,7 +764,7 @@ def affected(files: List[str], path_arg: Optional[str]):
754
764
  nodes = cg.get_nodes_by_file(filepath)
755
765
  for node in nodes:
756
766
  # Find what depends on these nodes
757
- dependents = cg.get_impact_radius(node.id, depth=2)
767
+ dependents = cg.get_impact_radius(node.id, max_depth=2)
758
768
  for n in dependents.nodes.values():
759
769
  if n.file_path.endswith('_test.py') or n.file_path.endswith('test_'):
760
770
  affected_files.add(n.file_path)
@@ -31,7 +31,7 @@ from codegraph.graph import GraphTraverser, GraphQueryManager
31
31
  from codegraph.context import ContextBuilder, create_context_builder
32
32
  from codegraph.sync import FileWatcher, WatchOptions, PendingFile
33
33
 
34
- __version__ = "1.1.0"
34
+ __version__ = "1.1.1"
35
35
 
36
36
 
37
37
  @dataclass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraph-py
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Supercharge AI coding agents with semantic code intelligence — surgical context, fewer tool calls, faster answers. 100% local.
5
5
  Author-email: mading <martin98@bu.edu>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "codegraph-py"
7
- version = "1.1.0"
7
+ version = "1.1.1"
8
8
  description = "Supercharge AI coding agents with semantic code intelligence — surgical context, fewer tool calls, faster answers. 100% local."
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes