codegraph-engine 2.3.0__py3-none-any.whl → 3.0.1__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.
- codegraph/__init__.py +1 -1
- codegraph/__main__.py +7 -0
- codegraph/agent_brain.py +253 -2
- codegraph/agent_capabilities.py +1348 -67
- codegraph/agent_rules.py +2 -1
- codegraph/api_drift.py +455 -0
- codegraph/architecture_rules.py +123 -0
- codegraph/async_queue/__init__.py +50 -0
- codegraph/async_queue/detectors/__init__.py +48 -0
- codegraph/async_queue/detectors/celery.py +160 -0
- codegraph/async_queue/detectors/kafka.py +168 -0
- codegraph/async_queue/detectors/rabbitmq.py +116 -0
- codegraph/async_queue/detectors/redis.py +130 -0
- codegraph/async_queue/detectors/sqs.py +135 -0
- codegraph/async_queue/models.py +161 -0
- codegraph/async_queue/otel_models.py +74 -0
- codegraph/async_queue/otel_parser.py +337 -0
- codegraph/async_queue/reconciler.py +427 -0
- codegraph/async_queue/scanner.py +291 -0
- codegraph/async_queue/traversal.py +447 -0
- codegraph/change_impact.py +320 -110
- codegraph/changelog.py +170 -0
- codegraph/cli.py +1605 -62
- codegraph/cli_output.py +17 -2
- codegraph/context.py +135 -24
- codegraph/context_freshness.py +2 -0
- codegraph/database/__init__.py +14 -0
- codegraph/database/extractor.py +712 -17
- codegraph/database/interrogation.py +388 -2
- codegraph/database/schema_drift.py +862 -0
- codegraph/dataflow_propagation.py +118 -0
- codegraph/dead_code.py +387 -0
- codegraph/epistemic.py +15 -0
- codegraph/evidence_contract.py +34 -3
- codegraph/federation.py +245 -0
- codegraph/frameworks.py +234 -12
- codegraph/frameworks_nestjs.py +502 -0
- codegraph/frameworks_nextjs.py +337 -0
- codegraph/frameworks_react.py +457 -0
- codegraph/freshness.py +2 -0
- codegraph/frontend_html.py +109 -0
- codegraph/git.py +2 -0
- codegraph/git_state.py +2 -0
- codegraph/graph/traversal.py +150 -7
- codegraph/graph_csr.py +218 -0
- codegraph/incremental.py +150 -0
- codegraph/indexing/__init__.py +7 -1
- codegraph/indexing/classifier.py +5 -0
- codegraph/indexing/indexer.py +292 -38
- codegraph/indexing/languages/__init__.py +1 -0
- codegraph/indexing/languages/cpp.py +457 -0
- codegraph/indexing/languages/go.py +459 -0
- codegraph/indexing/languages/jvm.py +583 -0
- codegraph/indexing/languages/rust.py +507 -0
- codegraph/indexing/models.py +15 -1
- codegraph/indexing/parser.py +385 -9
- codegraph/indexing/pool.py +136 -0
- codegraph/indexing/protocols.py +220 -0
- codegraph/indexing/scanner.py +23 -0
- codegraph/indexing/templates.py +418 -0
- codegraph/interrogation.py +207 -39
- codegraph/lsp.py +318 -0
- codegraph/lsp_bridge/__init__.py +16 -0
- codegraph/lsp_bridge/bridge.py +102 -0
- codegraph/lsp_bridge/client.py +207 -0
- codegraph/lsp_bridge/models.py +71 -0
- codegraph/mcp/server.py +502 -29
- codegraph/memory/trajectory.py +282 -0
- codegraph/models.py +7 -0
- codegraph/monorepo.py +3 -0
- codegraph/multi_agent/__init__.py +13 -0
- codegraph/multi_agent/coordinator.py +229 -0
- codegraph/multi_agent/models.py +76 -0
- codegraph/optimizer.py +42 -5
- codegraph/polymorphism.py +95 -0
- codegraph/pr_review.py +296 -0
- codegraph/process_lifecycle.py +50 -12
- codegraph/reachability.py +198 -0
- codegraph/reachability_index.py +74 -0
- codegraph/refactor/__init__.py +48 -0
- codegraph/refactor/models.py +114 -0
- codegraph/refactor/patcher.py +348 -0
- codegraph/refactor/renamer.py +844 -0
- codegraph/refactor/transactions.py +414 -0
- codegraph/repair.py +233 -0
- codegraph/resolver.py +1357 -161
- codegraph/retrieval_policy.py +22 -1
- codegraph/roblox.py +2174 -0
- codegraph/route_composer.py +7 -0
- codegraph/route_topology.py +172 -0
- codegraph/runtime/__init__.py +25 -0
- codegraph/runtime/collector.py +155 -0
- codegraph/runtime/db_watcher.py +191 -0
- codegraph/runtime/ingestor.py +30 -10
- codegraph/runtime/otel_receiver.py +208 -0
- codegraph/runtime/port_inspector.py +304 -0
- codegraph/runtime/runner.py +155 -6
- codegraph/runtime/trace_linker.py +175 -0
- codegraph/sandbox.py +215 -0
- codegraph/search/hybrid.py +26 -0
- codegraph/security/supply_chain.py +188 -0
- codegraph/security/taint.py +421 -0
- codegraph/semantic_decorators.py +34 -3
- codegraph/structural_diff.py +2 -0
- codegraph/styles.py +144 -0
- codegraph/symbol_history.py +2 -0
- codegraph/test_gen.py +437 -0
- codegraph/tsconfig.py +236 -0
- codegraph/ui/__init__.py +6 -0
- codegraph/ui/server.py +876 -0
- codegraph/watcher.py +323 -0
- {codegraph_engine-2.3.0.dist-info → codegraph_engine-3.0.1.dist-info}/METADATA +365 -67
- codegraph_engine-3.0.1.dist-info/RECORD +164 -0
- {codegraph_engine-2.3.0.dist-info → codegraph_engine-3.0.1.dist-info}/WHEEL +1 -1
- codegraph_engine-2.3.0.dist-info/RECORD +0 -94
- {codegraph_engine-2.3.0.dist-info → codegraph_engine-3.0.1.dist-info}/entry_points.txt +0 -0
- {codegraph_engine-2.3.0.dist-info → codegraph_engine-3.0.1.dist-info}/licenses/LICENSE +0 -0
- {codegraph_engine-2.3.0.dist-info → codegraph_engine-3.0.1.dist-info}/top_level.txt +0 -0
codegraph/retrieval_policy.py
CHANGED
|
@@ -36,6 +36,17 @@ _DB_RELATIONSHIP_TYPES: frozenset[str] = frozenset({
|
|
|
36
36
|
"READS_ENV",
|
|
37
37
|
})
|
|
38
38
|
|
|
39
|
+
_ROBLOX_RELATIONSHIP_TYPES: frozenset[str] = frozenset({
|
|
40
|
+
"REQUIRES_MODULE",
|
|
41
|
+
"CLIENT_DISPATCHES_REMOTE",
|
|
42
|
+
"SERVER_HANDLES_REMOTE",
|
|
43
|
+
"GETS_SERVICE",
|
|
44
|
+
"PROVIDES_SERVICE",
|
|
45
|
+
"READS_PERSISTENCE",
|
|
46
|
+
"WRITES_PERSISTENCE",
|
|
47
|
+
"CONFIGURES_PERSISTENCE",
|
|
48
|
+
})
|
|
49
|
+
|
|
39
50
|
|
|
40
51
|
@dataclass(frozen=True)
|
|
41
52
|
class RetrievalPolicy:
|
|
@@ -58,7 +69,11 @@ class RetrievalPolicy:
|
|
|
58
69
|
if not self.allowed_relationship_types:
|
|
59
70
|
return True
|
|
60
71
|
rel = relationship.upper()
|
|
61
|
-
if
|
|
72
|
+
if (
|
|
73
|
+
rel in self.allowed_relationship_types
|
|
74
|
+
or rel in _DB_RELATIONSHIP_TYPES
|
|
75
|
+
or rel in _ROBLOX_RELATIONSHIP_TYPES
|
|
76
|
+
):
|
|
62
77
|
return True
|
|
63
78
|
if rel.startswith("TESTS") and "TESTS" in self.allowed_relationship_types:
|
|
64
79
|
return True
|
|
@@ -84,6 +99,8 @@ _register(RetrievalPolicy(
|
|
|
84
99
|
"CALLS", "DISPATCHES_TO", "RESOLVES_DEPENDENCY", "INJECTS", "PROVIDES",
|
|
85
100
|
"DEPENDS_ON", "IMPORTS", "TESTS", "POSSIBLE_CALLS",
|
|
86
101
|
"DEFINES", "CONTAINS", "PARALLEL_IMPLEMENTATION",
|
|
102
|
+
"DISPATCHES_TASK", "TRIGGERS_SIGNAL", "HANDLES_SIGNAL", "RENDERS_TEMPLATE",
|
|
103
|
+
"DISPATCHES_FORWARD", "TOOL_HANDLER", "PIPELINE_STEP",
|
|
87
104
|
}),
|
|
88
105
|
preferred_flow=("ENTRYPOINT", "HANDLER", "SERVICE", "DATA", "TEST"),
|
|
89
106
|
include_callers=True,
|
|
@@ -104,6 +121,8 @@ _register(RetrievalPolicy(
|
|
|
104
121
|
"POSSIBLE_CALLS", "EXTENDS", "IMPLEMENTS", "PARALLEL_IMPLEMENTATION",
|
|
105
122
|
"MOUNTS", "HANDLED_BY", "ROUTE_HANDLER",
|
|
106
123
|
"REGISTERS", "DISPATCHES_TO", "EVENT_LISTENER", "TASK_HANDLER", "COMMAND_HANDLER",
|
|
124
|
+
"DISPATCHES_TASK", "TRIGGERS_SIGNAL", "HANDLES_SIGNAL", "RENDERS_TEMPLATE",
|
|
125
|
+
"DISPATCHES_FORWARD", "TOOL_HANDLER", "PIPELINE_STEP",
|
|
107
126
|
"INJECTS", "PROVIDES", "RESOLVES_DEPENDENCY", "CONFIGURES",
|
|
108
127
|
"DEPENDS_ON_PACKAGE", "TESTS",
|
|
109
128
|
}),
|
|
@@ -126,6 +145,8 @@ _register(RetrievalPolicy(
|
|
|
126
145
|
"POSSIBLE_CALLS", "DEFINES", "PARALLEL_IMPLEMENTATION",
|
|
127
146
|
"HANDLED_BY", "MOUNTS", "ROUTE_HANDLER",
|
|
128
147
|
"REGISTERS", "DISPATCHES_TO", "EVENT_LISTENER", "TASK_HANDLER", "COMMAND_HANDLER",
|
|
148
|
+
"DISPATCHES_TASK", "TRIGGERS_SIGNAL", "HANDLES_SIGNAL", "RENDERS_TEMPLATE",
|
|
149
|
+
"DISPATCHES_FORWARD", "TOOL_HANDLER", "PIPELINE_STEP",
|
|
129
150
|
"INJECTS", "PROVIDES", "RESOLVES_DEPENDENCY", "CONFIGURES",
|
|
130
151
|
"DEPENDS_ON_PACKAGE",
|
|
131
152
|
}),
|