codingest 0.1.4__tar.gz → 0.1.6__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 (92) hide show
  1. {codingest-0.1.4 → codingest-0.1.6}/Cargo.lock +10 -10
  2. codingest-0.1.6/Cargo.toml +42 -0
  3. {codingest-0.1.4 → codingest-0.1.6}/PKG-INFO +12 -5
  4. {codingest-0.1.4 → codingest-0.1.6}/README.md +10 -3
  5. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/Cargo.toml +1 -1
  6. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/bin/codingest_bench.rs +5 -0
  7. codingest-0.1.6/crates/codingest/src/bin/codingest_stats.rs +606 -0
  8. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/call_edges.rs +583 -35
  9. codingest-0.1.6/crates/codingest/src/builder/js_workspace.rs +595 -0
  10. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/load/edge_frames.rs +24 -0
  11. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/load/entity_frames.rs +34 -1
  12. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/load.rs +37 -5
  13. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/mod.rs +40 -12
  14. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/other_edges.rs +546 -20
  15. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/routes/django.rs +136 -11
  16. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/semantic_edges.rs +7 -0
  17. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/docs/mod.rs +255 -29
  18. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/agc.rs +12 -2
  19. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/python.rs +726 -2
  20. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/registry.rs +15 -0
  21. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/shared.rs +88 -1
  22. codingest-0.1.6/crates/codingest/src/parsers/typescript.rs +2764 -0
  23. codingest-0.1.6/crates/codingest/tests/goldens/README.md +146 -0
  24. codingest-0.1.6/crates/codingest/tests/goldens/docs_mdx.sha256 +1 -0
  25. codingest-0.1.6/crates/codingest/tests/goldens/dup_minified_assets.sha256 +1 -0
  26. codingest-0.1.6/crates/codingest/tests/goldens/py_basic.sha256 +1 -0
  27. codingest-0.1.6/crates/codingest/tests/goldens/py_inheritance.sha256 +1 -0
  28. codingest-0.1.6/crates/codingest/tests/goldens/py_nested_defs.sha256 +1 -0
  29. codingest-0.1.6/crates/codingest/tests/goldens/rust_xfile.sha256 +1 -0
  30. codingest-0.1.6/crates/codingest/tests/goldens/ts_callback.sha256 +1 -0
  31. codingest-0.1.6/crates/codingest/tests/goldens/ts_closure_scope.sha256 +1 -0
  32. codingest-0.1.6/crates/codingest/tests/goldens/ts_hof_binding.sha256 +1 -0
  33. codingest-0.1.6/crates/codingest/tests/goldens/ts_monorepo.sha256 +1 -0
  34. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/tests/parity.rs +140 -0
  35. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/Cargo.toml +1 -1
  36. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/src/code_tree_cli.rs +7 -3
  37. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/src/lib.rs +20 -0
  38. codingest-0.1.6/crates/codingest-cli/src/main.rs +10 -0
  39. codingest-0.1.6/crates/codingest-cli/src/query.rs +644 -0
  40. codingest-0.1.6/crates/codingest-cli/tests/exit_codes.rs +209 -0
  41. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-mcp/Cargo.toml +1 -1
  42. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-py/Cargo.toml +3 -3
  43. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-py/src/lib.rs +1 -1
  44. {codingest-0.1.4 → codingest-0.1.6}/pyproject.toml +2 -2
  45. codingest-0.1.4/Cargo.toml +0 -40
  46. codingest-0.1.4/crates/codingest/src/bin/codingest_stats.rs +0 -150
  47. codingest-0.1.4/crates/codingest/src/parsers/typescript.rs +0 -1130
  48. codingest-0.1.4/crates/codingest/tests/goldens/README.md +0 -71
  49. codingest-0.1.4/crates/codingest/tests/goldens/dup_minified_assets.sha256 +0 -1
  50. codingest-0.1.4/crates/codingest/tests/goldens/py_basic.sha256 +0 -1
  51. codingest-0.1.4/crates/codingest/tests/goldens/py_inheritance.sha256 +0 -1
  52. codingest-0.1.4/crates/codingest/tests/goldens/rust_xfile.sha256 +0 -1
  53. codingest-0.1.4/crates/codingest/tests/goldens/ts_callback.sha256 +0 -1
  54. codingest-0.1.4/crates/codingest-cli/src/main.rs +0 -5
  55. {codingest-0.1.4 → codingest-0.1.6}/LICENSE +0 -0
  56. {codingest-0.1.4 → codingest-0.1.6}/codingest/__init__.py +0 -0
  57. {codingest-0.1.4 → codingest-0.1.6}/codingest/__init__.pyi +0 -0
  58. {codingest-0.1.4 → codingest-0.1.6}/codingest/cli.py +0 -0
  59. {codingest-0.1.4 → codingest-0.1.6}/codingest/mcp_server.py +0 -0
  60. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/routes/fastapi.rs +0 -0
  61. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/routes/flask.rs +0 -0
  62. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/routes/mod.rs +0 -0
  63. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/builder/type_edges.rs +0 -0
  64. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/cross_lang.rs +0 -0
  65. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/docs/rst.rs +0 -0
  66. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/lib.rs +0 -0
  67. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/manifest/mod.rs +0 -0
  68. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/models.rs +0 -0
  69. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/cpp.rs +0 -0
  70. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/csharp.rs +0 -0
  71. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/css.rs +0 -0
  72. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/dart.rs +0 -0
  73. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/go.rs +0 -0
  74. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/html.rs +0 -0
  75. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/java.rs +0 -0
  76. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/mod.rs +0 -0
  77. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/php.rs +0 -0
  78. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/rust_lang.rs +0 -0
  79. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/parsers/swift.rs +0 -0
  80. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/repo.rs +0 -0
  81. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/src/rev.rs +0 -0
  82. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/tests/agc_apollo.rs +0 -0
  83. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/tests/goldens/agc_basic.sha256 +0 -0
  84. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest/tests/goldens/cross_ts_py.sha256 +0 -0
  85. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/skills/codingest-code-review/SKILL.md +0 -0
  86. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/skills/codingest-code-review/references/mcp-upgrade.md +0 -0
  87. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/skills/codingest-code-review/references/public-repositories.md +0 -0
  88. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/skills/codingest-code-review/references/queries.md +0 -0
  89. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/src/skill.rs +0 -0
  90. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-cli/src/skill_assets.rs +0 -0
  91. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-mcp/src/lib.rs +0 -0
  92. {codingest-0.1.4 → codingest-0.1.6}/crates/codingest-mcp/src/main.rs +0 -0
