codecortex-context-engine 0.1.0a3__tar.gz → 0.1.0a7__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 (503) hide show
  1. codecortex_context_engine-0.1.0a7/.gitattributes +21 -0
  2. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/bootstrap-release.yml +6 -6
  3. codecortex_context_engine-0.1.0a7/.github/workflows/ci.yml +134 -0
  4. codecortex_context_engine-0.1.0a7/.github/workflows/dependency-docs-live.yml +47 -0
  5. codecortex_context_engine-0.1.0a7/.github/workflows/mcp-registry.yml +64 -0
  6. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/release.yml +40 -1
  7. codecortex_context_engine-0.1.0a7/.github/workflows/structural-engine.yml +61 -0
  8. codecortex_context_engine-0.1.0a7/.github/workflows/web-console.yml +27 -0
  9. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.gitignore +3 -0
  10. codecortex_context_engine-0.1.0a7/CHANGELOG.md +58 -0
  11. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/CONTRIBUTING.md +6 -0
  12. codecortex_context_engine-0.1.0a7/Dockerfile +43 -0
  13. codecortex_context_engine-0.1.0a7/HARDENING_REPORT.md +305 -0
  14. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/NOTICE +16 -0
  15. codecortex_context_engine-0.1.0a7/PKG-INFO +2023 -0
  16. codecortex_context_engine-0.1.0a7/README.md +1775 -0
  17. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/ROADMAP.md +15 -0
  18. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/SECURITY.md +11 -0
  19. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/SUPPORT.md +1 -1
  20. codecortex_context_engine-0.1.0a7/THIRD_PARTY_NOTICES.md +154 -0
  21. codecortex_context_engine-0.1.0a7/compose.yaml +46 -0
  22. codecortex_context_engine-0.1.0a7/deploy/nginx.conf +19 -0
  23. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/ARCHITECTURE.md +11 -2
  24. codecortex_context_engine-0.1.0a7/docs/BENCHMARKS.md +68 -0
  25. codecortex_context_engine-0.1.0a7/docs/DISCOVERY_MANUAL_STEPS.md +79 -0
  26. codecortex_context_engine-0.1.0a7/docs/DISCOVERY_SUBMISSIONS.md +62 -0
  27. codecortex_context_engine-0.1.0a7/docs/EVIDENCE_FUSION.md +282 -0
  28. codecortex_context_engine-0.1.0a7/docs/GETTING_STARTED.md +116 -0
  29. codecortex_context_engine-0.1.0a7/docs/INTEGRATIONS.md +79 -0
  30. codecortex_context_engine-0.1.0a7/docs/LAUNCH_PACK.md +117 -0
  31. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/LICENSING.md +10 -0
  32. codecortex_context_engine-0.1.0a7/docs/QUALITY.md +26 -0
  33. codecortex_context_engine-0.1.0a7/docs/TESTING.md +27 -0
  34. codecortex_context_engine-0.1.0a7/docs/assets/codecortex-overview.svg +69 -0
  35. codecortex_context_engine-0.1.0a7/docs/assets/social-preview.svg +26 -0
  36. codecortex_context_engine-0.1.0a7/docs/index.md +63 -0
  37. codecortex_context_engine-0.1.0a7/docs/platform/README.md +40 -0
  38. codecortex_context_engine-0.1.0a7/docs/platform/admin.md +26 -0
  39. codecortex_context_engine-0.1.0a7/docs/platform/api-compatibility.md +11 -0
  40. codecortex_context_engine-0.1.0a7/docs/platform/api.md +17 -0
  41. codecortex_context_engine-0.1.0a7/docs/platform/architecture-invariants.md +11 -0
  42. codecortex_context_engine-0.1.0a7/docs/platform/definition-of-done.md +9 -0
  43. codecortex_context_engine-0.1.0a7/docs/platform/development.md +21 -0
  44. codecortex_context_engine-0.1.0a7/docs/provenance/dependency-documentation.md +74 -0
  45. codecortex_context_engine-0.1.0a7/docs/provenance/precision-intelligence.md +95 -0
  46. codecortex_context_engine-0.1.0a7/docs/provenance/structural-intelligence.md +70 -0
  47. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/mkdocs.yml +13 -1
  48. codecortex_context_engine-0.1.0a7/platform/architecture_rules.json +10 -0
  49. codecortex_context_engine-0.1.0a7/platform/definition_of_done.json +17 -0
  50. codecortex_context_engine-0.1.0a7/platform/layout.json +35 -0
  51. codecortex_context_engine-0.1.0a7/platform/milestones.json +12 -0
  52. codecortex_context_engine-0.1.0a7/platform/priorities.json +11 -0
  53. codecortex_context_engine-0.1.0a7/platform/roadmap_completion.json +7 -0
  54. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/pyproject.toml +28 -2
  55. codecortex_context_engine-0.1.0a7/scripts/check_feature_done.py +29 -0
  56. codecortex_context_engine-0.1.0a7/scripts/check_platform_architecture.py +37 -0
  57. codecortex_context_engine-0.1.0a7/scripts/check_platform_priorities.py +14 -0
  58. codecortex_context_engine-0.1.0a7/scripts/check_readme.py +92 -0
  59. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/demo.py +3 -1
  60. codecortex_context_engine-0.1.0a7/scripts/export_openapi.py +21 -0
  61. codecortex_context_engine-0.1.0a7/scripts/generate_readme.py +403 -0
  62. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/live_agent_e2e.py +4 -1
  63. codecortex_context_engine-0.1.0a7/scripts/platform_milestones.py +14 -0
  64. codecortex_context_engine-0.1.0a7/scripts/refresh_upstream_fixtures.py +94 -0
  65. codecortex_context_engine-0.1.0a7/scripts/regenerate_real_index_fixtures.sh +74 -0
  66. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/run_agent_matrix.py +6 -2
  67. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/run_production_benchmark.py +3 -1
  68. codecortex_context_engine-0.1.0a7/scripts/write_real_index_provenance.py +96 -0
  69. codecortex_context_engine-0.1.0a7/sdk/typescript/package.json +10 -0
  70. codecortex_context_engine-0.1.0a7/sdk/typescript/src/index.ts +13 -0
  71. codecortex_context_engine-0.1.0a7/server.json +35 -0
  72. codecortex_context_engine-0.1.0a7/src/codecortex/api/__init__.py +5 -0
  73. codecortex_context_engine-0.1.0a7/src/codecortex/api/app.py +241 -0
  74. codecortex_context_engine-0.1.0a7/src/codecortex/api/auth.py +40 -0
  75. codecortex_context_engine-0.1.0a7/src/codecortex/api/cli.py +30 -0
  76. codecortex_context_engine-0.1.0a7/src/codecortex/api/feature_loader.py +56 -0
  77. codecortex_context_engine-0.1.0a7/src/codecortex/api/hardening.py +92 -0
  78. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/__init__.py +1 -0
  79. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/audit.py +43 -0
  80. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/backends.py +67 -0
  81. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/cluster.py +52 -0
  82. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/code_actions.py +121 -0
  83. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/git.py +64 -0
  84. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/integrations.py +92 -0
  85. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/manifest.py +19 -0
  86. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/memory_center.py +88 -0
  87. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/notifications.py +82 -0
  88. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/observability.py +72 -0
  89. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/organization.py +112 -0
  90. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/performance.py +63 -0
  91. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/pr.py +54 -0
  92. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/quality.py +46 -0
  93. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/repository.py +157 -0
  94. codecortex_context_engine-0.1.0a7/src/codecortex/api/routes/versioning.py +19 -0
  95. codecortex_context_engine-0.1.0a7/src/codecortex/api/schemas.py +56 -0
  96. codecortex_context_engine-0.1.0a7/src/codecortex/api/versioning.py +31 -0
  97. codecortex_context_engine-0.1.0a7/src/codecortex/application/__init__.py +5 -0
  98. codecortex_context_engine-0.1.0a7/src/codecortex/application/architecture.py +45 -0
  99. codecortex_context_engine-0.1.0a7/src/codecortex/application/context_lab.py +34 -0
  100. codecortex_context_engine-0.1.0a7/src/codecortex/application/contracts.py +46 -0
  101. codecortex_context_engine-0.1.0a7/src/codecortex/application/impact.py +36 -0
  102. codecortex_context_engine-0.1.0a7/src/codecortex/application/safe_edit.py +106 -0
  103. codecortex_context_engine-0.1.0a7/src/codecortex/application/search.py +37 -0
  104. codecortex_context_engine-0.1.0a7/src/codecortex/application/service.py +163 -0
  105. codecortex_context_engine-0.1.0a7/src/codecortex/application/traces.py +41 -0
  106. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/architecture/drift.py +6 -4
  107. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/base.py +1 -5
  108. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/factory.py +1 -3
  109. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/manager.py +11 -3
  110. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/mcp_client.py +4 -2
  111. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/spec.py +1 -6
  112. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/benchmark.py +34 -17
  113. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/cli.py +222 -10
  114. codecortex_context_engine-0.1.0a7/src/codecortex/config.py +165 -0
  115. codecortex_context_engine-0.1.0a7/src/codecortex/context/budget.py +61 -0
  116. codecortex_context_engine-0.1.0a7/src/codecortex/context/pipeline.py +284 -0
  117. codecortex_context_engine-0.1.0a7/src/codecortex/context/slicing.py +119 -0
  118. codecortex_context_engine-0.1.0a7/src/codecortex/context/tokenizer.py +59 -0
  119. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/core/models.py +6 -0
  120. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/dashboard.py +49 -8
  121. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/__init__.py +45 -0
  122. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/cache.py +169 -0
  123. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/contracts.py +40 -0
  124. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/manifests.py +554 -0
  125. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/models.py +195 -0
  126. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/provider.py +89 -0
  127. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/remote.py +579 -0
  128. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/resolver.py +58 -0
  129. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/service.py +285 -0
  130. codecortex_context_engine-0.1.0a7/src/codecortex/dependencies/versions.py +137 -0
  131. codecortex_context_engine-0.1.0a7/src/codecortex/distributed/cli.py +124 -0
  132. codecortex_context_engine-0.1.0a7/src/codecortex/distributed/cluster.py +92 -0
  133. codecortex_context_engine-0.1.0a7/src/codecortex/distributed/graph_store.py +157 -0
  134. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/memory_sync.py +70 -86
  135. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/organization.py +48 -128
  136. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/performance.py +3 -3
  137. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/remote_mcp.py +59 -31
  138. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/service.py +48 -34
  139. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/vector_store.py +2 -6
  140. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/workers.py +117 -92
  141. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/engines/builtin/factory.py +4 -2
  142. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/engines/builtin/repository.py +14 -4
  143. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/engines/builtin/symbols.py +41 -29
  144. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/engines/builtin/validation.py +4 -1
  145. codecortex_context_engine-0.1.0a7/src/codecortex/engines/registry.py +35 -0
  146. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/entrypoint.py +4 -2
  147. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/evaluation/__init__.py +13 -0
  148. codecortex_context_engine-0.1.0a7/src/codecortex/evaluation/baseline.py +73 -0
  149. codecortex_context_engine-0.1.0a7/src/codecortex/evaluation/evidence_benchmark.py +310 -0
  150. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/evaluation/external.py +21 -7
  151. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/evaluation/production.py +30 -32
  152. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/evaluation/regression.py +4 -3
  153. codecortex_context_engine-0.1.0a7/src/codecortex/evaluation/retrieval_quality.py +82 -0
  154. codecortex_context_engine-0.1.0a7/src/codecortex/evaluation/scale.py +75 -0
  155. codecortex_context_engine-0.1.0a7/src/codecortex/evidence/__init__.py +33 -0
  156. codecortex_context_engine-0.1.0a7/src/codecortex/evidence/contracts.py +26 -0
  157. codecortex_context_engine-0.1.0a7/src/codecortex/evidence/fusion.py +194 -0
  158. codecortex_context_engine-0.1.0a7/src/codecortex/evidence/models.py +207 -0
  159. codecortex_context_engine-0.1.0a7/src/codecortex/feedback.py +92 -0
  160. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/gateway.py +12 -4
  161. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/git_intelligence.py +8 -5
  162. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/indexing/graph.py +7 -15
  163. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/indexing/impact.py +74 -7
  164. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/indexing/incremental.py +15 -37
  165. codecortex_context_engine-0.1.0a7/src/codecortex/indexing/incremental_graph.py +239 -0
  166. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/indexing/indexer.py +64 -56
  167. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/indexing/relationships.py +10 -3
  168. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/integrations/agents.py +24 -6
  169. codecortex_context_engine-0.1.0a7/src/codecortex/jobs/__init__.py +6 -0
  170. codecortex_context_engine-0.1.0a7/src/codecortex/jobs/manager.py +93 -0
  171. codecortex_context_engine-0.1.0a7/src/codecortex/jobs/store.py +208 -0
  172. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/languages/registry.py +41 -22
  173. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/mcp/extended.py +28 -0
  174. codecortex_context_engine-0.1.0a7/src/codecortex/mcp/server.py +468 -0
  175. codecortex_context_engine-0.1.0a7/src/codecortex/mcp/validation.py +75 -0
  176. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/memory/json_store.py +21 -17
  177. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/memory/knowledge.py +4 -2
  178. codecortex_context_engine-0.1.0a7/src/codecortex/notifications.py +137 -0
  179. codecortex_context_engine-0.1.0a7/src/codecortex/observability.py +103 -0
  180. codecortex_context_engine-0.1.0a7/src/codecortex/orchestrator.py +244 -0
  181. codecortex_context_engine-0.1.0a7/src/codecortex/performance.py +18 -0
  182. codecortex_context_engine-0.1.0a7/src/codecortex/persistence/__init__.py +5 -0
  183. codecortex_context_engine-0.1.0a7/src/codecortex/persistence/sqlite.py +230 -0
  184. codecortex_context_engine-0.1.0a7/src/codecortex/platform.py +47 -0
  185. codecortex_context_engine-0.1.0a7/src/codecortex/platform_audit.py +33 -0
  186. codecortex_context_engine-0.1.0a7/src/codecortex/platform_dod.py +33 -0
  187. codecortex_context_engine-0.1.0a7/src/codecortex/platform_governance.py +58 -0
  188. codecortex_context_engine-0.1.0a7/src/codecortex/platform_layout.py +24 -0
  189. codecortex_context_engine-0.1.0a7/src/codecortex/platform_manifest.py +51 -0
  190. codecortex_context_engine-0.1.0a7/src/codecortex/platform_milestones.py +42 -0
  191. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/pr_intelligence.py +4 -4
  192. codecortex_context_engine-0.1.0a7/src/codecortex/precision/__init__.py +49 -0
  193. codecortex_context_engine-0.1.0a7/src/codecortex/precision/compatibility.py +113 -0
  194. codecortex_context_engine-0.1.0a7/src/codecortex/precision/generator.py +95 -0
  195. codecortex_context_engine-0.1.0a7/src/codecortex/precision/identity.py +235 -0
  196. codecortex_context_engine-0.1.0a7/src/codecortex/precision/importer.py +269 -0
  197. codecortex_context_engine-0.1.0a7/src/codecortex/precision/index.py +330 -0
  198. codecortex_context_engine-0.1.0a7/src/codecortex/precision/merge.py +208 -0
  199. codecortex_context_engine-0.1.0a7/src/codecortex/precision/models.py +343 -0
  200. codecortex_context_engine-0.1.0a7/src/codecortex/precision/positions.py +126 -0
  201. codecortex_context_engine-0.1.0a7/src/codecortex/precision/provider.py +423 -0
  202. codecortex_context_engine-0.1.0a7/src/codecortex/precision/schema.py +126 -0
  203. codecortex_context_engine-0.1.0a7/src/codecortex/precision/wire.py +203 -0
  204. codecortex_context_engine-0.1.0a7/src/codecortex/projects/__init__.py +24 -0
  205. codecortex_context_engine-0.1.0a7/src/codecortex/projects/context.py +53 -0
  206. codecortex_context_engine-0.1.0a7/src/codecortex/projects/runtime_manager.py +40 -0
  207. codecortex_context_engine-0.1.0a7/src/codecortex/py.typed +0 -0
  208. codecortex_context_engine-0.1.0a7/src/codecortex/realtime.py +61 -0
  209. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/retrieval/hybrid.py +3 -1
  210. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/retrieval/index.py +30 -28
  211. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/retrieval/providers.py +1 -2
  212. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/retrieval/repository.py +27 -10
  213. codecortex_context_engine-0.1.0a7/src/codecortex/router/__init__.py +6 -0
  214. codecortex_context_engine-0.1.0a7/src/codecortex/router/evidence_plan.py +129 -0
  215. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/router/router.py +43 -10
  216. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/runtime.py +11 -4
  217. codecortex_context_engine-0.1.0a7/src/codecortex/sdk/__init__.py +5 -0
  218. codecortex_context_engine-0.1.0a7/src/codecortex/sdk/client.py +101 -0
  219. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/setup.py +1 -3
  220. codecortex_context_engine-0.1.0a7/src/codecortex/state.py +151 -0
  221. codecortex_context_engine-0.1.0a7/src/codecortex/structural/__init__.py +34 -0
  222. codecortex_context_engine-0.1.0a7/src/codecortex/structural/engine.py +290 -0
  223. codecortex_context_engine-0.1.0a7/src/codecortex/structural/models.py +100 -0
  224. codecortex_context_engine-0.1.0a7/src/codecortex/structural/provider.py +110 -0
  225. codecortex_context_engine-0.1.0a7/src/codecortex/structural/rewrite.py +427 -0
  226. codecortex_context_engine-0.1.0a7/src/codecortex/structural/search.py +130 -0
  227. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/symbols/providers.py +17 -8
  228. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/tracing/task_trace.py +1 -2
  229. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/workspace/federation.py +69 -12
  230. codecortex_context_engine-0.1.0a7/tests/fixtures/precision_index.py +193 -0
  231. codecortex_context_engine-0.1.0a7/tests/fixtures/proto_schema.py +93 -0
  232. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/README.md +58 -0
  233. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/PROVENANCE.json +21 -0
  234. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/app/__init__.py +0 -0
  235. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/app/auth.py +16 -0
  236. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/app/billing.py +13 -0
  237. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/app/service.py +9 -0
  238. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/app/shapes.py +11 -0
  239. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/expected.json +1 -0
  240. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/python_project/index.scip +0 -0
  241. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/PROVENANCE.json +21 -0
  242. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/expected.json +1 -0
  243. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/index.scip +0 -0
  244. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/package.json +6 -0
  245. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/src/auth.ts +11 -0
  246. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/src/billing.ts +9 -0
  247. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/src/service.ts +12 -0
  248. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/src/store.ts +20 -0
  249. codecortex_context_engine-0.1.0a7/tests/fixtures/real_index/typescript_project/tsconfig.json +12 -0
  250. codecortex_context_engine-0.1.0a7/tests/fixtures/structural_engine.py +132 -0
  251. codecortex_context_engine-0.1.0a7/tests/fixtures/upstream/README.md +22 -0
  252. codecortex_context_engine-0.1.0a7/tests/fixtures/upstream/scip/LICENSE +201 -0
  253. codecortex_context_engine-0.1.0a7/tests/fixtures/upstream/scip/PROVENANCE.json +25 -0
  254. codecortex_context_engine-0.1.0a7/tests/fixtures/upstream/scip/scip.proto +962 -0
  255. codecortex_context_engine-0.1.0a7/tests/test_api_security_hardening.py +114 -0
  256. codecortex_context_engine-0.1.0a7/tests/test_api_versioning.py +14 -0
  257. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_backend_manager_coverage.py +4 -12
  258. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_cli_public_surface.py +2 -6
  259. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_context.py +3 -2
  260. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_context_pipeline.py +2 -2
  261. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_coverage_adapters_and_bridge.py +20 -22
  262. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_coverage_dashboard_entrypoint.py +17 -12
  263. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_coverage_final_push.py +2 -5
  264. codecortex_context_engine-0.1.0a7/tests/test_dependency_contract.py +815 -0
  265. codecortex_context_engine-0.1.0a7/tests/test_dependency_intelligence.py +666 -0
  266. codecortex_context_engine-0.1.0a7/tests/test_dependency_live_smoke.py +78 -0
  267. codecortex_context_engine-0.1.0a7/tests/test_distributed_security_regressions.py +25 -0
  268. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_distributed_service.py +9 -4
  269. codecortex_context_engine-0.1.0a7/tests/test_distributed_v2.py +95 -0
  270. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_distributed_workers_performance_org.py +1 -3
  271. codecortex_context_engine-0.1.0a7/tests/test_evidence_acceptance.py +339 -0
  272. codecortex_context_engine-0.1.0a7/tests/test_evidence_benchmark.py +141 -0
  273. codecortex_context_engine-0.1.0a7/tests/test_evidence_fusion.py +396 -0
  274. codecortex_context_engine-0.1.0a7/tests/test_evidence_invariants.py +295 -0
  275. codecortex_context_engine-0.1.0a7/tests/test_evidence_security.py +280 -0
  276. codecortex_context_engine-0.1.0a7/tests/test_evidence_surfaces.py +604 -0
  277. codecortex_context_engine-0.1.0a7/tests/test_feature_stage_10.py +117 -0
  278. codecortex_context_engine-0.1.0a7/tests/test_incremental_graph.py +57 -0
  279. codecortex_context_engine-0.1.0a7/tests/test_invariant_suite.py +128 -0
  280. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_mcp.py +2 -6
  281. codecortex_context_engine-0.1.0a7/tests/test_mcp_hardening.py +74 -0
  282. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_mcp_public_surface.py +20 -9
  283. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_native_parsers.py +16 -4
  284. codecortex_context_engine-0.1.0a7/tests/test_orchestrator_reliability.py +76 -0
  285. codecortex_context_engine-0.1.0a7/tests/test_platform_acceptance.py +30 -0
  286. codecortex_context_engine-0.1.0a7/tests/test_platform_architecture_rules.py +17 -0
  287. codecortex_context_engine-0.1.0a7/tests/test_platform_dod.py +19 -0
  288. codecortex_context_engine-0.1.0a7/tests/test_platform_edge_coverage.py +753 -0
  289. codecortex_context_engine-0.1.0a7/tests/test_platform_governance.py +15 -0
  290. codecortex_context_engine-0.1.0a7/tests/test_platform_layout.py +8 -0
  291. codecortex_context_engine-0.1.0a7/tests/test_platform_manifest.py +14 -0
  292. codecortex_context_engine-0.1.0a7/tests/test_platform_milestones.py +17 -0
  293. codecortex_context_engine-0.1.0a7/tests/test_platform_runtime_coverage.py +326 -0
  294. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_pr_intelligence.py +3 -1
  295. codecortex_context_engine-0.1.0a7/tests/test_precision_conformance.py +266 -0
  296. codecortex_context_engine-0.1.0a7/tests/test_precision_generator.py +88 -0
  297. codecortex_context_engine-0.1.0a7/tests/test_precision_intelligence.py +544 -0
  298. codecortex_context_engine-0.1.0a7/tests/test_precision_semantics.py +622 -0
  299. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_production_benchmark.py +29 -6
  300. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_production_evaluation_coverage.py +14 -12
  301. codecortex_context_engine-0.1.0a7/tests/test_real_index_conformance.py +459 -0
  302. codecortex_context_engine-0.1.0a7/tests/test_retrieval_v2.py +60 -0
  303. codecortex_context_engine-0.1.0a7/tests/test_runtime_config_contract.py +47 -0
  304. codecortex_context_engine-0.1.0a7/tests/test_sdk_client.py +26 -0
  305. codecortex_context_engine-0.1.0a7/tests/test_stabilization_coverage.py +303 -0
  306. codecortex_context_engine-0.1.0a7/tests/test_state_concurrency.py +78 -0
  307. codecortex_context_engine-0.1.0a7/tests/test_structural_conformance.py +267 -0
  308. codecortex_context_engine-0.1.0a7/tests/test_structural_intelligence.py +435 -0
  309. codecortex_context_engine-0.1.0a7/tests/test_unified_language_pipeline.py +34 -0
  310. codecortex_context_engine-0.1.0a7/web/index.html +13 -0
  311. codecortex_context_engine-0.1.0a7/web/package.json +25 -0
  312. codecortex_context_engine-0.1.0a7/web/playwright.config.ts +2 -0
  313. codecortex_context_engine-0.1.0a7/web/src/App.tsx +192 -0
  314. codecortex_context_engine-0.1.0a7/web/src/api/index.ts +1 -0
  315. codecortex_context_engine-0.1.0a7/web/src/app/index.ts +1 -0
  316. codecortex_context_engine-0.1.0a7/web/src/components/ArchitecturePanel.css +1 -0
  317. codecortex_context_engine-0.1.0a7/web/src/components/ArchitecturePanel.tsx +4 -0
  318. codecortex_context_engine-0.1.0a7/web/src/components/AuditCenter.tsx +3 -0
  319. codecortex_context_engine-0.1.0a7/web/src/components/BackendCenter.tsx +3 -0
  320. codecortex_context_engine-0.1.0a7/web/src/components/ClusterCenter.tsx +3 -0
  321. codecortex_context_engine-0.1.0a7/web/src/components/CodeActions.tsx +3 -0
  322. codecortex_context_engine-0.1.0a7/web/src/components/ContextLab.css +1 -0
  323. codecortex_context_engine-0.1.0a7/web/src/components/ContextLab.tsx +5 -0
  324. codecortex_context_engine-0.1.0a7/web/src/components/GitIntelligence.tsx +3 -0
  325. codecortex_context_engine-0.1.0a7/web/src/components/GraphExplorer.css +1 -0
  326. codecortex_context_engine-0.1.0a7/web/src/components/GraphExplorer.tsx +56 -0
  327. codecortex_context_engine-0.1.0a7/web/src/components/ImpactAnalyzer.css +1 -0
  328. codecortex_context_engine-0.1.0a7/web/src/components/ImpactAnalyzer.tsx +4 -0
  329. codecortex_context_engine-0.1.0a7/web/src/components/IntegrationsCenter.tsx +3 -0
  330. codecortex_context_engine-0.1.0a7/web/src/components/MemoryCenter.tsx +3 -0
  331. codecortex_context_engine-0.1.0a7/web/src/components/NotificationCenter.tsx +3 -0
  332. codecortex_context_engine-0.1.0a7/web/src/components/ObservabilityCenter.tsx +3 -0
  333. codecortex_context_engine-0.1.0a7/web/src/components/OrganizationAdmin.tsx +3 -0
  334. codecortex_context_engine-0.1.0a7/web/src/components/PRIntelligence.tsx +3 -0
  335. codecortex_context_engine-0.1.0a7/web/src/components/PerformanceCenter.tsx +3 -0
  336. codecortex_context_engine-0.1.0a7/web/src/components/PlatformCenters.tsx +31 -0
  337. codecortex_context_engine-0.1.0a7/web/src/components/PlatformManifest.tsx +3 -0
  338. codecortex_context_engine-0.1.0a7/web/src/components/QualityCenter.tsx +3 -0
  339. codecortex_context_engine-0.1.0a7/web/src/components/RepositoryExplorer.tsx +9 -0
  340. codecortex_context_engine-0.1.0a7/web/src/components/RoutingLab.css +1 -0
  341. codecortex_context_engine-0.1.0a7/web/src/components/RoutingLab.tsx +4 -0
  342. codecortex_context_engine-0.1.0a7/web/src/components/SearchInspector.css +1 -0
  343. codecortex_context_engine-0.1.0a7/web/src/components/SearchInspector.tsx +6 -0
  344. codecortex_context_engine-0.1.0a7/web/src/components/TraceExplorer.css +1 -0
  345. codecortex_context_engine-0.1.0a7/web/src/components/TraceExplorer.tsx +4 -0
  346. codecortex_context_engine-0.1.0a7/web/src/components/WorkspaceManager.tsx +45 -0
  347. codecortex_context_engine-0.1.0a7/web/src/features/index.ts +1 -0
  348. codecortex_context_engine-0.1.0a7/web/src/main.tsx +10 -0
  349. codecortex_context_engine-0.1.0a7/web/src/pages/index.ts +1 -0
  350. codecortex_context_engine-0.1.0a7/web/src/styles.css +1 -0
  351. codecortex_context_engine-0.1.0a7/web/src/vite-env.d.ts +3 -0
  352. codecortex_context_engine-0.1.0a7/web/tests/e2e/console.spec.ts +22 -0
  353. codecortex_context_engine-0.1.0a7/web/tsconfig.json +21 -0
  354. codecortex_context_engine-0.1.0a7/web/vite.config.ts +11 -0
  355. codecortex_context_engine-0.1.0a3/.github/workflows/ci.yml +0 -80
  356. codecortex_context_engine-0.1.0a3/CHANGELOG.md +0 -28
  357. codecortex_context_engine-0.1.0a3/Dockerfile +0 -37
  358. codecortex_context_engine-0.1.0a3/PKG-INFO +0 -1923
  359. codecortex_context_engine-0.1.0a3/README.md +0 -1682
  360. codecortex_context_engine-0.1.0a3/THIRD_PARTY_NOTICES.md +0 -60
  361. codecortex_context_engine-0.1.0a3/compose.yaml +0 -27
  362. codecortex_context_engine-0.1.0a3/docs/INTEGRATIONS.md +0 -14
  363. codecortex_context_engine-0.1.0a3/docs/QUALITY.md +0 -21
  364. codecortex_context_engine-0.1.0a3/docs/TESTING.md +0 -9
  365. codecortex_context_engine-0.1.0a3/docs/index.md +0 -29
  366. codecortex_context_engine-0.1.0a3/scripts/check_readme.py +0 -40
  367. codecortex_context_engine-0.1.0a3/scripts/generate_readme.py +0 -428
  368. codecortex_context_engine-0.1.0a3/src/codecortex/config.py +0 -27
  369. codecortex_context_engine-0.1.0a3/src/codecortex/context/budget.py +0 -62
  370. codecortex_context_engine-0.1.0a3/src/codecortex/context/pipeline.py +0 -223
  371. codecortex_context_engine-0.1.0a3/src/codecortex/distributed/cli.py +0 -67
  372. codecortex_context_engine-0.1.0a3/src/codecortex/engines/registry.py +0 -26
  373. codecortex_context_engine-0.1.0a3/src/codecortex/indexing/incremental_graph.py +0 -189
  374. codecortex_context_engine-0.1.0a3/src/codecortex/mcp/server.py +0 -473
  375. codecortex_context_engine-0.1.0a3/src/codecortex/orchestrator.py +0 -153
  376. codecortex_context_engine-0.1.0a3/src/codecortex/router/__init__.py +0 -5
  377. codecortex_context_engine-0.1.0a3/tests/test_incremental_graph.py +0 -21
  378. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.dockerignore +0 -0
  379. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/CODEOWNERS +0 -0
  380. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/ISSUE_TEMPLATE/bug.yml +0 -0
  381. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  382. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/ISSUE_TEMPLATE/feature.yml +0 -0
  383. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  384. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/dependabot.yml +0 -0
  385. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/pull_request_template.md +0 -0
  386. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/backend-conformance.yml +0 -0
  387. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/codeql.yml +0 -0
  388. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/docker.yml +0 -0
  389. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/docs.yml +0 -0
  390. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/live-agent-e2e.yml +0 -0
  391. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/longitudinal-performance.yml +0 -0
  392. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/parser-providers.yml +0 -0
  393. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/production-benchmark.yml +0 -0
  394. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/scorecard.yml +0 -0
  395. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/.github/workflows/security.yml +0 -0
  396. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/CITATION.cff +0 -0
  397. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/CODE_OF_CONDUCT.md +0 -0
  398. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/COMMERCIAL.md +0 -0
  399. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/GOVERNANCE.md +0 -0
  400. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/LICENSE +0 -0
  401. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/benchmarks/README.md +0 -0
  402. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/benchmarks/cases.json +0 -0
  403. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/benchmarks/external/sample-suite.json +0 -0
  404. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/benchmarks/production/README.md +0 -0
  405. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/benchmarks/production/spec.json +0 -0
  406. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/benchmarks/regression-policy.json +0 -0
  407. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/codecov.yml +0 -0
  408. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/ADVANCED_INTELLIGENCE.md +0 -0
  409. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/BRAND.md +0 -0
  410. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/DISTRIBUTED.md +0 -0
  411. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/OPENSSF.md +0 -0
  412. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/PACKAGING.md +0 -0
  413. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/RELEASE.md +0 -0
  414. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/provenance/graphify.md +0 -0
  415. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/provenance/headroom.md +0 -0
  416. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/docs/provenance/serena.md +0 -0
  417. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/examples/demo_project/api.py +0 -0
  418. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/examples/demo_project/auth/service.py +0 -0
  419. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/examples/demo_project/auth/tokens.py +0 -0
  420. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/examples/demo_project/tests/test_auth.py +0 -0
  421. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/backend_conformance.py +0 -0
  422. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/compact_readme.py +0 -0
  423. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/install.ps1 +0 -0
  424. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/install.sh +0 -0
  425. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/record_performance_history.py +0 -0
  426. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/scripts/release_check.py +0 -0
  427. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/__init__.py +0 -0
  428. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/architecture/__init__.py +0 -0
  429. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/architecture/inference.py +0 -0
  430. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/__init__.py +0 -0
  431. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/context.py +0 -0
  432. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/contracts.py +0 -0
  433. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/graph.py +0 -0
  434. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/pool.py +0 -0
  435. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/backends/symbols.py +0 -0
  436. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/context/__init__.py +0 -0
  437. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/context/integrated.py +0 -0
  438. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/core/__init__.py +0 -0
  439. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/core/contracts.py +0 -0
  440. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/core/errors.py +0 -0
  441. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/distributed/__init__.py +0 -0
  442. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/editing.py +0 -0
  443. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/engines/__init__.py +0 -0
  444. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/engines/builtin/__init__.py +0 -0
  445. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/engines/builtin/memory.py +0 -0
  446. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/indexing/__init__.py +0 -0
  447. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/indexing/resolution.py +0 -0
  448. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/integrations/__init__.py +0 -0
  449. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/interfaces/__init__.py +0 -0
  450. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/interfaces/mcp_bridge.py +0 -0
  451. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/languages/__init__.py +0 -0
  452. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/languages/native.py +0 -0
  453. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/mcp/__init__.py +0 -0
  454. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/memory/__init__.py +0 -0
  455. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/memory/team_store.py +0 -0
  456. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/retrieval/__init__.py +0 -0
  457. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/symbols/__init__.py +0 -0
  458. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/telemetry/__init__.py +0 -0
  459. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/telemetry/collector.py +0 -0
  460. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/tracing/__init__.py +0 -0
  461. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/src/codecortex/workspace/__init__.py +0 -0
  462. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/fixtures/fake_mcp_server.py +0 -0
  463. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_agent_configurator.py +0 -0
  464. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_architecture_drift.py +0 -0
  465. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_architecture_inference.py +0 -0
  466. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_backend_contracts.py +0 -0
  467. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_backend_factory.py +0 -0
  468. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_backend_manager.py +0 -0
  469. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_backend_session_pool.py +0 -0
  470. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_benchmark.py +0 -0
  471. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_context_backend_adapter.py +0 -0
  472. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_dashboard.py +0 -0
  473. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_dashboard_observability_coverage.py +0 -0
  474. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_distributed_memory_vector_remote.py +0 -0
  475. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_external_evaluation.py +0 -0
  476. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_git_intelligence.py +0 -0
  477. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_graph.py +0 -0
  478. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_graph_backend_adapter.py +0 -0
  479. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_impact.py +0 -0
  480. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_incremental.py +0 -0
  481. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_integrated_context.py +0 -0
  482. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_knowledge.py +0 -0
  483. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_languages.py +0 -0
  484. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_mcp_edit_surface.py +0 -0
  485. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_mcp_stdio_client.py +0 -0
  486. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_memory.py +0 -0
  487. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_native_provider_unit.py +0 -0
  488. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_orchestrator_concurrency.py +0 -0
  489. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_regression_gate.py +0 -0
  490. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_relationships.py +0 -0
  491. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_repository_semantic.py +0 -0
  492. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_resolution.py +0 -0
  493. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_retrieval.py +0 -0
  494. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_router.py +0 -0
  495. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_runtime.py +0 -0
  496. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_security_boundaries.py +0 -0
  497. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_setup.py +0 -0
  498. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_symbol_backend_adapter.py +0 -0
  499. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_symbol_history.py +0 -0
  500. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_symbols.py +0 -0
  501. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_task_trace.py +0 -0
  502. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_team_memory.py +0 -0
  503. {codecortex_context_engine-0.1.0a3 → codecortex_context_engine-0.1.0a7}/tests/test_workspace.py +0 -0
