descry-codegraph 0.3.2__py3-none-any.whl → 0.3.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.
- descry/__init__.py +1 -1
- descry/generate.py +19 -3
- descry/handlers.py +2 -2
- {descry_codegraph-0.3.2.dist-info → descry_codegraph-0.3.3.dist-info}/METADATA +3 -3
- {descry_codegraph-0.3.2.dist-info → descry_codegraph-0.3.3.dist-info}/RECORD +9 -9
- {descry_codegraph-0.3.2.dist-info → descry_codegraph-0.3.3.dist-info}/WHEEL +0 -0
- {descry_codegraph-0.3.2.dist-info → descry_codegraph-0.3.3.dist-info}/entry_points.txt +0 -0
- {descry_codegraph-0.3.2.dist-info → descry_codegraph-0.3.3.dist-info}/licenses/LICENSE +0 -0
- {descry_codegraph-0.3.2.dist-info → descry_codegraph-0.3.3.dist-info}/licenses/THIRD-PARTY-NOTICES.md +0 -0
descry/__init__.py
CHANGED
descry/generate.py
CHANGED
|
@@ -18650,6 +18650,15 @@ class CallResolver:
|
|
|
18650
18650
|
if self.standard[lang].key(callee, source_id) == callee:
|
|
18651
18651
|
held = self._returned_type(constructed, source_id)
|
|
18652
18652
|
self._result = held or self._result
|
|
18653
|
+
elif verdict[1] == _EXTERNAL and not origin and lang == "dart":
|
|
18654
|
+
# Dart constructs without `new`: a call of a standard type's
|
|
18655
|
+
# name gives an instance of it.
|
|
18656
|
+
library = self.standard[lang]
|
|
18657
|
+
if (
|
|
18658
|
+
callee in library.data["types"]
|
|
18659
|
+
and library.key(callee, source_id) == callee
|
|
18660
|
+
):
|
|
18661
|
+
self._result = self._returned_type(callee, source_id) or self._result
|
|
18653
18662
|
elif verdict[1] == _EXTERNAL and not origin and lang == "typescript":
|
|
18654
18663
|
known, value = self._js_global(callee, source_id)
|
|
18655
18664
|
if known:
|
|
@@ -24878,12 +24887,19 @@ class CodeGraphBuilder:
|
|
|
24878
24887
|
for root, dirs, files in os.walk(self.root_dir, followlinks=False):
|
|
24879
24888
|
dirs.sort()
|
|
24880
24889
|
files.sort()
|
|
24881
|
-
# Filter by name first (excluded dirs, dotfiles
|
|
24882
|
-
# ignores.
|
|
24890
|
+
# Filter by name first (excluded dirs, dotfiles, the build output
|
|
24891
|
+
# of a .NET or an Eclipse project), and by what git ignores.
|
|
24892
|
+
# `bin` holds sources in Dart and Rust.
|
|
24893
|
+
built = any(
|
|
24894
|
+
f.endswith((".csproj", ".vbproj", ".fsproj")) or f == ".classpath"
|
|
24895
|
+
for f in files
|
|
24896
|
+
)
|
|
24883
24897
|
dirs[:] = [
|
|
24884
24898
|
d
|
|
24885
24899
|
for d in kept(root, dirs)
|
|
24886
|
-
if not d.startswith(".")
|
|
24900
|
+
if not d.startswith(".")
|
|
24901
|
+
and d not in self.excluded_dirs
|
|
24902
|
+
and not (built and d == "bin")
|
|
24887
24903
|
]
|
|
24888
24904
|
# Then filter by realpath containment — drop directories that are
|
|
24889
24905
|
# symlinks pointing outside the project root.
|
descry/handlers.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: descry-codegraph
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Codebase knowledge graph: polyglot indexer, semantic search, call-graph analysis
|
|
5
5
|
Project-URL: Homepage, https://github.com/06chaynes/descry
|
|
6
6
|
Project-URL: Repository, https://github.com/06chaynes/descry
|
|
@@ -267,7 +267,7 @@ For customization, add a `.descry.toml` to your project root.
|
|
|
267
267
|
|
|
268
268
|
```toml
|
|
269
269
|
[project]
|
|
270
|
-
# OPTIONAL — REPLACES the
|
|
270
|
+
# OPTIONAL — REPLACES the 24-element default. Leave unset to keep defaults
|
|
271
271
|
# (.git, .gradle, .next, .svelte-kit, .venv, node_modules, target, build, …).
|
|
272
272
|
# excluded_dirs = ["target", "node_modules", "dist", "build", "vendor"]
|
|
273
273
|
# OPTIONAL — in a git repository, files git ignores are not indexed.
|
|
@@ -393,7 +393,7 @@ Share of project calls resolved without SCIP, measured on public repositories at
|
|
|
393
393
|
| C# | serilog `bebc771`, Newtonsoft.Json `52fa3ae` (`Src/Newtonsoft.Json`) | 94%, 91% |
|
|
394
394
|
| C | jq `a19efdd`, libuv `954c1d1` | 99%, 79% |
|
|
395
395
|
| C++ | leveldb `7ee830d`, fmt `c4927e6` | 97%, 86% |
|
|
396
|
-
| Dart | shelf `b2cb503`, riverpod `1efba1c` (`packages/riverpod`) |
|
|
396
|
+
| Dart | shelf `b2cb503`, riverpod `1efba1c` (`packages/riverpod`) | 95%, 91% |
|
|
397
397
|
| Ruby | rack `a9833c8`, sinatra `cb22afd` | 70%, 39% |
|
|
398
398
|
|
|
399
399
|
The remainder is unresolved, not wrong: of 450 resolved edges drawn at random from these repositories and read against the source, every one reaches the definition the call reaches. Ruby is low because the language declares no types and calls inside DSL blocks run with another `self`; libuv because most of its functions exist once for Unix and once for Windows, and the build files, not the source, choose between them.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
descry/__init__.py,sha256=
|
|
1
|
+
descry/__init__.py,sha256=V8pM6KBIjHni4e0RtAtONvvDApvGdl4NyQQ8hE-NBDM,148
|
|
2
2
|
descry/_comments.py,sha256=CCL0ywnHTWDZE2zKRpQwgbU2Re7B979XdbLyLIZooHc,2499
|
|
3
3
|
descry/_env.py,sha256=xme87ibczJ0wBvFUlZGXeyqO6lFs0Xk2hg6Uxi1mVJU,251
|
|
4
4
|
descry/_files.py,sha256=1fcXCw-tLXs9JOq67H0qHcKa0j538f65ZysH9op1HXM,1826
|
|
@@ -10,10 +10,10 @@ descry/cross_lang.py,sha256=tGBhUrkt3EPu0A2J8Fwi3RgneLtTbZjWiIaPlqk4tuI,14906
|
|
|
10
10
|
descry/dart_parser.py,sha256=yOFLNqUdSSF1tS4YPuYGZLyY5o3xKUIh5QwFQDhcI30,77634
|
|
11
11
|
descry/dotnet_parser.py,sha256=kzH28pmY6XXpOnFcghta_srarojrMmz7_I3887v0Yfo,57094
|
|
12
12
|
descry/embeddings.py,sha256=ahDwLXDIB6-mYAK1Ic8QpwPhTzVaULiojpyaIl6d1q0,37221
|
|
13
|
-
descry/generate.py,sha256=
|
|
13
|
+
descry/generate.py,sha256=lQLjvQoaIOk3WUfnU5LnaABbA1Lq25W_VAVIrEapyD4,1073512
|
|
14
14
|
descry/git_history.py,sha256=EGBzjorPBT3ZyUdYuCBqvb2aoueoH2X5vOd83P67Mb0,67277
|
|
15
15
|
descry/go_parser.py,sha256=j2rMjgERA1A7Ma8sS1ha-QtoD4_EipUPVqs3XbsQRrE,40802
|
|
16
|
-
descry/handlers.py,sha256=
|
|
16
|
+
descry/handlers.py,sha256=SBxmqROMqChk59NsHrrXPCw3Zh8e9udOToors0_oTqs,114059
|
|
17
17
|
descry/java_parser.py,sha256=SK78X_Ykwkb9iLVpq9IemWLURZRF_l1XX6RFaHNkKuA,41424
|
|
18
18
|
descry/mcp_server.py,sha256=W6dLKBBB5FJ8wcuzXc_FbjOcvcvIs1ZEABoYAUDsW9I,14216
|
|
19
19
|
descry/php_parser.py,sha256=CUrfMO4lnYCmUGXR-FqkQ9kaoPsH8Gu13q3MwIMjsw4,56739
|
|
@@ -54,9 +54,9 @@ descry/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
54
54
|
descry/web/server.py,sha256=ESWuPSwXA0LtCo1bwWqiQN1wjvMDbXhJ3byqlPg99FU,38475
|
|
55
55
|
descry/web/web/index.html,sha256=WvcTTkJSpdgDzYLk79YWlx2PG8d7CqwFwi2xgBH3-oc,151183
|
|
56
56
|
descry/web/web/style.css,sha256=VTQ1mC-n0BYuDlI1ghozfDG-azLqhJcpWnA0eZtts1o,35816
|
|
57
|
-
descry_codegraph-0.3.
|
|
58
|
-
descry_codegraph-0.3.
|
|
59
|
-
descry_codegraph-0.3.
|
|
60
|
-
descry_codegraph-0.3.
|
|
61
|
-
descry_codegraph-0.3.
|
|
62
|
-
descry_codegraph-0.3.
|
|
57
|
+
descry_codegraph-0.3.3.dist-info/METADATA,sha256=LvF9t97jZuAxPdXXKzKuccWpo6g9cKLOVc0sInYi4bo,24021
|
|
58
|
+
descry_codegraph-0.3.3.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
59
|
+
descry_codegraph-0.3.3.dist-info/entry_points.txt,sha256=qz8s4CwO8y8SAryD9PibrMPDgAbFV2L3sIafvl91_HQ,154
|
|
60
|
+
descry_codegraph-0.3.3.dist-info/licenses/LICENSE,sha256=V8lsocOdIekq2MluAKSu-wGZBsWPBNHCgG7OBfUMlt0,1073
|
|
61
|
+
descry_codegraph-0.3.3.dist-info/licenses/THIRD-PARTY-NOTICES.md,sha256=igEI8prnwdkwsNBWpIZGKDoTs-wuGD6ijhpDLI6ks2g,1944
|
|
62
|
+
descry_codegraph-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|