codecompass-mcp 3.1.1__tar.gz → 3.2.0__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.
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/PKG-INFO +1 -1
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/codecompass_mcp.egg-info/PKG-INFO +1 -1
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/main.py +21 -7
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/pyproject.toml +1 -1
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/LICENSE +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/README.md +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/codecompass_mcp.egg-info/SOURCES.txt +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/codecompass_mcp.egg-info/dependency_links.txt +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/codecompass_mcp.egg-info/entry_points.txt +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/codecompass_mcp.egg-info/requires.txt +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/codecompass_mcp.egg-info/top_level.txt +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/config.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/graph/__init__.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/graph/cli.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/graph/code_graph_client.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/graph/code_query_cli.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/graph/setup.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/__init__.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/chunker.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/code_normalizer.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/code_parser.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/description_enricher.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/entity_resolver.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/file_watcher.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/graph_writer.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/hierarchy_builder.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/reader_agent.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/ingestion/source_context.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/mcp_server.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/models/__init__.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/models/code_types.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/models/types.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/setup.cfg +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_accuracy_fixes.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_batch_impact.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_blast_radius.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_code_parser.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_description_enricher.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_ingestion.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_lit_css_parser.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_mcp_server.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/tests/test_php_parser.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/utils/__init__.py +0 -0
- {codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/utils/formatting.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codecompass-mcp
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Structural code context for AI coding agents — a local code knowledge graph for blast radius, impact, deps, dead code, and flow tracing
|
|
5
5
|
Author: CodeCompass contributors
|
|
6
6
|
License: MIT
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codecompass-mcp
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Structural code context for AI coding agents — a local code knowledge graph for blast radius, impact, deps, dead code, and flow tracing
|
|
5
5
|
Author: CodeCompass contributors
|
|
6
6
|
License: MIT
|
|
@@ -26,8 +26,10 @@ _CODECOMPASS_START = "<!-- codecompass-code-graph-start -->"
|
|
|
26
26
|
_CODECOMPASS_END = "<!-- codecompass-code-graph-end -->"
|
|
27
27
|
_CODECOMPASS_READ_INSTRUCTION = (
|
|
28
28
|
"Orient through the code graph first: start from an entry point, see what's "
|
|
29
|
-
"there, then trace its flow and dependencies —
|
|
30
|
-
"
|
|
29
|
+
"there, then trace its flow and dependencies — never use `cat`, `grep`, or "
|
|
30
|
+
"`rg` to search or read code content. Use the `codecompass query` commands "
|
|
31
|
+
"below for discovery and tracing, then read only the specific slices the "
|
|
32
|
+
"graph points you to."
|
|
31
33
|
)
|
|
32
34
|
|
|
33
35
|
|
|
@@ -324,6 +326,7 @@ def ingest_code(repo_path: str, normalize: bool = False, dump_triples: str | Non
|
|
|
324
326
|
def _register_project_agents_md(repo_path: str) -> None:
|
|
325
327
|
"""Write or update the Code graph section in the project's AGENTS.md."""
|
|
326
328
|
block = f"""{_CODECOMPASS_START}
|
|
329
|
+
<!-- This file must stay byte-for-byte identical to its counterpart in pi-package/templates/. Run scripts/check-pi-package-sync.sh to verify. -->
|
|
327
330
|
## Code graph
|
|
328
331
|
|
|
329
332
|
**{_CODECOMPASS_READ_INSTRUCTION}**
|
|
@@ -360,8 +363,18 @@ All commands default to the current directory — run them from the project root
|
|
|
360
363
|
3. **Read** the specific slice the graph pointed you to (Read tool / `sed -n`),
|
|
361
364
|
not the whole file.
|
|
362
365
|
|
|
363
|
-
4. **Edit** —
|
|
364
|
-
|
|
366
|
+
4. **Edit** — before editing, verify the target fully so you don't break callers or dependents:
|
|
367
|
+
- Run `--deps <file>` to understand what the file relies on.
|
|
368
|
+
- Run `--flow <entry_symbol> --format json` (or `--flow-summary <entry_symbol>`) to trace the logic end-to-end.
|
|
369
|
+
- Run `--impact <symbol>` for every symbol you plan to change.
|
|
370
|
+
- Run `--blast-radius <file>` for every file you plan to change.
|
|
371
|
+
- Read the specific slices the graph identified.
|
|
372
|
+
- Then make the smallest correct change.
|
|
373
|
+
|
|
374
|
+
After any code change (edits, additions, deletions, renames, refactors), re-ingest so the graph stays current:
|
|
375
|
+
```bash
|
|
376
|
+
codecompass ingest-code
|
|
377
|
+
```
|
|
365
378
|
|
|
366
379
|
### Reading the results
|
|
367
380
|
|
|
@@ -403,8 +416,9 @@ scripts). Results are split into "likely dead" and (with `--include-entrypoints`
|
|
|
403
416
|
"possible entry points".
|
|
404
417
|
|
|
405
418
|
This is STATIC analysis: dynamic dispatch, reflection, and string-based
|
|
406
|
-
invocation are invisible. Treat every result as a candidate —
|
|
407
|
-
|
|
419
|
+
invocation are invisible. Treat every result as a candidate — use
|
|
420
|
+
`codecompass query --grep <name>` or `--search <name>` to confirm it is truly
|
|
421
|
+
unused before deleting it.
|
|
408
422
|
|
|
409
423
|
### Project notes: `overview.md`, `memory.md`, `learnings.md`
|
|
410
424
|
|
|
@@ -432,7 +446,7 @@ doc → `memory.md`; code-comment warning to the next person → `learnings.md`.
|
|
|
432
446
|
|
|
433
447
|
### When to re-ingest
|
|
434
448
|
|
|
435
|
-
- After
|
|
449
|
+
- After every code change: edits, additions, deletions, renames, refactors
|
|
436
450
|
- After major refactors (moved functions, renamed classes)
|
|
437
451
|
- If query results look stale or incomplete
|
|
438
452
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codecompass-mcp"
|
|
3
|
-
version = "3.
|
|
3
|
+
version = "3.2.0"
|
|
4
4
|
description = "Structural code context for AI coding agents — a local code knowledge graph for blast radius, impact, deps, dead code, and flow tracing"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = {text = "MIT"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecompass_mcp-3.1.1 → codecompass_mcp-3.2.0}/codecompass_mcp.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|