@@ -0,0 +1,21 @@
1
+ # Conformance fixtures must reach every checkout byte-for-byte.
2
+ #
3
+ # Without this, Git's autocrlf translation rewrites LF to CRLF on a Windows
4
+ # checkout. That silently breaks two guarantees these fixtures exist to make:
5
+ #
6
+ # * `tests/fixtures/upstream/` is vendored byte-identical to a pinned
7
+ # upstream revision, and its SHA-256 is recorded in a provenance manifest.
8
+ # A rewritten line ending makes the committed file no longer the upstream
9
+ # file, and the digest check that proves it correctly fails.
10
+ #
11
+ # * `tests/fixtures/real_index/` holds indexes produced by real indexers from
12
+ # the source files beside them. Those indexes encode byte offsets computed
13
+ # over LF text, so rewriting the sources would desynchronise the index from
14
+ # the code it describes.
15
+ #
16
+ # `-text` disables all end-of-line conversion in both directions.
17
+ tests/fixtures/upstream/** -text
18
+ tests/fixtures/real_index/** -text
19
+
20
+ # A serialized index is protobuf, not text, in any location.
21
+ *.scip binary
@@ -18,19 +18,19 @@ jobs:
18
18
  with:
19
19
  fetch-depth: 0
20
20
  persist-credentials: true
21
- - name: Create v0.1.0a3 release tag from validated main
21
+ - name: Create v0.1.0a7 release tag from validated main
22
22
  shell: bash
23
23
  run: |
24
24
  set -euo pipefail
25
25
  git config user.name "Behnam Jalali"
26
26
  git config user.email "behnamjalalico@gmail.com"
27
- if git rev-parse -q --verify refs/tags/v0.1.0a3 >/dev/null; then
28
- echo "v0.1.0a3 already exists"
27
+ if git rev-parse -q --verify refs/tags/v0.1.0a7 >/dev/null; then
28
+ echo "v0.1.0a7 already exists"
29
29
  else
30
- git tag -a v0.1.0a3 -m "CodeCortex Context Engine v0.1.0a3"
31
- git push origin refs/tags/v0.1.0a3
30
+ git tag -a v0.1.0a7 -m "CodeCortex Context Engine v0.1.0a7"
31
+ git push origin refs/tags/v0.1.0a7
32
32
  fi
33
33
  - name: Dispatch release workflow
34
34
  env:
35
35
  GH_TOKEN: ${{ github.token }}
36
- run: gh workflow run release.yml --ref main -f tag=v0.1.0a3
36
+ run: gh workflow run release.yml --ref main -f tag=v0.1.0a7
@@ -0,0 +1,134 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, stabilization-1-10]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ id-token: write
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ python-version: ["3.11", "3.12", "3.13"]
21
+ steps:
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
23
+ with:
24
+ persist-credentials: false
25
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+ cache: pip
29
+ - run: python -m pip install --upgrade pip
30
+ - run: pip install -e ".[dev,web]"
31
+ - run: ruff check .
32
+ - run: mypy
33
+ - name: Tests
34
+ run: |
35
+ if [ "${{ matrix.python-version }}" = "3.13" ]; then
36
+ pytest -q --cov=codecortex --cov-report=xml --cov-report=term-missing --cov-fail-under=90
37
+ else
38
+ pytest -q
39
+ fi
40
+ - name: Upload coverage
41
+ if: matrix.python-version == '3.13' && !cancelled()
42
+ uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
43
+ with:
44
+ use_oidc: true
45
+ files: ./coverage.xml
46
+ fail_ci_if_error: false
47
+
48
+ invariants:
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
52
+ with:
53
+ persist-credentials: false
54
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
55
+ with:
56
+ python-version: "3.13"
57
+ cache: pip
58
+ - run: python -m pip install --upgrade pip
59
+ - run: pip install -e ".[dev]"
60
+ - name: Correctness and fault invariants
61
+ run: >-
62
+ pytest -q
63
+ tests/test_invariant_suite.py
64
+ tests/test_incremental_graph.py
65
+ tests/test_state_concurrency.py
66
+ tests/test_mcp_hardening.py
67
+ tests/test_distributed_security_regressions.py
68
+ tests/test_distributed_v2.py
69
+ tests/test_unified_language_pipeline.py
70
+ tests/test_retrieval_v2.py
71
+ tests/test_evidence_fusion.py
72
+ tests/test_evidence_invariants.py
73
+ tests/test_evidence_acceptance.py
74
+ tests/test_evidence_security.py
75
+ tests/test_evidence_surfaces.py
76
+ tests/test_precision_intelligence.py
77
+ tests/test_precision_semantics.py
78
+ tests/test_precision_conformance.py
79
+ tests/test_real_index_conformance.py
80
+ tests/test_precision_generator.py
81
+ tests/test_dependency_intelligence.py
82
+ tests/test_dependency_contract.py
83
+ tests/test_structural_intelligence.py
84
+
85
+ platform-contracts:
86
+ runs-on: ubuntu-latest
87
+ steps:
88
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
89
+ with:
90
+ persist-credentials: false
91
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
92
+ with:
93
+ python-version: "3.13"
94
+ cache: pip
95
+ - run: python -m pip install --upgrade pip
96
+ - run: pip install -e ".[dev,web]"
97
+ - run: python scripts/check_platform_architecture.py
98
+ - run: python scripts/check_platform_priorities.py
99
+ - run: pytest -q tests/test_platform_acceptance.py tests/test_platform_layout.py tests/test_platform_manifest.py tests/test_platform_milestones.py tests/test_platform_governance.py tests/test_platform_dod.py tests/test_api_versioning.py tests/test_api_security_hardening.py tests/test_sdk_client.py
100
+
101
+ windows-compat:
102
+ runs-on: windows-latest
103
+ steps:
104
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
105
+ with:
106
+ persist-credentials: false
107
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
108
+ with:
109
+ python-version: "3.11"
110
+ cache: pip
111
+ - run: python -m pip install --upgrade pip
112
+ - run: pip install -e ".[dev,web]"
113
+ - run: ruff check .
114
+ - run: pytest -q
115
+ - run: cortex --help
116
+ - run: cortex version
117
+
118
+ package:
119
+ runs-on: ubuntu-latest
120
+ steps:
121
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
122
+ with:
123
+ persist-credentials: false
124
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
125
+ with:
126
+ python-version: "3.13"
127
+ - run: python scripts/check_readme.py
128
+ - run: python -m pip install --upgrade pip build twine
129
+ - run: python -m build
130
+ - run: python -m twine check dist/*
131
+ - run: pip install dist/*.whl
132
+ - run: cortex --help
133
+ - run: cortex version
134
+ - run: cortex-remote --help
@@ -0,0 +1,47 @@
1
+ name: Dependency Docs Live Smoke
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - "src/codecortex/dependencies/**"
8
+ - "tests/test_dependency_live_smoke.py"
9
+ - ".github/workflows/dependency-docs-live.yml"
10
+ - "README.md"
11
+ workflow_dispatch:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ live-documentation:
18
+ runs-on: ubuntu-latest
19
+ timeout-minutes: 10
20
+ env:
21
+ CODECORTEX_DEPENDENCY_DOCS_API_KEY: ${{ secrets.CODECORTEX_DEPENDENCY_DOCS_API_KEY }}
22
+ steps:
23
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
24
+ with:
25
+ persist-credentials: false
26
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
27
+ with:
28
+ python-version: "3.13"
29
+ cache: pip
30
+ - run: python -m pip install --upgrade pip
31
+ - run: pip install -e ".[dev]"
32
+ - name: Check credential availability
33
+ id: credential
34
+ shell: bash
35
+ run: |
36
+ if [ -n "${CODECORTEX_DEPENDENCY_DOCS_API_KEY:-}" ]; then
37
+ echo "available=true" >> "$GITHUB_OUTPUT"
38
+ else
39
+ echo "available=false" >> "$GITHUB_OUTPUT"
40
+ fi
41
+ - name: Run real documentation smoke tests
42
+ if: steps.credential.outputs.available == 'true'
43
+ run: pytest -q tests/test_dependency_live_smoke.py -rs
44
+ - name: Record credential-gated skip
45
+ if: steps.credential.outputs.available != 'true'
46
+ run: |
47
+ echo "SKIPPED — CODECORTEX_DEPENDENCY_DOCS_API_KEY unavailable" | tee -a "$GITHUB_STEP_SUMMARY"
@@ -0,0 +1,64 @@
1
+ name: MCP Registry Manifest
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - server.json
7
+ - pyproject.toml
8
+ - README.md
9
+ - scripts/generate_readme.py
10
+ - .github/workflows/release.yml
11
+ - .github/workflows/mcp-registry.yml
12
+ push:
13
+ branches: [main]
14
+ paths:
15
+ - server.json
16
+ - pyproject.toml
17
+ - README.md
18
+ - scripts/generate_readme.py
19
+ - .github/workflows/release.yml
20
+ - .github/workflows/mcp-registry.yml
21
+
22
+ permissions:
23
+ contents: read
24
+
25
+ jobs:
26
+ validate:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
30
+ with:
31
+ persist-credentials: false
32
+ - name: Verify registry/package identity
33
+ shell: bash
34
+ run: |
35
+ set -euo pipefail
36
+ python - <<'PY'
37
+ import json, tomllib
38
+ from pathlib import Path
39
+
40
+ server = json.loads(Path("server.json").read_text(encoding="utf-8"))
41
+ project = tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))["project"]
42
+ package = server["packages"][0]
43
+ expected = "io.github.BehnamJalaliCo/codecortex-context-engine"
44
+ assert server["name"] == expected
45
+ assert package["registryType"] == "pypi"
46
+ assert package["identifier"] == project["name"]
47
+ assert package["version"] == project["version"] == server["version"]
48
+ assert f"mcp-name: {expected}" in Path("README.md").read_text(encoding="utf-8")
49
+ assert "codecortex-context-engine" in project["scripts"]
50
+ print("CodeCortex MCP registry identity is internally consistent")
51
+ PY
52
+ - name: Install verified MCP Registry publisher
53
+ shell: bash
54
+ env:
55
+ MCP_PUBLISHER_VERSION: v1.8.1
56
+ MCP_PUBLISHER_SHA256: a06c9096dcb9727c13555b6be26c7effa707b01f06a4c561ba7a3635443cf2cc
57
+ run: |
58
+ set -euo pipefail
59
+ archive="mcp-publisher_linux_amd64.tar.gz"
60
+ curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}/${archive}" -o "${archive}"
61
+ echo "${MCP_PUBLISHER_SHA256} ${archive}" | sha256sum -c -
62
+ tar xzf "${archive}" mcp-publisher
63
+ - name: Validate server.json against official registry schema
64
+ run: ./mcp-publisher validate server.json
@@ -35,7 +35,7 @@ jobs:
35
35
  with:
36
36
  python-version: ${{ matrix.python-version }}
37
37
  - run: python -m pip install --upgrade pip
38
- - run: pip install -e ".[dev]"
38
+ - run: pip install -e ".[dev,web]"
39
39
  - run: python scripts/release_check.py --tag "${{ env.RELEASE_TAG }}"
40
40
  - run: ruff check .
41
41
  - run: pytest -q
@@ -143,6 +143,45 @@ jobs:
143
143
  packages-dir: dist/
144
144
  skip-existing: true
145
145
 
146
+
147
+ publish-mcp-registry:
148
+ if: vars.PYPI_PUBLISH_ENABLED == 'true'
149
+ needs: publish-pypi
150
+ runs-on: ubuntu-latest
151
+ permissions:
152
+ contents: read
153
+ id-token: write
154
+ steps:
155
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
156
+ with:
157
+ persist-credentials: false
158
+ ref: ${{ env.RELEASE_TAG }}
159
+ - name: Set registry version from release tag
160
+ shell: bash
161
+ run: |
162
+ set -euo pipefail
163
+ VERSION="${RELEASE_TAG#v}"
164
+ jq --arg v "$VERSION" '.version = $v | .packages |= map(if .registryType == "pypi" then .version = $v else . end)' server.json > server.tmp
165
+ mv server.tmp server.json
166
+ - name: Install verified MCP Registry publisher
167
+ shell: bash
168
+ env:
169
+ MCP_PUBLISHER_VERSION: v1.8.1
170
+ MCP_PUBLISHER_SHA256: a06c9096dcb9727c13555b6be26c7effa707b01f06a4c561ba7a3635443cf2cc
171
+ run: |
172
+ set -euo pipefail
173
+ archive="mcp-publisher_linux_amd64.tar.gz"
174
+ curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}/${archive}" -o "${archive}"
175
+ echo "${MCP_PUBLISHER_SHA256} ${archive}" | sha256sum -c -
176
+ tar xzf "${archive}" mcp-publisher
177
+ ./mcp-publisher --help >/dev/null
178
+ - name: Validate MCP Registry manifest
179
+ run: ./mcp-publisher validate server.json
180
+ - name: Authenticate to official MCP Registry
181
+ run: ./mcp-publisher login github-oidc
182
+ - name: Publish MCP Registry metadata
183
+ run: ./mcp-publisher publish server.json
184
+
146
185
  publish-containers:
147
186
  needs: quality
148
187
  runs-on: ubuntu-latest
@@ -0,0 +1,61 @@
1
+ name: Structural Engine
2
+
3
+ # The structural engine is an optional extra. Core CI runs the structural tests
4
+ # against an in-repository stub, so this workflow is the one place the real,
5
+ # version-pinned binary is exercised. No credentials are required.
6
+
7
+ on:
8
+ workflow_dispatch:
9
+ push:
10
+ branches: [main]
11
+ paths:
12
+ - "src/codecortex/structural/**"
13
+ - "tests/test_structural_intelligence.py"
14
+ - "tests/fixtures/structural_engine.py"
15
+ - "pyproject.toml"
16
+ - ".github/workflows/structural-engine.yml"
17
+ pull_request:
18
+ paths:
19
+ - "src/codecortex/structural/**"
20
+ - "tests/test_structural_intelligence.py"
21
+ - "tests/fixtures/structural_engine.py"
22
+ - "pyproject.toml"
23
+ - ".github/workflows/structural-engine.yml"
24
+
25
+ permissions:
26
+ contents: read
27
+
28
+ jobs:
29
+ structural-engine:
30
+ strategy:
31
+ fail-fast: false
32
+ matrix:
33
+ python-version: ["3.11", "3.13"]
34
+ runs-on: ubuntu-latest
35
+ steps:
36
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
37
+ with:
38
+ persist-credentials: false
39
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
40
+ with:
41
+ python-version: ${{ matrix.python-version }}
42
+ cache: pip
43
+ - run: python -m pip install --upgrade pip
44
+ - run: pip install -e ".[dev,structural]"
45
+ - name: Confirm the pinned engine is installed
46
+ run: |
47
+ ast-grep --version
48
+ ast-grep --version | grep -qF "$(python -c 'from codecortex.structural.engine import TESTED_ENGINE_VERSION as v; print(v)')"
49
+ - name: Structural search, preview, and guarded apply
50
+ run: pytest -q tests/test_structural_intelligence.py tests/test_evidence_benchmark.py
51
+ - name: Real-binary conformance
52
+ run: pytest -q tests/test_structural_conformance.py
53
+ - name: Measured evidence benchmark
54
+ run: |
55
+ cortex evidence-benchmark --output benchmarks/evidence.json
56
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
57
+ if: always()
58
+ with:
59
+ name: evidence-benchmark-${{ matrix.python-version }}
60
+ path: benchmarks/evidence.json
61
+ if-no-files-found: warn
@@ -0,0 +1,27 @@
1
+ name: Web Console
2
+ on:
3
+ push:
4
+ branches: [main, platform-roadmap-1-47]
5
+ pull_request:
6
+ permissions:
7
+ contents: read
8
+ jobs:
9
+ web:
10
+ runs-on: ubuntu-latest
11
+ defaults:
12
+ run:
13
+ working-directory: web
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ persist-credentials: false
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '22'
21
+ cache: npm
22
+ cache-dependency-path: web/package.json
23
+ - run: npm install
24
+ - run: npm run typecheck
25
+ - run: npm run build
26
+ - run: npx playwright install --with-deps chromium
27
+ - run: npm run test:e2e
@@ -1,11 +1,14 @@
1
1
  __pycache__/
2
2
  *.py[cod]
3
3
  .venv/
4
+ .v/
4
5
  venv/
5
6
  .env
6
7
  .pytest_cache/
7
8
  .mypy_cache/
8
9
  .ruff_cache/
10
+ .coverage
11
+ coverage.xml
9
12
  dist/
10
13
  build/
11
14
  *.egg-info/
@@ -0,0 +1,58 @@
1
+ # Changelog
2
+
3
+ All notable changes to CodeCortex are documented here. The project follows semantic versioning while in alpha; breaking changes may occur before 1.0 and will be called out explicitly.
4
+
5
+ ## 0.1.0a7
6
+
7
+ - Fixed a Windows lock-directory race in `FileMutex` discovered by the release matrix.
8
+ - Added bounded retry behavior for transient Windows `PermissionError` lock contention.
9
+ - Added a deterministic regression test for the transient permission-error path.
10
+ - Carries forward the GitHub discovery, onboarding, and official MCP Registry publication work from the unreleased `v0.1.0a6` attempt.
11
+
12
+ ## 0.1.0a6
13
+
14
+ - Reworked GitHub discovery and first-run onboarding for CodeCortex Context Engine.
15
+ - Added official MCP Registry manifest, PyPI ownership marker, manifest validation, and release publishing.
16
+ - Surfaced Claude Code, Codex, Cursor, Gemini CLI, and OpenCode integration setup.
17
+ - Expanded MkDocs navigation, Getting Started, benchmark evidence, launch materials, and discovery documentation.
18
+ - Added contributor-friendly `good first issue` entry points and product/social discovery assets.
19
+
20
+ ## Unreleased
21
+
22
+ ### Added
23
+
24
+ - Revision-pinned isolated graph, semantic-symbol/LSP, and context-optimization backends behind stable CodeCortex contracts.
25
+ - Guarded language-server rename, replace-body, insert-before, and insert-after operations in CLI and MCP.
26
+ - Warm backend MCP session pooling, health caching, failure recovery, and concurrent orchestration.
27
+ - Native Tree-sitter parser provider with conservative fallback.
28
+ - Expanded reproducible real-repository benchmark corpus and live coding-agent E2E harness.
29
+ - Docker Core/Full integration CI.
30
+ - CodeQL, dependency review, Bandit, dependency audit, SBOM generation, and security-boundary tests.
31
+ - Production observability dashboard with traces, graph hotspots, architecture drift, benchmark history, latency, token savings, and PR-risk API.
32
+ - Signed release pipeline with checksums, Sigstore bundles, GitHub provenance attestations, PyPI Trusted Publishing, and GHCR publishing.
33
+ - Unified evidence model with categorical trust tiers, provenance, and a central ranking, deduplication, and conflict policy.
34
+ - Precision code intelligence: exact definition, reference, implementation, and occurrence resolution from a compiler/indexer-grade index, with symbol-identity decomposition, staleness detection, incremental caching, and graph fusion.
35
+ - Dependency intelligence: manifest and lockfile discovery across Python, Node, Rust, Go, JVM, and .NET, separating declared constraints from resolved versions, behind an optional documentation-provider contract.
36
+ - Structural search and guarded structural rewrite with typed matches, captures, expiring previews, content-hash transactions, rollback, post-apply reindexing, and validation.
37
+ - New MCP tools: `cortex_precise_definition`, `cortex_precise_references`, `cortex_precise_implementations`, `cortex_symbol_occurrences`, `cortex_precision_status`, `cortex_dependency_info`, `cortex_dependency_docs`, `cortex_dependency_context`, `cortex_structural_search`, `cortex_rewrite_preview`, and `cortex_rewrite_apply` (mutating surface only).
38
+ - New CLI commands: `definition`, `references`, `implementations`, `precision-status`, `dependency`, `dependency-docs`, `structural-search`, `rewrite-preview`, `rewrite-apply`, and `evidence-benchmark`.
39
+ - Measured heuristic-versus-evidence benchmark cases for duplicate symbol names, resolved dependency versions, and mechanical migrations; unmeasurable strategies are reported as skipped.
40
+ - `docs/EVIDENCE_FUSION.md`, plus provenance records for the integrated protocol and optional dependencies under `docs/provenance/`.
41
+
42
+ ### Changed
43
+
44
+ - Python distribution identity is now `codecortex-context-engine`; the public brand remains CodeCortex Context Engine and the recommended CLI remains `cortex`.
45
+ - Optional backend processes remain isolated from the Core Python dependency environment and are pinned to exact compatible revisions.
46
+ - Documentation now treats benchmark output as evidence only after reproducible execution; missing metrics are never synthesized.
47
+ - Impact analysis weighs exact relationships above inferred ones and reports the evidence mix; `cortex doctor` reports the state of each optional evidence layer.
48
+ - The context pipeline accepts ranked evidence and keeps the stronger record when two providers point at the same location.
49
+ - The package now ships a `py.typed` marker, so `mypy --strict` runs against the distribution and is green across all source files; it is enforced in CI.
50
+
51
+ ### Security
52
+
53
+ - Semantic edit paths are constrained to the repository root and reject path traversal, absolute escape, and symlink escape.
54
+ - Security reporting now uses GitHub's private vulnerability-reporting flow.
55
+ - Optional external engines run with an explicit argument vector, a resolved absolute executable, bounded runtime, and bounded output; no shell is ever used and nothing is downloaded implicitly.
56
+ - Dependency documentation is disabled by default, transmits only a library name, resolved version, and question, and reads its API key solely from a configured environment variable; credentials are redacted from diagnostics and never persisted.
57
+ - Structural rewrites require an unexpired preview, re-verify every file's content hash before writing, enforce file/match/byte limits, write atomically, and roll back on partial failure.
58
+ - Structural matches and paths are constrained to the repository root, rejecting traversal, absolute escape, and symlink escape.
@@ -2,6 +2,12 @@
2
2
 
3
3
  Thank you for improving CodeCortex. Focused, tested changes are easier to review and safer to release.
4
4
 
5
+ ## First contribution
6
+
7
+ Start with the repository's [good first issues](https://github.com/BehnamJalaliCo/CodeCortex/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). They are intentionally scoped to be reviewable without requiring knowledge of the entire engine.
8
+
9
+ If an issue is unclear, ask a question on that issue before building a large change. Do not create speculative rewrites for unassigned work.
10
+
5
11
  ## Development
6
12
 
7
13
  ```bash
@@ -0,0 +1,43 @@
1
+ # syntax=docker/dockerfile:1.7
2
+ FROM python:3.13-slim@sha256:7ce4b6dfe35e55397b7cda544f8a13f191b7ae28dc5aad71fe664dbc9bc2623f AS base
3
+ ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_DISABLE_PIP_VERSION_CHECK=1 CODECORTEX_BACKEND_HOME=/opt/codecortex/backends CODECORTEX_BACKENDS=builtin
4
+ RUN apt-get update && apt-get install -y --no-install-recommends git build-essential ca-certificates && rm -rf /var/lib/apt/lists/* && python -m pip install --no-cache-dir uv
5
+ WORKDIR /app
6
+ COPY pyproject.toml README.md LICENSE NOTICE ./
7
+ COPY src ./src
8
+ RUN python -m pip install --no-cache-dir .
9
+
10
+ FROM base AS core
11
+ RUN useradd --create-home --uid 10001 cortex && mkdir -p /workspace /opt/codecortex/backends && chown -R cortex:cortex /workspace /opt/codecortex/backends
12
+ USER cortex
13
+ WORKDIR /workspace
14
+ ENTRYPOINT ["cortex"]
15
+ CMD ["--help"]
16
+
17
+ FROM base AS full
18
+ RUN python -m pip install --no-cache-dir ".[semantic,parsers]" && useradd --create-home --uid 10001 cortex && mkdir -p /workspace /opt/codecortex/backends && chown -R cortex:cortex /workspace /opt/codecortex/backends
19
+ USER cortex
20
+ WORKDIR /workspace
21
+ ENTRYPOINT ["cortex"]
22
+ CMD ["--help"]
23
+
24
+ FROM base AS api
25
+ RUN python -m pip install --no-cache-dir ".[web,parsers]" && useradd --create-home --uid 10001 cortex && mkdir -p /workspace /var/lib/codecortex /opt/codecortex/backends && chown -R cortex:cortex /workspace /var/lib/codecortex /opt/codecortex/backends
26
+ USER cortex
27
+ WORKDIR /workspace
28
+ EXPOSE 7340
29
+ ENTRYPOINT ["cortex-api"]
30
+ CMD ["--host", "0.0.0.0", "--port", "7340", "--state-dir", "/var/lib/codecortex"]
31
+
32
+ FROM node:22-alpine AS web-build
33
+ WORKDIR /web
34
+ COPY web/package.json ./
35
+ RUN npm install
36
+ COPY web ./
37
+ RUN npm run build
38
+
39
+ FROM nginx:1.27-alpine AS console
40
+ COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
41
+ COPY --from=web-build /web/dist /usr/share/nginx/html
42
+ EXPOSE 8080
43
+ HEALTHCHECK --interval=15s --timeout=3s --retries=5 CMD wget -q -O /dev/null http://127.0.0.1:8080/ || exit 1