@@ -313,7 +313,7 @@ dependencies = [
313
313
 
314
314
  [[package]]
315
315
  name = "codingest"
316
- version = "0.1.4"
316
+ version = "0.1.6"
317
317
  dependencies = [
318
318
  "aho-corasick",
319
319
  "base64",
@@ -345,7 +345,7 @@ dependencies = [
345
345
 
346
346
  [[package]]
347
347
  name = "codingest-cli"
348
- version = "0.1.4"
348
+ version = "0.1.6"
349
349
  dependencies = [
350
350
  "anyhow",
351
351
  "clap",
@@ -357,7 +357,7 @@ dependencies = [
357
357
 
358
358
  [[package]]
359
359
  name = "codingest-mcp"
360
- version = "0.1.4"
360
+ version = "0.1.6"
361
361
  dependencies = [
362
362
  "anyhow",
363
363
  "codingest",
@@ -366,7 +366,7 @@ dependencies = [
366
366
 
367
367
  [[package]]
368
368
  name = "codingest-py"
369
- version = "0.1.4"
369
+ version = "0.1.6"
370
370
  dependencies = [
371
371
  "codingest",
372
372
  "codingest-cli",
@@ -1393,9 +1393,9 @@ dependencies = [
1393
1393
 
1394
1394
  [[package]]
1395
1395
  name = "kglite"
1396
- version = "0.15.3"
1396
+ version = "0.15.5"
1397
1397
  source = "registry+https://github.com/rust-lang/crates.io-index"
1398
- checksum = "4ec07586e3dac4fa5dd1e216ac057f41ffe056f95eefc8ddd866f09fd7e48394"
1398
+ checksum = "4664fc457e5dd762f5775977f06eb5377634556fffae45e4a86e2eb1e1eb0bfb"
1399
1399
  dependencies = [
1400
1400
  "bzip2",
1401
1401
  "chrono",
@@ -1428,9 +1428,9 @@ dependencies = [
1428
1428
 
1429
1429
  [[package]]
1430
1430
  name = "kglite-mcp-server"
1431
- version = "0.15.3"
1431
+ version = "0.15.5"
1432
1432
  source = "registry+https://github.com/rust-lang/crates.io-index"
1433
- checksum = "f9dae485f96add5453ef56518cd14e57c3f20727c8ab151500cc6f1afb70deef"
1433
+ checksum = "e5e5d2207a45eb77c90e60a772bc8cc60ceac3d7c6f3ad2b948e8079355e1df4"
1434
1434
  dependencies = [
1435
1435
  "anyhow",
1436
1436
  "bytes",
@@ -1532,9 +1532,9 @@ dependencies = [
1532
1532
 
1533
1533
  [[package]]
1534
1534
  name = "mcp-methods"
1535
- version = "0.4.2"
1535
+ version = "0.4.3"
1536
1536
  source = "registry+https://github.com/rust-lang/crates.io-index"
1537
- checksum = "04c1063113c3a885d5967e45da2ea1cbb235938a9ba02333f15e81149b451b23"
1537
+ checksum = "caa2079c12e642cd4b9a20543c85305eb5ffee04b1d565feab47b084db167a99"
1538
1538
  dependencies = [
1539
1539
  "anyhow",
1540
1540
  "clap",
@@ -0,0 +1,42 @@
1
+ [workspace]
2
+ members = ["crates/codingest", "crates/codingest-cli", "crates/codingest-mcp", "crates/codingest-py"]
3
+ resolver = "2"
4
+
5
+ [workspace.package]
6
+ version = "0.1.6"
7
+ edition = "2021"
8
+ rust-version = "1.88"
9
+ license = "MIT"
10
+ repository = "https://github.com/kkollsga/codingest"
11
+
12
+ [workspace.dependencies]
13
+ base64 = "0.22"
14
+ sha2 = "0.11"
15
+ # kglite engine + MCP server — imported as crates.io libraries. The 0.15.5
16
+ # floor adds the two workspace controls codingest asked upstream for:
17
+ # `workspace.sandbox_root`, a real containment boundary that confines
18
+ # `set_root_dir` to a subtree instead of trusting the caller's path, and
19
+ # `workspace.adopt_client_roots`. Both land on top of the generic
20
+ # workspace-graph hooks, tri-state `durable` levels, typed
21
+ # constraint/conflict exceptions carrying a stable `.code`, and the
22
+ # deterministic Postcard persistence stack inherited from 0.14.5/0.15.0-0.15.3.
23
+ # 0.15.4 is deliberately skipped: it was WAL/durability and mapped-graph work
24
+ # we consume none of — codingest uses no `durable=` level, no `MappedGraph`,
25
+ # and no disk storage. Neither patch changes `kglite::api`, graph output,
26
+ # property encoding, or `.kgl` serialization.
27
+ # Keep both libraries aligned so the graph and server share one engine release.
28
+ kglite = { version = "0.15.5", default-features = false }
29
+ kglite-mcp-server = { version = "0.15.5", default-features = false }
30
+
31
+ # Mirror KGLite's release codegen so the standalone builder has
32
+ # performance parity with the in-tree component (see KGLite
33
+ # workspace Cargo.toml).
34
+ [profile.release]
35
+ lto = "thin"
36
+ codegen-units = 1
37
+ strip = "symbols"
38
+
39
+ [profile.profiling]
40
+ inherits = "release"
41
+ debug = "line-tables-only"
42
+ strip = "none"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codingest
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Programming Language :: Python :: 3
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3.14
12
12
  Classifier: Programming Language :: Rust
13
13
  Classifier: Topic :: Software Development
14
14
  Classifier: Topic :: Software Development :: Libraries
15
- Requires-Dist: kglite>=0.15.3,<0.16
15
+ Requires-Dist: kglite>=0.15.5,<0.16
16
16
  License-File: LICENSE
17
17
  Summary: Build fast, queryable code graphs for AI agents, MCP code review, and local or GitHub repository analysis.
18
18
  Keywords: ai-agents,mcp,code-review,knowledge-graph,code-analysis,github,tree-sitter,cypher
@@ -136,9 +136,16 @@ The bundled terminal command offers the same workflow:
136
136
  ```bash
137
137
  codingest build /path/to/repo
138
138
  codingest status --output /path/to/repo/.kglite/code-review.kgl
139
+ codingest query -g /path/to/repo/.kglite/code-review.kgl \
140
+ "MATCH (f:Function)-[:CALLS]->(g:Function) RETURN f.name, g.name LIMIT 20"
139
141
  kglite describe /path/to/repo/.kglite/code-review.kgl --connections
140
142
  ```
141
143
 
144
+ `codingest query` prints unbounded TSV to stdout (use `--format csv|json`, or
145
+ Cypher `LIMIT` to bound rows), warns on stderr when the graph has gone stale,
146
+ and with `--require-fresh` refuses a stale graph with exit code 3 — see
147
+ [docs/cli.md](docs/cli.md).
148
+
142
149
  ## Analyse an open-source repository
143
150
 
144
151
  ```python
@@ -180,7 +187,7 @@ codingest skill install # code-review Agent Skill
180
187
  ```
181
188
 
182
189
  The wheel bundles every grammar plus the `codingest` and `codingest-mcp`
183
- commands. KGLite ≥0.15.3 is installed automatically as the query/storage
190
+ commands. KGLite ≥0.15.5 is installed automatically as the query/storage
184
191
  engine; its MCP server and the transitive `mcp-methods` framework power the
185
192
  builder-aware Codingest server. Nothing else needs to be installed.
186
193
 
@@ -193,7 +200,7 @@ Python prerequisites.
193
200
  ```toml
194
201
  [dependencies]
195
202
  codingest = "0.1"
196
- kglite = "0.15.3"
203
+ kglite = "0.15.5"
197
204
  ```
198
205
 
199
206
  ```rust
@@ -265,7 +272,7 @@ diagnostic.
265
272
  ## Dependency policy
266
273
 
267
274
  `kglite` and `kglite-mcp-server` use matching crates.io requirements with a
268
- 0.15.3 minimum and a shared lockfile. This keeps the builder, persistence
275
+ 0.15.5 minimum and a shared lockfile. This keeps the builder, persistence
269
276
  handoff, and embedded MCP server on one compatible engine patch line.
270
277
 
271
278
  ## Parity with the (now-removed) in-tree component
@@ -109,9 +109,16 @@ The bundled terminal command offers the same workflow:
109
109
  ```bash
110
110
  codingest build /path/to/repo
111
111
  codingest status --output /path/to/repo/.kglite/code-review.kgl
112
+ codingest query -g /path/to/repo/.kglite/code-review.kgl \
113
+ "MATCH (f:Function)-[:CALLS]->(g:Function) RETURN f.name, g.name LIMIT 20"
112
114
  kglite describe /path/to/repo/.kglite/code-review.kgl --connections
113
115
  ```
114
116
 
117
+ `codingest query` prints unbounded TSV to stdout (use `--format csv|json`, or
118
+ Cypher `LIMIT` to bound rows), warns on stderr when the graph has gone stale,
119
+ and with `--require-fresh` refuses a stale graph with exit code 3 — see
120
+ [docs/cli.md](docs/cli.md).
121
+
115
122
  ## Analyse an open-source repository
116
123
 
117
124
  ```python
@@ -153,7 +160,7 @@ codingest skill install # code-review Agent Skill
153
160
  ```
154
161
 
155
162
  The wheel bundles every grammar plus the `codingest` and `codingest-mcp`
156
- commands. KGLite ≥0.15.3 is installed automatically as the query/storage
163
+ commands. KGLite ≥0.15.5 is installed automatically as the query/storage
157
164
  engine; its MCP server and the transitive `mcp-methods` framework power the
158
165
  builder-aware Codingest server. Nothing else needs to be installed.
159
166
 
@@ -166,7 +173,7 @@ Python prerequisites.
166
173
  ```toml
167
174
  [dependencies]
168
175
  codingest = "0.1"
169
- kglite = "0.15.3"
176
+ kglite = "0.15.5"
170
177
  ```
171
178
 
172
179
  ```rust
@@ -238,7 +245,7 @@ diagnostic.
238
245
  ## Dependency policy
239
246
 
240
247
  `kglite` and `kglite-mcp-server` use matching crates.io requirements with a
241
- 0.15.3 minimum and a shared lockfile. This keeps the builder, persistence
248
+ 0.15.5 minimum and a shared lockfile. This keeps the builder, persistence
242
249
  handoff, and embedded MCP server on one compatible engine patch line.
243
250
 
244
251
  ## Parity with the (now-removed) in-tree component
@@ -10,7 +10,7 @@ keywords = ["knowledge-graph", "code-analysis", "tree-sitter", "cypher", "kglite
10
10
  categories = ["development-tools", "parser-implementations"]
11
11
 
12
12
  # Requires the kglite 0.15 engine API (`kglite::api::code_entities`); the
13
- # workspace pins the current 0.15 patch floor (0.15.3).
13
+ # workspace pins the current 0.15 patch floor (0.15.5).
14
14
 
15
15
  [lib]
16
16
  name = "codingest"
@@ -486,6 +486,11 @@ fn main() {
486
486
  "corpus_files": corpus.sha256.as_ref().map(|_| corpus.files),
487
487
  "corpus_bytes": corpus.sha256.as_ref().map(|_| corpus.bytes),
488
488
  "corpus_sha256": corpus.sha256,
489
+ // Fixed build configuration, echoed so a recorded row states it.
490
+ // Unlike codingest_stats, this harness has always built docs-ON,
491
+ // so the docs pass IS in its build times and node counts.
492
+ "include_tests": false,
493
+ "include_docs": true,
489
494
  "nodes": nodes,
490
495
  "edges": edges,
491
496
  "build_a_secs": (build_a_secs * 1000.0).round() / 1000.0,