repodna-engine 1.0.1__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 (178) hide show
  1. repodna_engine-1.0.1/LICENSE +21 -0
  2. repodna_engine-1.0.1/PKG-INFO +129 -0
  3. repodna_engine-1.0.1/README.md +82 -0
  4. repodna_engine-1.0.1/backend/repodna/__init__.py +3 -0
  5. repodna_engine-1.0.1/backend/repodna/__main__.py +10 -0
  6. repodna_engine-1.0.1/backend/repodna/advisor/__init__.py +17 -0
  7. repodna_engine-1.0.1/backend/repodna/advisor/engine.py +502 -0
  8. repodna_engine-1.0.1/backend/repodna/advisor/models.py +101 -0
  9. repodna_engine-1.0.1/backend/repodna/agent/__init__.py +87 -0
  10. repodna_engine-1.0.1/backend/repodna/agent/context.py +558 -0
  11. repodna_engine-1.0.1/backend/repodna/agent/deltas.py +198 -0
  12. repodna_engine-1.0.1/backend/repodna/agent/evidence.py +134 -0
  13. repodna_engine-1.0.1/backend/repodna/agent/expansion.py +447 -0
  14. repodna_engine-1.0.1/backend/repodna/agent/localization.py +518 -0
  15. repodna_engine-1.0.1/backend/repodna/agent/models.py +695 -0
  16. repodna_engine-1.0.1/backend/repodna/agent/patch.py +378 -0
  17. repodna_engine-1.0.1/backend/repodna/agent/postflight.py +278 -0
  18. repodna_engine-1.0.1/backend/repodna/agent/preflight.py +336 -0
  19. repodna_engine-1.0.1/backend/repodna/agent/ranking.py +318 -0
  20. repodna_engine-1.0.1/backend/repodna/agent/repo_map.py +392 -0
  21. repodna_engine-1.0.1/backend/repodna/agent/safety.py +111 -0
  22. repodna_engine-1.0.1/backend/repodna/agent/service.py +574 -0
  23. repodna_engine-1.0.1/backend/repodna/agent/sessions.py +264 -0
  24. repodna_engine-1.0.1/backend/repodna/agent/task.py +660 -0
  25. repodna_engine-1.0.1/backend/repodna/agent/telemetry.py +101 -0
  26. repodna_engine-1.0.1/backend/repodna/agent/token_budget.py +231 -0
  27. repodna_engine-1.0.1/backend/repodna/api/__init__.py +1 -0
  28. repodna_engine-1.0.1/backend/repodna/api/agent_routes.py +248 -0
  29. repodna_engine-1.0.1/backend/repodna/api/app.py +2904 -0
  30. repodna_engine-1.0.1/backend/repodna/benchmarks/__init__.py +29 -0
  31. repodna_engine-1.0.1/backend/repodna/benchmarks/baselines.py +126 -0
  32. repodna_engine-1.0.1/backend/repodna/benchmarks/budget_bench.py +162 -0
  33. repodna_engine-1.0.1/backend/repodna/benchmarks/engine.py +418 -0
  34. repodna_engine-1.0.1/backend/repodna/benchmarks/evaluator.py +310 -0
  35. repodna_engine-1.0.1/backend/repodna/benchmarks/metrics.py +206 -0
  36. repodna_engine-1.0.1/backend/repodna/benchmarks/models.py +194 -0
  37. repodna_engine-1.0.1/backend/repodna/benchmarks/scalability.py +166 -0
  38. repodna_engine-1.0.1/backend/repodna/brain/__init__.py +46 -0
  39. repodna_engine-1.0.1/backend/repodna/brain/evidence.py +276 -0
  40. repodna_engine-1.0.1/backend/repodna/brain/extractor.py +1207 -0
  41. repodna_engine-1.0.1/backend/repodna/brain/indexer.py +766 -0
  42. repodna_engine-1.0.1/backend/repodna/brain/models.py +275 -0
  43. repodna_engine-1.0.1/backend/repodna/brain/multilang_extractors.py +889 -0
  44. repodna_engine-1.0.1/backend/repodna/brain/retrieval.py +469 -0
  45. repodna_engine-1.0.1/backend/repodna/brain/tracer.py +203 -0
  46. repodna_engine-1.0.1/backend/repodna/cli/__init__.py +1 -0
  47. repodna_engine-1.0.1/backend/repodna/cli/__main__.py +10 -0
  48. repodna_engine-1.0.1/backend/repodna/cli/agent_cmd.py +228 -0
  49. repodna_engine-1.0.1/backend/repodna/cli/installer.py +590 -0
  50. repodna_engine-1.0.1/backend/repodna/cli/main.py +2173 -0
  51. repodna_engine-1.0.1/backend/repodna/cli/plugin_cmd.py +130 -0
  52. repodna_engine-1.0.1/backend/repodna/cli/workspace_cmd.py +211 -0
  53. repodna_engine-1.0.1/backend/repodna/context/__init__.py +9 -0
  54. repodna_engine-1.0.1/backend/repodna/context/builder.py +379 -0
  55. repodna_engine-1.0.1/backend/repodna/context/models.py +133 -0
  56. repodna_engine-1.0.1/backend/repodna/contract/__init__.py +39 -0
  57. repodna_engine-1.0.1/backend/repodna/contract/evaluator.py +318 -0
  58. repodna_engine-1.0.1/backend/repodna/contract/loader.py +260 -0
  59. repodna_engine-1.0.1/backend/repodna/contract/models.py +185 -0
  60. repodna_engine-1.0.1/backend/repodna/core/__init__.py +1 -0
  61. repodna_engine-1.0.1/backend/repodna/core/analyzer.py +1424 -0
  62. repodna_engine-1.0.1/backend/repodna/diff/__init__.py +35 -0
  63. repodna_engine-1.0.1/backend/repodna/diff/engine.py +332 -0
  64. repodna_engine-1.0.1/backend/repodna/diff/models.py +117 -0
  65. repodna_engine-1.0.1/backend/repodna/diff/snapshot.py +248 -0
  66. repodna_engine-1.0.1/backend/repodna/ecosystem/__init__.py +27 -0
  67. repodna_engine-1.0.1/backend/repodna/ecosystem/contracts.py +129 -0
  68. repodna_engine-1.0.1/backend/repodna/ecosystem/doctor.py +253 -0
  69. repodna_engine-1.0.1/backend/repodna/git_insights/__init__.py +1 -0
  70. repodna_engine-1.0.1/backend/repodna/git_insights/analyzer.py +273 -0
  71. repodna_engine-1.0.1/backend/repodna/graph/__init__.py +1 -0
  72. repodna_engine-1.0.1/backend/repodna/graph/engine.py +562 -0
  73. repodna_engine-1.0.1/backend/repodna/guardian/__init__.py +17 -0
  74. repodna_engine-1.0.1/backend/repodna/guardian/engine.py +369 -0
  75. repodna_engine-1.0.1/backend/repodna/guardian/models.py +104 -0
  76. repodna_engine-1.0.1/backend/repodna/history/__init__.py +40 -0
  77. repodna_engine-1.0.1/backend/repodna/history/cache.py +240 -0
  78. repodna_engine-1.0.1/backend/repodna/history/diff.py +394 -0
  79. repodna_engine-1.0.1/backend/repodna/history/engine.py +557 -0
  80. repodna_engine-1.0.1/backend/repodna/history/evidence.py +160 -0
  81. repodna_engine-1.0.1/backend/repodna/history/models.py +258 -0
  82. repodna_engine-1.0.1/backend/repodna/history/timeline.py +164 -0
  83. repodna_engine-1.0.1/backend/repodna/intelligence/__init__.py +33 -0
  84. repodna_engine-1.0.1/backend/repodna/intelligence/models.py +165 -0
  85. repodna_engine-1.0.1/backend/repodna/intelligence/service.py +570 -0
  86. repodna_engine-1.0.1/backend/repodna/live/__init__.py +94 -0
  87. repodna_engine-1.0.1/backend/repodna/live/alerts.py +443 -0
  88. repodna_engine-1.0.1/backend/repodna/live/coordinator.py +351 -0
  89. repodna_engine-1.0.1/backend/repodna/live/diff.py +444 -0
  90. repodna_engine-1.0.1/backend/repodna/live/events.py +471 -0
  91. repodna_engine-1.0.1/backend/repodna/live/filtering.py +329 -0
  92. repodna_engine-1.0.1/backend/repodna/live/history.py +637 -0
  93. repodna_engine-1.0.1/backend/repodna/live/models.py +505 -0
  94. repodna_engine-1.0.1/backend/repodna/live/observer.py +653 -0
  95. repodna_engine-1.0.1/backend/repodna/live/reconciliation.py +253 -0
  96. repodna_engine-1.0.1/backend/repodna/live/session.py +1547 -0
  97. repodna_engine-1.0.1/backend/repodna/mcp/__init__.py +5 -0
  98. repodna_engine-1.0.1/backend/repodna/mcp/__main__.py +6 -0
  99. repodna_engine-1.0.1/backend/repodna/mcp/agent_tools.py +258 -0
  100. repodna_engine-1.0.1/backend/repodna/mcp/server.py +3283 -0
  101. repodna_engine-1.0.1/backend/repodna/mcp/workspace_tools.py +200 -0
  102. repodna_engine-1.0.1/backend/repodna/parsers/__init__.py +13 -0
  103. repodna_engine-1.0.1/backend/repodna/parsers/base.py +126 -0
  104. repodna_engine-1.0.1/backend/repodna/parsers/capabilities.py +361 -0
  105. repodna_engine-1.0.1/backend/repodna/parsers/project_metadata.py +232 -0
  106. repodna_engine-1.0.1/backend/repodna/parsers/resolver.py +621 -0
  107. repodna_engine-1.0.1/backend/repodna/parsers/treesitter_parser.py +830 -0
  108. repodna_engine-1.0.1/backend/repodna/passport/__init__.py +64 -0
  109. repodna_engine-1.0.1/backend/repodna/passport/generator.py +546 -0
  110. repodna_engine-1.0.1/backend/repodna/passport/migrator.py +139 -0
  111. repodna_engine-1.0.1/backend/repodna/passport/models.py +224 -0
  112. repodna_engine-1.0.1/backend/repodna/passport/validator.py +143 -0
  113. repodna_engine-1.0.1/backend/repodna/performance/__init__.py +89 -0
  114. repodna_engine-1.0.1/backend/repodna/performance/cache.py +1584 -0
  115. repodna_engine-1.0.1/backend/repodna/performance/identity.py +341 -0
  116. repodna_engine-1.0.1/backend/repodna/performance/incremental.py +317 -0
  117. repodna_engine-1.0.1/backend/repodna/performance/models.py +157 -0
  118. repodna_engine-1.0.1/backend/repodna/performance/parallel.py +291 -0
  119. repodna_engine-1.0.1/backend/repodna/plugins/__init__.py +47 -0
  120. repodna_engine-1.0.1/backend/repodna/plugins/evaluator.py +334 -0
  121. repodna_engine-1.0.1/backend/repodna/plugins/models.py +113 -0
  122. repodna_engine-1.0.1/backend/repodna/plugins/validator.py +256 -0
  123. repodna_engine-1.0.1/backend/repodna/quality/__init__.py +91 -0
  124. repodna_engine-1.0.1/backend/repodna/quality/complexity.py +352 -0
  125. repodna_engine-1.0.1/backend/repodna/quality/config.py +159 -0
  126. repodna_engine-1.0.1/backend/repodna/quality/debt.py +73 -0
  127. repodna_engine-1.0.1/backend/repodna/quality/duplicates.py +330 -0
  128. repodna_engine-1.0.1/backend/repodna/quality/engine.py +282 -0
  129. repodna_engine-1.0.1/backend/repodna/quality/impact.py +198 -0
  130. repodna_engine-1.0.1/backend/repodna/quality/models.py +427 -0
  131. repodna_engine-1.0.1/backend/repodna/quality/rules.py +364 -0
  132. repodna_engine-1.0.1/backend/repodna/quality/sarif.py +107 -0
  133. repodna_engine-1.0.1/backend/repodna/quality/security_signals.py +278 -0
  134. repodna_engine-1.0.1/backend/repodna/quality/test_mapping.py +271 -0
  135. repodna_engine-1.0.1/backend/repodna/quality/unused.py +201 -0
  136. repodna_engine-1.0.1/backend/repodna/reports/__init__.py +1 -0
  137. repodna_engine-1.0.1/backend/repodna/reports/exporter.py +374 -0
  138. repodna_engine-1.0.1/backend/repodna/rules/__init__.py +1 -0
  139. repodna_engine-1.0.1/backend/repodna/rules/health.py +436 -0
  140. repodna_engine-1.0.1/backend/repodna/schemas/__init__.py +1 -0
  141. repodna_engine-1.0.1/backend/repodna/schemas/models.py +348 -0
  142. repodna_engine-1.0.1/backend/repodna/security/__init__.py +1 -0
  143. repodna_engine-1.0.1/backend/repodna/security/safe_yaml.py +81 -0
  144. repodna_engine-1.0.1/backend/repodna/security/validators.py +583 -0
  145. repodna_engine-1.0.1/backend/repodna/skills/__init__.py +0 -0
  146. repodna_engine-1.0.1/backend/repodna/skills/repodna/SKILL.md +59 -0
  147. repodna_engine-1.0.1/backend/repodna/skills/repodna/__init__.py +0 -0
  148. repodna_engine-1.0.1/backend/repodna/skills/repodna/examples/workflows.md +85 -0
  149. repodna_engine-1.0.1/backend/repodna/skills/repodna/references/architecture-rules.md +26 -0
  150. repodna_engine-1.0.1/backend/repodna/storage/__init__.py +1 -0
  151. repodna_engine-1.0.1/backend/repodna/storage/workspace.py +199 -0
  152. repodna_engine-1.0.1/backend/repodna/webui/__init__.py +1 -0
  153. repodna_engine-1.0.1/backend/repodna/webui/assets/DependencyGraph-km_Qo-nG.js +43 -0
  154. repodna_engine-1.0.1/backend/repodna/webui/assets/HealthReportView-WVL39aNO.js +1 -0
  155. repodna_engine-1.0.1/backend/repodna/webui/assets/index-ByZ5e5pe.js +506 -0
  156. repodna_engine-1.0.1/backend/repodna/webui/assets/index-CDj3e8hw.css +1 -0
  157. repodna_engine-1.0.1/backend/repodna/webui/index.html +21 -0
  158. repodna_engine-1.0.1/backend/repodna/workspace/__init__.py +131 -0
  159. repodna_engine-1.0.1/backend/repodna/workspace/compatibility.py +317 -0
  160. repodna_engine-1.0.1/backend/repodna/workspace/context.py +175 -0
  161. repodna_engine-1.0.1/backend/repodna/workspace/contracts.py +369 -0
  162. repodna_engine-1.0.1/backend/repodna/workspace/federation.py +411 -0
  163. repodna_engine-1.0.1/backend/repodna/workspace/identity.py +202 -0
  164. repodna_engine-1.0.1/backend/repodna/workspace/impact.py +111 -0
  165. repodna_engine-1.0.1/backend/repodna/workspace/manifest.py +266 -0
  166. repodna_engine-1.0.1/backend/repodna/workspace/models.py +461 -0
  167. repodna_engine-1.0.1/backend/repodna/workspace/packages.py +494 -0
  168. repodna_engine-1.0.1/backend/repodna/workspace/policies.py +142 -0
  169. repodna_engine-1.0.1/backend/repodna/workspace/services.py +238 -0
  170. repodna_engine-1.0.1/backend/repodna/workspace/topology.py +316 -0
  171. repodna_engine-1.0.1/backend/repodna_engine.egg-info/PKG-INFO +129 -0
  172. repodna_engine-1.0.1/backend/repodna_engine.egg-info/SOURCES.txt +176 -0
  173. repodna_engine-1.0.1/backend/repodna_engine.egg-info/dependency_links.txt +1 -0
  174. repodna_engine-1.0.1/backend/repodna_engine.egg-info/entry_points.txt +2 -0
  175. repodna_engine-1.0.1/backend/repodna_engine.egg-info/requires.txt +27 -0
  176. repodna_engine-1.0.1/backend/repodna_engine.egg-info/top_level.txt +1 -0
  177. repodna_engine-1.0.1/pyproject.toml +101 -0
  178. repodna_engine-1.0.1/setup.cfg +4 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cihan Akalın
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,129 @@
1
+ Metadata-Version: 2.4
2
+ Name: repodna-engine
3
+ Version: 1.0.1
4
+ Summary: RepoDNA — Developer Repository Intelligence Platform for AI agent context packing, architectural graph analysis, deep code intelligence, and live architecture monitoring.
5
+ Author-email: Cihan Akalın <250541107@firat.edu.tr>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/Cihanak1/RepoDNA
8
+ Project-URL: Repository, https://github.com/Cihanak1/RepoDNA.git
9
+ Project-URL: Issues, https://github.com/Cihanak1/RepoDNA/issues
10
+ Project-URL: Changelog, https://github.com/Cihanak1/RepoDNA/blob/main/CHANGELOG.md
11
+ Project-URL: Security, https://github.com/Cihanak1/RepoDNA/blob/main/SECURITY.md
12
+ Keywords: static-analysis,architecture,dependency-graph,circular-dependencies,tree-sitter,code-health,developer-tools
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Software Development :: Quality Assurance
18
+ Requires-Python: >=3.12
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: fastapi>=0.115.0
22
+ Requires-Dist: uvicorn[standard]>=0.30.0
23
+ Requires-Dist: pydantic>=2.9.0
24
+ Requires-Dist: tree-sitter>=0.23.0
25
+ Requires-Dist: tree-sitter-python>=0.23.0
26
+ Requires-Dist: tree-sitter-javascript>=0.23.0
27
+ Requires-Dist: tree-sitter-typescript>=0.23.0
28
+ Requires-Dist: tree-sitter-go>=0.23.0
29
+ Requires-Dist: tree-sitter-rust>=0.23.0
30
+ Requires-Dist: tree-sitter-c-sharp>=0.23.0
31
+ Requires-Dist: tree-sitter-java>=0.23.0
32
+ Requires-Dist: tree-sitter-c>=0.23.0
33
+ Requires-Dist: tree-sitter-cpp>=0.23.0
34
+ Requires-Dist: mcp>=2.0.0
35
+ Requires-Dist: PyYAML>=6.0.0
36
+ Requires-Dist: pathspec>=0.11.0
37
+ Requires-Dist: watchfiles>=1.0.0
38
+ Provides-Extra: tokenizer
39
+ Requires-Dist: tiktoken>=0.7.0; extra == "tokenizer"
40
+ Provides-Extra: dev
41
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
42
+ Requires-Dist: pytest-asyncio>=0.24.0; extra == "dev"
43
+ Requires-Dist: httpx>=0.27.0; extra == "dev"
44
+ Requires-Dist: ruff>=0.7.0; extra == "dev"
45
+ Requires-Dist: mypy>=1.11.0; extra == "dev"
46
+ Dynamic: license-file
47
+
48
+ # RepoDNA — Architecture & Code Intelligence Workstation
49
+
50
+ [![CI](https://github.com/Cihanak1/RepoDNA/actions/workflows/ci.yml/badge.svg)](https://github.com/Cihanak1/RepoDNA/actions/workflows/ci.yml)
51
+ [![Release](https://img.shields.io/badge/release-v1.0.1-38bdf8)](https://github.com/Cihanak1/RepoDNA/releases)
52
+ [![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-3776ab?logo=python&logoColor=white)](https://www.python.org/)
53
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.7%20%2F%205.8-3178c6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
54
+ [![License: MIT](https://img.shields.io/badge/License-MIT-10b981.svg)](./LICENSE)
55
+
56
+ **RepoDNA** is a local-first repository architecture, deep code quality, multi-repository, and AI agent intelligence platform with zero execution of analyzed target repository code.
57
+
58
+ | Professional Workstation (1440×900) | Code Quality & Complexity (1440×900) |
59
+ | :---: | :---: |
60
+ | ![Agent Workstation Desktop](./docs/design/after/agent-workstation-1440x900.png) | ![Quality Overview](./docs/design/after/quality-overview-1440.png) |
61
+
62
+ ---
63
+
64
+ ## Quickstart
65
+
66
+ Install from the verified [GitHub Release v1.0.1](https://github.com/Cihanak1/RepoDNA/releases/tag/v1.0.1) wheel (bundles the full production React Workstation UI — no Node.js build required):
67
+
68
+ ```bash
69
+ # 1. Install the official release wheel into a Python 3.12+ virtual environment
70
+ pip install repodna_engine-1.0.1-py3-none-any.whl
71
+
72
+ # 2. Verify environment & ecosystem health
73
+ repodna --version
74
+ repodna doctor
75
+
76
+ # 3. Launch the local Workstation UI at http://127.0.0.1:8000 (auto-enables per-launch session auth)
77
+ repodna start --open-browser
78
+
79
+ # 4. Run CLI analysis or try the included multi-repository demo workspace
80
+ repodna analyze . --format json
81
+ repodna workspace analyze demo/repodna-workspace.yml --format json
82
+ ```
83
+
84
+ > **Package Naming Notice:** The PyPI name `repodna` belongs to an unrelated third-party project (`github.com/repodna/repodna`). Do **not** run `pip install repodna`. RepoDNA's Python distribution name is `repodna-engine` (preserving `import repodna` and the `repodna` CLI command).
85
+
86
+ ---
87
+
88
+ ## Core Capabilities
89
+
90
+ - **9-Language Tree-sitter AST Analysis**: Python, TypeScript, JavaScript, Go, Rust, C#, Java, C, and C++ with bounded complexity contributors, Winnowing Type-1/Type-2 clone detection, conservative unused-code candidates, static test relationship mapping, AST security signals (with `[REDACTED]` secret masking), and validated SARIF 2.1.0 export.
91
+ - **Architecture Graph, Guardian, Time Machine & Refactoring Advisor**: Dependency graphs, circular dependency detection, declarative architecture contracts, Git commit history evolution, and graph-theoretic refactoring recommendations.
92
+ - **Live Architecture Engine**: Opt-in local filesystem monitoring with debounced incremental reconciliation, bounded SSE event streaming, and independent core/quality freshness tracking.
93
+ - **AI Agent Intelligence & 47 Read-Only MCP Tools**: Deterministic EN/TR task localization, signature-first repository maps, token-budgeted context packing (`exact` vs `estimated` tokenizer disclosure), acknowledged delta packs, read-only change preflight/patch/postflight verification, and 47 read-only MCP tools (`--tool-profile minimal|architecture|code-intelligence|full`).
94
+ - **Multi-Repository Intelligence**: Explicit `repodna-workspace.yml` federation, canonical repository identity (preventing basename collisions), multilingual package & version constraint checks, static service cataloging, SSRF-safe OpenAPI 3.0/3.1 parsing, variance-aware structural compatibility, and bounded cross-repository change impact.
95
+ - **Professional Workstation & Developer Ecosystem**: 7-domain Activity Rail, Unified Findings table (`25` rows/page), Report Center, Light/Dark/High-Contrast themes, TR/EN localization, declarative zero-execution Plugin SDK (`sdk/`), VS Code extension (`extensions/vscode/`), fork-safe Composite GitHub Action (`integrations/github-action/`), and hardened non-root Docker image (`docker/`).
96
+
97
+ ---
98
+
99
+ ## Verified Performance & Accuracy Summary
100
+
101
+ - **v1.0.1 Held-Out AI Retrieval & Negative-Task Abstention** ([`benchmarks/results/v101_ai_retrieval_abstention.json`](./benchmarks/results/v101_ai_retrieval_abstention.json)): **91.67%** File Recall@5 (`12` positive tasks) and **86.67%** negative-task abstention accuracy (`13/15` out-of-scope tasks) using the estimated local tokenizer (`heuristic_code_v1`). Earlier `v0.11.0` 11-repo / 52-task benchmark archived in [`docs/agent/BENCHMARKS.md`](./docs/agent/BENCHMARKS.md).
102
+ - **v1.0.1 Large Repository Stress Benchmarks** ([`benchmarks/results/v101_large_repo_stress.json`](./benchmarks/results/v101_large_repo_stress.json)): Real `RepoDNA` (`504` files, `93,316` LOC) `1,046 ms` cold → `261 ms` warm (`4.02×`); synthetic `1,050` files `1,789 ms` → `555 ms` (`3.22×`); synthetic `5,050` files `12,622 ms` → `4,836 ms` (`2.61×`, `120 MB` RSS).
103
+ - **v1.0.1 Real Open-Source Multi-Repository Validation** ([`benchmarks/results/v100_real_multi_repo_validation.json`](./benchmarks/results/v100_real_multi_repo_validation.json)):
104
+ - Pallets Stack (`markupsafe@3.0.2` + `jinja@3.1.5` + `flask@3.1.0`, `402` files, `N=2` declared package edges): **2/2** precision/recall, `3/3` warm reuse (`3,840 ms` → `911 ms`).
105
+ - Encode HTTP Stack (`httpcore@1.0.7` + `httpx@0.28.1`, `205` files, `N=1` declared package edge): **1/1** precision/recall, `2/2` warm reuse (`2,577 ms` → `557 ms`).
106
+ - *(Small sample caveat: these 3 edges validate Python package declarations only and do not imply 100% general cross-ecosystem accuracy.)*
107
+ - **Declarative Plugin Overhead (v0.11.0 baseline)** ([`docs/ecosystem/BENCHMARKS.md`](./docs/ecosystem/BENCHMARKS.md)): `0.925 ms` median evaluation across 4 rule packs on 388 files (`0.172%` of core analysis time).
108
+
109
+ ---
110
+
111
+ ## Security Model & Known Limitations
112
+
113
+ - **Zero-Execution & Local-First**: RepoDNA never executes target repository code, build scripts, tests, Docker Compose commands, or Python plugins, and never sends source code to external services. See [`SECURITY.md`](./SECURITY.md) and [`docs/release/THREAT-MODEL.md`](./docs/release/THREAT-MODEL.md).
114
+ - **Honest Boundaries**:
115
+ - Static AST analysis is **not** compiler semantic analysis and does **not** replace runtime test suites.
116
+ - Static test mapping is **not** runtime code coverage; AST security signals are **not** confirmed vulnerabilities.
117
+ - Estimated context tokens are **not** LLM billing tokens; no independent external AI agent A/B study or external human UX study is claimed.
118
+ - Full structural API compatibility currently covers **OpenAPI 3.0/3.1**; Protobuf, AsyncAPI, and GraphQL are marked `PARTIAL`/`UNSUPPORTED`.
119
+ - External registries (PyPI, VS Code Marketplace, Open VSX, GitHub Marketplace, GHCR) are currently `NOT PUBLISHED` pending maintainer registry credentials; official artifacts are published on GitHub Releases with SHA-256 checksums and a CycloneDX 1.5 SBOM.
120
+
121
+ ---
122
+
123
+ ## Documentation & Contributing
124
+
125
+ - [Public API Freeze (`v1.0.0`)](./docs/release/PUBLIC-API-FREEZE.md) · [Threat Model](./docs/release/THREAT-MODEL.md) · [40-Point Go/No-Go Review](./docs/release/GO-NO-GO-REVIEW.md)
126
+ - [Workstation Guides](./docs/workstation/INFORMATION-ARCHITECTURE.md) · [Multi-Repository Guides](./docs/multi-repo/ARCHITECTURE.md) · [Ecosystem & Plugin SDK](./docs/ecosystem/INSTALLATION.md)
127
+ - [Reproducible Demo Workspace](./demo/README.md) · [Contributing Guide](./CONTRIBUTING.md) · [Security Policy](./SECURITY.md) · [Changelog](./CHANGELOG.md)
128
+
129
+ Licensed under the [MIT License](./LICENSE).
@@ -0,0 +1,82 @@
1
+ # RepoDNA — Architecture & Code Intelligence Workstation
2
+
3
+ [![CI](https://github.com/Cihanak1/RepoDNA/actions/workflows/ci.yml/badge.svg)](https://github.com/Cihanak1/RepoDNA/actions/workflows/ci.yml)
4
+ [![Release](https://img.shields.io/badge/release-v1.0.1-38bdf8)](https://github.com/Cihanak1/RepoDNA/releases)
5
+ [![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-3776ab?logo=python&logoColor=white)](https://www.python.org/)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.7%20%2F%205.8-3178c6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-10b981.svg)](./LICENSE)
8
+
9
+ **RepoDNA** is a local-first repository architecture, deep code quality, multi-repository, and AI agent intelligence platform with zero execution of analyzed target repository code.
10
+
11
+ | Professional Workstation (1440×900) | Code Quality & Complexity (1440×900) |
12
+ | :---: | :---: |
13
+ | ![Agent Workstation Desktop](./docs/design/after/agent-workstation-1440x900.png) | ![Quality Overview](./docs/design/after/quality-overview-1440.png) |
14
+
15
+ ---
16
+
17
+ ## Quickstart
18
+
19
+ Install from the verified [GitHub Release v1.0.1](https://github.com/Cihanak1/RepoDNA/releases/tag/v1.0.1) wheel (bundles the full production React Workstation UI — no Node.js build required):
20
+
21
+ ```bash
22
+ # 1. Install the official release wheel into a Python 3.12+ virtual environment
23
+ pip install repodna_engine-1.0.1-py3-none-any.whl
24
+
25
+ # 2. Verify environment & ecosystem health
26
+ repodna --version
27
+ repodna doctor
28
+
29
+ # 3. Launch the local Workstation UI at http://127.0.0.1:8000 (auto-enables per-launch session auth)
30
+ repodna start --open-browser
31
+
32
+ # 4. Run CLI analysis or try the included multi-repository demo workspace
33
+ repodna analyze . --format json
34
+ repodna workspace analyze demo/repodna-workspace.yml --format json
35
+ ```
36
+
37
+ > **Package Naming Notice:** The PyPI name `repodna` belongs to an unrelated third-party project (`github.com/repodna/repodna`). Do **not** run `pip install repodna`. RepoDNA's Python distribution name is `repodna-engine` (preserving `import repodna` and the `repodna` CLI command).
38
+
39
+ ---
40
+
41
+ ## Core Capabilities
42
+
43
+ - **9-Language Tree-sitter AST Analysis**: Python, TypeScript, JavaScript, Go, Rust, C#, Java, C, and C++ with bounded complexity contributors, Winnowing Type-1/Type-2 clone detection, conservative unused-code candidates, static test relationship mapping, AST security signals (with `[REDACTED]` secret masking), and validated SARIF 2.1.0 export.
44
+ - **Architecture Graph, Guardian, Time Machine & Refactoring Advisor**: Dependency graphs, circular dependency detection, declarative architecture contracts, Git commit history evolution, and graph-theoretic refactoring recommendations.
45
+ - **Live Architecture Engine**: Opt-in local filesystem monitoring with debounced incremental reconciliation, bounded SSE event streaming, and independent core/quality freshness tracking.
46
+ - **AI Agent Intelligence & 47 Read-Only MCP Tools**: Deterministic EN/TR task localization, signature-first repository maps, token-budgeted context packing (`exact` vs `estimated` tokenizer disclosure), acknowledged delta packs, read-only change preflight/patch/postflight verification, and 47 read-only MCP tools (`--tool-profile minimal|architecture|code-intelligence|full`).
47
+ - **Multi-Repository Intelligence**: Explicit `repodna-workspace.yml` federation, canonical repository identity (preventing basename collisions), multilingual package & version constraint checks, static service cataloging, SSRF-safe OpenAPI 3.0/3.1 parsing, variance-aware structural compatibility, and bounded cross-repository change impact.
48
+ - **Professional Workstation & Developer Ecosystem**: 7-domain Activity Rail, Unified Findings table (`25` rows/page), Report Center, Light/Dark/High-Contrast themes, TR/EN localization, declarative zero-execution Plugin SDK (`sdk/`), VS Code extension (`extensions/vscode/`), fork-safe Composite GitHub Action (`integrations/github-action/`), and hardened non-root Docker image (`docker/`).
49
+
50
+ ---
51
+
52
+ ## Verified Performance & Accuracy Summary
53
+
54
+ - **v1.0.1 Held-Out AI Retrieval & Negative-Task Abstention** ([`benchmarks/results/v101_ai_retrieval_abstention.json`](./benchmarks/results/v101_ai_retrieval_abstention.json)): **91.67%** File Recall@5 (`12` positive tasks) and **86.67%** negative-task abstention accuracy (`13/15` out-of-scope tasks) using the estimated local tokenizer (`heuristic_code_v1`). Earlier `v0.11.0` 11-repo / 52-task benchmark archived in [`docs/agent/BENCHMARKS.md`](./docs/agent/BENCHMARKS.md).
55
+ - **v1.0.1 Large Repository Stress Benchmarks** ([`benchmarks/results/v101_large_repo_stress.json`](./benchmarks/results/v101_large_repo_stress.json)): Real `RepoDNA` (`504` files, `93,316` LOC) `1,046 ms` cold → `261 ms` warm (`4.02×`); synthetic `1,050` files `1,789 ms` → `555 ms` (`3.22×`); synthetic `5,050` files `12,622 ms` → `4,836 ms` (`2.61×`, `120 MB` RSS).
56
+ - **v1.0.1 Real Open-Source Multi-Repository Validation** ([`benchmarks/results/v100_real_multi_repo_validation.json`](./benchmarks/results/v100_real_multi_repo_validation.json)):
57
+ - Pallets Stack (`markupsafe@3.0.2` + `jinja@3.1.5` + `flask@3.1.0`, `402` files, `N=2` declared package edges): **2/2** precision/recall, `3/3` warm reuse (`3,840 ms` → `911 ms`).
58
+ - Encode HTTP Stack (`httpcore@1.0.7` + `httpx@0.28.1`, `205` files, `N=1` declared package edge): **1/1** precision/recall, `2/2` warm reuse (`2,577 ms` → `557 ms`).
59
+ - *(Small sample caveat: these 3 edges validate Python package declarations only and do not imply 100% general cross-ecosystem accuracy.)*
60
+ - **Declarative Plugin Overhead (v0.11.0 baseline)** ([`docs/ecosystem/BENCHMARKS.md`](./docs/ecosystem/BENCHMARKS.md)): `0.925 ms` median evaluation across 4 rule packs on 388 files (`0.172%` of core analysis time).
61
+
62
+ ---
63
+
64
+ ## Security Model & Known Limitations
65
+
66
+ - **Zero-Execution & Local-First**: RepoDNA never executes target repository code, build scripts, tests, Docker Compose commands, or Python plugins, and never sends source code to external services. See [`SECURITY.md`](./SECURITY.md) and [`docs/release/THREAT-MODEL.md`](./docs/release/THREAT-MODEL.md).
67
+ - **Honest Boundaries**:
68
+ - Static AST analysis is **not** compiler semantic analysis and does **not** replace runtime test suites.
69
+ - Static test mapping is **not** runtime code coverage; AST security signals are **not** confirmed vulnerabilities.
70
+ - Estimated context tokens are **not** LLM billing tokens; no independent external AI agent A/B study or external human UX study is claimed.
71
+ - Full structural API compatibility currently covers **OpenAPI 3.0/3.1**; Protobuf, AsyncAPI, and GraphQL are marked `PARTIAL`/`UNSUPPORTED`.
72
+ - External registries (PyPI, VS Code Marketplace, Open VSX, GitHub Marketplace, GHCR) are currently `NOT PUBLISHED` pending maintainer registry credentials; official artifacts are published on GitHub Releases with SHA-256 checksums and a CycloneDX 1.5 SBOM.
73
+
74
+ ---
75
+
76
+ ## Documentation & Contributing
77
+
78
+ - [Public API Freeze (`v1.0.0`)](./docs/release/PUBLIC-API-FREEZE.md) · [Threat Model](./docs/release/THREAT-MODEL.md) · [40-Point Go/No-Go Review](./docs/release/GO-NO-GO-REVIEW.md)
79
+ - [Workstation Guides](./docs/workstation/INFORMATION-ARCHITECTURE.md) · [Multi-Repository Guides](./docs/multi-repo/ARCHITECTURE.md) · [Ecosystem & Plugin SDK](./docs/ecosystem/INSTALLATION.md)
80
+ - [Reproducible Demo Workspace](./demo/README.md) · [Contributing Guide](./CONTRIBUTING.md) · [Security Policy](./SECURITY.md) · [Changelog](./CHANGELOG.md)
81
+
82
+ Licensed under the [MIT License](./LICENSE).
@@ -0,0 +1,3 @@
1
+ """RepoDNA — Developer Repository Intelligence Platform."""
2
+
3
+ __version__ = "1.0.1"
@@ -0,0 +1,10 @@
1
+ """Entrypoint when invoked via `python -m repodna`."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import sys
6
+
7
+ from repodna.cli.main import main
8
+
9
+ if __name__ == "__main__":
10
+ sys.exit(main())
@@ -0,0 +1,17 @@
1
+ """RepoDNA Refactoring Advisor package."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from repodna.advisor.engine import RefactoringAdvisorEngine
6
+ from repodna.advisor.models import (
7
+ AdvisorCategory,
8
+ RefactoringAdvisorReport,
9
+ RefactoringRecommendation,
10
+ )
11
+
12
+ __all__ = [
13
+ "AdvisorCategory",
14
+ "RefactoringAdvisorEngine",
15
+ "RefactoringAdvisorReport",
16
+ "RefactoringRecommendation",
17
+ ]