codecortex 0.29.0__py3-none-any.whl → 0.29.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.
- {codecortex-0.29.0.dist-info → codecortex-0.29.3.dist-info}/METADATA +3 -3
- {codecortex-0.29.0.dist-info → codecortex-0.29.3.dist-info}/RECORD +9 -9
- {codecortex-0.29.0.dist-info → codecortex-0.29.3.dist-info}/WHEEL +1 -1
- codeintel/__init__.py +1 -1
- codeintel/commands/index.py +10 -5
- codeintel/semantic_db.py +27 -5
- {codecortex-0.29.0.dist-info → codecortex-0.29.3.dist-info}/entry_points.txt +0 -0
- {codecortex-0.29.0.dist-info → codecortex-0.29.3.dist-info}/licenses/LICENSE +0 -0
- {codecortex-0.29.0.dist-info → codecortex-0.29.3.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codecortex
|
|
3
|
-
Version: 0.29.
|
|
3
|
+
Version: 0.29.3
|
|
4
4
|
Summary: Local-first, MCP-native code-intelligence server — graph, LSP, and semantic search behind one safe code.query tool for coding agents.
|
|
5
5
|
Author: Shammai Hamilton
|
|
6
6
|
License-Expression: MIT
|
|
@@ -283,7 +283,7 @@ Prefer plain text? `codeintel map` writes a **readable architecture overview** t
|
|
|
283
283
|
**What `CODE_INTEL.md` is for.** It's a *static, committable* snapshot of a codebase's shape — meant to be read (by a person or an agent) **first**, instead of reconstructing structure by grepping. It covers the cases the live `code.query` tool doesn't:
|
|
284
284
|
|
|
285
285
|
- **Agents & hosts that don't speak MCP.** Not every agent supports MCP, and the server isn't always running. `codeintel map` writes a plain file any agent can read; `codeintel map --inject` also drops a short, tool-naming pointer block into `AGENTS.md` (the cross-tool surface read by Codex, Cursor, Zed, and others — created with your consent if it doesn't exist yet) plus a one-line `@AGENTS.md` import into `CLAUDE.md`, and writes the fuller `USING_CODEINTEL.md` guide the block points to — into **your** repo, which is why there is no such file to click here — so an agent knows to reach for `code.query` before it reaches for grep, not just that a `CODE_INTEL.md` exists.
|
|
286
|
-
- **A committed, diffable overview.** It lives *in the repo* — reviewable in a PR, browsable on GitHub, available offline.
|
|
286
|
+
- **A committed, diffable overview.** It lives *in the repo* — reviewable in a PR, browsable on GitHub, available offline. Once it exists, `codeintel index` keeps it current; `index` never creates it on its own.
|
|
287
287
|
- **The load-bearing code at a glance.** Ranking symbols by caller count surfaces what most of the codebase depends on (the risky-to-change core) plus the entry points — the first things a newcomer, or an agent, should understand before touching anything. The ranking counts `CALLS` edges into **callable** nodes only (functions, methods, classes, interfaces, routes), and skips test, generated and archived files. Both constraints are load-bearing rather than tidy-up: without them a 12,638-node TypeScript repo ranked `logger` (a *folder* node) at 716 and `onClick` at 107, and a Python repo ranked YAML and JSON keys — `flow` from a `.flow.yaml`, `feature` from a `.schema.json` — as its most depended-on symbols. This repo's own map is Python-heavy and barely showed it, which is exactly why dogfooding did not catch it.
|
|
288
288
|
|
|
289
289
|
See **[docs/map-file.md](docs/map-file.md)** for the format and the `--inject` flow.
|
|
@@ -449,7 +449,7 @@ Full system docs live in [`docs/`](docs/) — start with the index:
|
|
|
449
449
|
| `codeintel install [--agent auto\|claude\|codex\|gemini\|zed\|all] [--no-verify] [--relative-command]` | Register codeintel with the agents installed on this machine (`auto`, the default), then prove it by completing a real MCP handshake against the registered command |
|
|
450
450
|
| `codeintel setup [project_root] [--all] [--index] [--warm] [--languages] [--install-uv] [--install-deps] [--json]` | Prepare backends + index this repo (`--all` = one command: do everything automatable, idempotent); ends with a health report + **Next:** steps |
|
|
451
451
|
| `codeintel prompt [project_root] [--agent auto\|claude\|codex\|gemini\|zed] [--fresh] [--deep]` | Print a paste-to-your-agent setup prompt; probes health and emits only the outstanding steps (or "just restart me" when already healthy). `--fresh` = the full sequence from `pip install`, to send a friend |
|
|
452
|
-
| `codeintel index [project_root] [--quiet]` | Index a repo (semantic embeddings + best-effort graph
|
|
452
|
+
| `codeintel index [project_root] [--quiet]` | Index a repo (semantic embeddings + best-effort graph refresh, and a refresh of `CODE_INTEL.md` if `codeintel map` already created one), with a live progress display; `--quiet` prints only the result line |
|
|
453
453
|
| `codeintel serve` | Start the MCP server (stdio transport) |
|
|
454
454
|
| `codeintel serve-http [--host HOST] [--port 8766] [--allow-remote] [--token TOKEN]` | Start the HTTP transport (loopback-only unless `--allow-remote`; `--token` requires a bearer token on every request) |
|
|
455
455
|
| `codeintel query --op OP --target TARGET [--engine auto] [--project-root DIR] [--json]` | Run a single query and print the result |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
codecortex-0.29.
|
|
2
|
-
codeintel/__init__.py,sha256=
|
|
1
|
+
codecortex-0.29.3.dist-info/licenses/LICENSE,sha256=DIRvhlH8EulEUOYQxKDFFiimJrlVT5-kCKxQIgi2m7c,1073
|
|
2
|
+
codeintel/__init__.py,sha256=fEndD9PxB-ZplMZTkh3KzD-wT5SKi0pmrS8Qe8kzTvA,23
|
|
3
3
|
codeintel/__main__.py,sha256=ZTn5OGkRx90r26vG2nt9gsMKNwJrun1znwvazIm2d0A,39321
|
|
4
4
|
codeintel/agent_prompt.py,sha256=iOk4CURZ3cO46KmseW5A2vYeuaR1J6usWzXOnvrr-eU,5544
|
|
5
5
|
codeintel/auth.py,sha256=OwrLMs9UaR_1nMCSWTO4y3nD8l09wsjyHWxBD7hPvuk,7311
|
|
@@ -47,7 +47,7 @@ codeintel/redact.py,sha256=kM5yYsc5dLGMdTT9ABfQ1YmdveiPLh5bqdxR0bYWCkQ,9717
|
|
|
47
47
|
codeintel/reindexer.py,sha256=Jj1onCWcBhBrDIOPbtgnde_-qP61b4EKIngWsh3w0YE,13191
|
|
48
48
|
codeintel/reset.py,sha256=4McrbhQH9CXXoPf4azizheNe3DgDAfvjXur7sWBQx5U,12891
|
|
49
49
|
codeintel/searcher.py,sha256=J3rkHdyqJx10eMPiGVAM0W4tqIlqIe4hjOqmir_n5bM,24922
|
|
50
|
-
codeintel/semantic_db.py,sha256=
|
|
50
|
+
codeintel/semantic_db.py,sha256=U6isZOvpuTLpT0dUc4vuFzq9ONzJZ-uIDZeV6MmqQqU,31652
|
|
51
51
|
codeintel/server.py,sha256=vVgaeVd5B4IZWPVgfq6Pg6W5vm4Dx5V3C_tHvTYA4UY,39211
|
|
52
52
|
codeintel/source_kind.py,sha256=0URayZ5v7rjtdWLlf4MuYElh4FB7a2Ds-nvWES1Q_2I,13068
|
|
53
53
|
codeintel/symbol_diff.py,sha256=zpgbcrS1VVD1W9KbpEJM-cYLlJRw8u_Lw9ltP-4gPCA,31329
|
|
@@ -60,7 +60,7 @@ codeintel/commands/c4.py,sha256=-WXUvzhvNEnb3JUq-o-pPPOX8K9N7v738hKJt-8TSFE,1742
|
|
|
60
60
|
codeintel/commands/doctor.py,sha256=9KuEVZnqFI-X4h-_wOOPj1IDq78DJCuuwt45cSqgjIk,597
|
|
61
61
|
codeintel/commands/gen_token.py,sha256=U1cyDanurDotzg8j-QwEc-poE-I_bNipYu0CqXilM8M,212
|
|
62
62
|
codeintel/commands/graph.py,sha256=aOyyl0DpZgfj0AjZU5j425sLeSDiwuNvYhgeGtRvmuU,1392
|
|
63
|
-
codeintel/commands/index.py,sha256=
|
|
63
|
+
codeintel/commands/index.py,sha256=rmfBQhSr5DOGhkk-3zxpQPlLw69szyzaPWoGd3ZQte0,9821
|
|
64
64
|
codeintel/commands/install.py,sha256=GrFAdSfs2iYw-Uf2nfXxNokoZCSFSIg8Xs696wttb_w,5947
|
|
65
65
|
codeintel/commands/map.py,sha256=aW2Ifua6i05X9ny3TIuh05GiQpclSIly89k60hvEzWM,1489
|
|
66
66
|
codeintel/commands/prompt.py,sha256=eLRsHkJFO9XRDnKuVHIe30jV1AdD5Ba1Lxzh2puwjfo,1300
|
|
@@ -78,8 +78,8 @@ codeintel/providers/none.py,sha256=VI84XQkT7opQm6rBAEn0CdM8CNVlKGWYmjAhyeWbHeg,7
|
|
|
78
78
|
codeintel/providers/semantic.py,sha256=Qu7yew4gzxUqknZ-a21Ir30dR5FAmvVY-LDTc0XRDMs,56868
|
|
79
79
|
codeintel/viewer/__init__.py,sha256=CBbW19p3C8uYpuT-ghSEuBfU56gZTe7IDfSC0ZMTNOU,101
|
|
80
80
|
codeintel/viewer/graph_template.html,sha256=Oi6IRS7Rsa5j8q_FCEfAQHf7UQi1JsH37jVuw-NvuNo,38786
|
|
81
|
-
codecortex-0.29.
|
|
82
|
-
codecortex-0.29.
|
|
83
|
-
codecortex-0.29.
|
|
84
|
-
codecortex-0.29.
|
|
85
|
-
codecortex-0.29.
|
|
81
|
+
codecortex-0.29.3.dist-info/METADATA,sha256=OeHpHckxg6LOL7F1T_n6gLn3SYu8gmeaCZZpFIbaAFI,48857
|
|
82
|
+
codecortex-0.29.3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
83
|
+
codecortex-0.29.3.dist-info/entry_points.txt,sha256=zrYfo95-8JkK0G2e5f9d94sYqqim7ZrdCW8knIfSy2U,54
|
|
84
|
+
codecortex-0.29.3.dist-info/top_level.txt,sha256=DF3TH1hHLWrrnX-7HhfMX0OnS2EXgqPRhPbiL_oSekw,10
|
|
85
|
+
codecortex-0.29.3.dist-info/RECORD,,
|
codeintel/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.29.
|
|
1
|
+
__version__ = "0.29.3"
|
codeintel/commands/index.py
CHANGED
|
@@ -182,13 +182,18 @@ def run(args: Any) -> int:
|
|
|
182
182
|
|
|
183
183
|
lock.close()
|
|
184
184
|
|
|
185
|
-
# best-effort map refresh after index (fast, kept silent — not worth a checklist row)
|
|
185
|
+
# best-effort map refresh after index (fast, kept silent — not worth a checklist row). REFRESH
|
|
186
|
+
# only: `index` keeps a CODE_INTEL.md that `codeintel map` already wrote current, and never
|
|
187
|
+
# creates one. Creating it put an uncommitted file into every repo on the first `index` —
|
|
188
|
+
# including one whose index had just failed — when writing into the repo is `map`'s job, asked
|
|
189
|
+
# for by name.
|
|
186
190
|
try:
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
if os.path.isfile(os.path.join(project_root, "CODE_INTEL.md")):
|
|
192
|
+
from codeintel.mapper import MapGenerator
|
|
193
|
+
from codeintel.providers.graph import GraphProvider
|
|
189
194
|
|
|
190
|
-
|
|
191
|
-
|
|
195
|
+
gen = MapGenerator(GraphProvider())
|
|
196
|
+
gen.write(project_root, gen.generate(project_root))
|
|
192
197
|
except Exception:
|
|
193
198
|
pass
|
|
194
199
|
|
codeintel/semantic_db.py
CHANGED
|
@@ -114,11 +114,19 @@ def load_embedder(model_name: str):
|
|
|
114
114
|
try:
|
|
115
115
|
return TextEmbedding(model_name=model_name)
|
|
116
116
|
except ValueError as exc:
|
|
117
|
-
# fastembed
|
|
118
|
-
# list before any network call (measured: 0.000s, no
|
|
119
|
-
#
|
|
120
|
-
#
|
|
121
|
-
#
|
|
117
|
+
# fastembed raises ValueError for TWO different causes. One is a model it does not ship,
|
|
118
|
+
# raised from its own supported-model list before any network call (measured: 0.000s, no
|
|
119
|
+
# request attempted). The other is `Could not load model <name> from any source.`, raised
|
|
120
|
+
# by fastembed 0.9 after its download retries are exhausted — for a name it DOES ship.
|
|
121
|
+
# Telling the second one to check the `model` key sent a blocked download off to debug a
|
|
122
|
+
# correct config. The type cannot separate them, so ask fastembed's own list (structural,
|
|
123
|
+
# not the message text): a name it ships failed to download.
|
|
124
|
+
if _fastembed_ships(TextEmbedding, model_name) is True:
|
|
125
|
+
raise EmbeddingModelUnavailable(model_name, exc, _download_remedy()) from exc
|
|
126
|
+
# This is a CONFIGURATION error — the `model` key names something that does not exist —
|
|
127
|
+
# and the download remedy is actively misleading for it: there is no proxy to fix and no
|
|
128
|
+
# cache to pre-seed, because nothing was ever going to be fetched. Also the fallback when
|
|
129
|
+
# the list cannot be read at all.
|
|
122
130
|
raise EmbeddingModelUnavailable(
|
|
123
131
|
model_name, exc,
|
|
124
132
|
"that is not a model fastembed ships — check the `model` key in your codeintel "
|
|
@@ -149,6 +157,20 @@ def load_embedder(model_name: str):
|
|
|
149
157
|
raise EmbeddingModelUnavailable(model_name, exc, _download_remedy()) from exc
|
|
150
158
|
|
|
151
159
|
|
|
160
|
+
def _fastembed_ships(text_embedding, model_name: str) -> bool | None:
|
|
161
|
+
"""Whether fastembed's supported-model list names *model_name*; None when it cannot be read.
|
|
162
|
+
|
|
163
|
+
Only consulted on the failure path, so the listing is paid once per failed load. Never raises:
|
|
164
|
+
a classifier that throws would replace the error it exists to explain.
|
|
165
|
+
"""
|
|
166
|
+
try:
|
|
167
|
+
models = text_embedding.list_supported_models()
|
|
168
|
+
wanted = str(model_name).lower()
|
|
169
|
+
return any(str(m.get("model", "")).lower() == wanted for m in models)
|
|
170
|
+
except Exception:
|
|
171
|
+
return None
|
|
172
|
+
|
|
173
|
+
|
|
152
174
|
def release_embedder(embedder) -> None:
|
|
153
175
|
"""Release fastembed/onnxruntime native state before interpreter finalization.
|
|
154
176
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|