code-context-engine 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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-context-engine
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Index your codebase. AI searches instead of re-reading files. Save 70%+ on tokens. Works with Claude Code, Cursor, VS Code, Gemini CLI, and Codex.
5
5
  Author-email: Fazle Elahee <felahee@gmail.com>, Raj <rajkumar.sakti@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
- code_context_engine-0.4.2.dist-info/licenses/LICENSE,sha256=vLbw0GGCVJSIRppMus7Oq0PyMDhDXz-dfvz2rPpWtjQ,1069
2
- context_engine/__init__.py,sha256=HU6q9Ni12P7RHgw4VNQDHoOcqdcHRfyjcmRqNq9c0Fw,129
3
- context_engine/cli.py,sha256=ZJ2qg8srayPouQ6Cg_kk-jf5zQbM4khjGetDkWPSyOE,113122
1
+ code_context_engine-0.4.3.dist-info/licenses/LICENSE,sha256=vLbw0GGCVJSIRppMus7Oq0PyMDhDXz-dfvz2rPpWtjQ,1069
2
+ context_engine/__init__.py,sha256=qThGxB7xfZi5M9jDpUno0MKBp7KKrEOdH1hG4wHMuLc,193
3
+ context_engine/cli.py,sha256=t4w1kxuMnE1WeSdKut8nmZawL6AhI7GXu5H1JkiAY9U,113160
4
4
  context_engine/cli_style.py,sha256=a3l3Smq1gIN2asbNalFUz0i_5x7Tmkp_wEhyGMoo8a4,2460
5
5
  context_engine/config.py,sha256=FU8Hn8-9KCLGhjImsMbmV9WGNZyWp_qOtWW4BxI-URQ,7202
6
6
  context_engine/editors.py,sha256=LT_WdYwyB1EeH1xsB6DDtJlbGMKXOTIVSOWXOOfXh1U,8970
@@ -56,8 +56,8 @@ context_engine/storage/graph_store.py,sha256=mftuJFvlkFeBlzMsQorY5YS4l5wsDUxCMw5
56
56
  context_engine/storage/local_backend.py,sha256=5MVoAn6Jkiltho-9BjClisLkyXMkSZZc2Z_h3N7Vfcg,4200
57
57
  context_engine/storage/remote_backend.py,sha256=u77lnGIvqrL3PwInjT6nfRgyNn6oVxW92KUK66oWrvI,5504
58
58
  context_engine/storage/vector_store.py,sha256=tA0ol_v5B2KRNMt2hE2kI4qnYe_AoYP_HSp1MvzcsFU,14704
59
- code_context_engine-0.4.2.dist-info/METADATA,sha256=Jha4lJakEzKAJr-gGNK_T8Zm-qnvjrcy1UKcGPKPgZw,17592
60
- code_context_engine-0.4.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
61
- code_context_engine-0.4.2.dist-info/entry_points.txt,sha256=DQuRWUuVFM7nPcXtDmJzlem7QA0IboD_4N8AnTtDD9Q,144
62
- code_context_engine-0.4.2.dist-info/top_level.txt,sha256=X1-RUqb61WXBjy3JjsW2oXwfvqk2ydXKDNidxmw4CZ4,15
63
- code_context_engine-0.4.2.dist-info/RECORD,,
59
+ code_context_engine-0.4.3.dist-info/METADATA,sha256=iPoiteCiDaqoZjINmcaYnM0LMVfv8oK1KMMhWqixkEg,17592
60
+ code_context_engine-0.4.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
61
+ code_context_engine-0.4.3.dist-info/entry_points.txt,sha256=DQuRWUuVFM7nPcXtDmJzlem7QA0IboD_4N8AnTtDD9Q,144
62
+ code_context_engine-0.4.3.dist-info/top_level.txt,sha256=X1-RUqb61WXBjy3JjsW2oXwfvqk2ydXKDNidxmw4CZ4,15
63
+ code_context_engine-0.4.3.dist-info/RECORD,,
@@ -1,3 +1,5 @@
1
1
  # src/context_engine/__init__.py
2
2
  """code-context-engine: Local context engine for AI coding assistants."""
3
- __version__ = "0.4.1"
3
+ from importlib.metadata import version as _v
4
+
5
+ __version__ = _v("code-context-engine")
context_engine/cli.py CHANGED
@@ -828,8 +828,8 @@ def status(ctx: click.Context, output_json: bool, oneline: bool) -> None:
828
828
  served = stats.get("served_tokens", 0)
829
829
  queries = stats.get("queries", 0)
830
830
  baseline = max(full, raw) if full > 0 else raw
831
- saved = max(0, baseline - served)
832
- pct = int(saved / baseline * 100) if baseline > 0 else 0
831
+ saved = max(0, baseline - served) if queries > 0 else 0
832
+ pct = int(saved / baseline * 100) if baseline > 0 and queries > 0 else 0
833
833
  lines.append(f" {dim('Queries:')} {value(f'{queries:,}')}")
834
834
  lines.append(f" {dim('Full codebase:')} {value(f'{baseline:,}')} {dim('tokens')}")
835
835
  lines.append(f" {dim('Served:')} {value(f'{served:,}')} {dim('tokens')}")