codmap 0.0.49__tar.gz → 0.0.50__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 (223) hide show
  1. {codmap-0.0.49/codmap.egg-info → codmap-0.0.50}/PKG-INFO +2 -2
  2. {codmap-0.0.49 → codmap-0.0.50}/README.md +1 -1
  3. {codmap-0.0.49 → codmap-0.0.50}/codemap/query.py +22 -14
  4. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/pack.py +8 -3
  5. {codmap-0.0.49 → codmap-0.0.50/codmap.egg-info}/PKG-INFO +2 -2
  6. {codmap-0.0.49 → codmap-0.0.50}/codmap.egg-info/SOURCES.txt +1 -0
  7. {codmap-0.0.49 → codmap-0.0.50}/pyproject.toml +1 -1
  8. codmap-0.0.50/tests/test_r1c151_pack_projection.py +31 -0
  9. {codmap-0.0.49 → codmap-0.0.50}/LICENSE +0 -0
  10. {codmap-0.0.49 → codmap-0.0.50}/codemap/__init__.py +0 -0
  11. {codmap-0.0.49 → codmap-0.0.50}/codemap/__main__.py +0 -0
  12. {codmap-0.0.49 → codmap-0.0.50}/codemap/advise/__init__.py +0 -0
  13. {codmap-0.0.49 → codmap-0.0.50}/codemap/advise/data/feed.json +0 -0
  14. {codmap-0.0.49 → codmap-0.0.50}/codemap/advise/data/matrix.toml +0 -0
  15. {codmap-0.0.49 → codmap-0.0.50}/codemap/advise/refresh.py +0 -0
  16. {codmap-0.0.49 → codmap-0.0.50}/codemap/advise/render.py +0 -0
  17. {codmap-0.0.49 → codmap-0.0.50}/codemap/apidiff.py +0 -0
  18. {codmap-0.0.49 → codmap-0.0.50}/codemap/arch.py +0 -0
  19. {codmap-0.0.49 → codmap-0.0.50}/codemap/atomic.py +0 -0
  20. {codmap-0.0.49 → codmap-0.0.50}/codemap/cli.py +0 -0
  21. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/__init__.py +0 -0
  22. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/artifacts.py +0 -0
  23. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/hooks.py +0 -0
  24. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/install.py +0 -0
  25. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/ratchet.py +0 -0
  26. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/state.py +0 -0
  27. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/agents_block.md +0 -0
  28. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/agents_block.ru.md +0 -0
  29. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/brief.txt +0 -0
  30. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/claude_hooks.json +0 -0
  31. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/codex_region.toml +0 -0
  32. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/contract_head.toml +0 -0
  33. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/cycles_region.toml +0 -0
  34. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/github-workflow.yml +0 -0
  35. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/gitlab-ci.yml +0 -0
  36. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/mcp_claude.args +0 -0
  37. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/post-commit.sh +0 -0
  38. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/templates/ratchet_region.toml +0 -0
  39. {codmap-0.0.49 → codmap-0.0.50}/codemap/devkit/usage.py +0 -0
  40. {codmap-0.0.49 → codmap-0.0.50}/codemap/diagnostics.py +0 -0
  41. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/__init__.py +0 -0
  42. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/attrflow.py +0 -0
  43. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/behavior.py +0 -0
  44. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/dataflow.py +0 -0
  45. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/dispatch.py +0 -0
  46. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/griffe_extractor.py +0 -0
  47. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/gsource.py +0 -0
  48. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/probe.py +0 -0
  49. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/roots.py +0 -0
  50. {codmap-0.0.49 → codmap-0.0.50}/codemap/extract/union.py +0 -0
  51. {codmap-0.0.49 → codmap-0.0.50}/codemap/freshness.py +0 -0
  52. {codmap-0.0.49 → codmap-0.0.50}/codemap/incremental.py +0 -0
  53. {codmap-0.0.49 → codmap-0.0.50}/codemap/integrations/__init__.py +0 -0
  54. {codmap-0.0.49 → codmap-0.0.50}/codemap/integrations/base.py +0 -0
  55. {codmap-0.0.49 → codmap-0.0.50}/codemap/integrations/cocoindex.py +0 -0
  56. {codmap-0.0.49 → codmap-0.0.50}/codemap/integrations/gate.py +0 -0
  57. {codmap-0.0.49 → codmap-0.0.50}/codemap/integrations/gitnexus.py +0 -0
  58. {codmap-0.0.49 → codmap-0.0.50}/codemap/integrations/registry.py +0 -0
  59. {codmap-0.0.49 → codmap-0.0.50}/codemap/integrations/transport.py +0 -0
  60. {codmap-0.0.49 → codmap-0.0.50}/codemap/model.py +0 -0
  61. {codmap-0.0.49 → codmap-0.0.50}/codemap/provenance.py +0 -0
  62. {codmap-0.0.49 → codmap-0.0.50}/codemap/scope.py +0 -0
  63. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/__init__.py +0 -0
  64. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/_scip_pb2.py +0 -0
  65. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/api_surface.py +0 -0
  66. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/apidiff.py +0 -0
  67. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/architecture.py +0 -0
  68. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/audit.py +0 -0
  69. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/check.py +0 -0
  70. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/ctags.py +0 -0
  71. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/currency.py +0 -0
  72. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/impact.py +0 -0
  73. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/limits.py +0 -0
  74. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/livingdocs.py +0 -0
  75. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/mcp_server.py +0 -0
  76. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/mermaid.py +0 -0
  77. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/rag.py +0 -0
  78. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/review.py +0 -0
  79. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/scip.py +0 -0
  80. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/semantic.py +0 -0
  81. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/server.py +0 -0
  82. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/session.py +0 -0
  83. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/subsystems.py +0 -0
  84. {codmap-0.0.49 → codmap-0.0.50}/codemap/serve/vault.py +0 -0
  85. {codmap-0.0.49 → codmap-0.0.50}/codemap/store.py +0 -0
  86. {codmap-0.0.49 → codmap-0.0.50}/codemap/tomlio.py +0 -0
  87. {codmap-0.0.49 → codmap-0.0.50}/codemap/watch.py +0 -0
  88. {codmap-0.0.49 → codmap-0.0.50}/codmap.egg-info/dependency_links.txt +0 -0
  89. {codmap-0.0.49 → codmap-0.0.50}/codmap.egg-info/entry_points.txt +0 -0
  90. {codmap-0.0.49 → codmap-0.0.50}/codmap.egg-info/requires.txt +0 -0
  91. {codmap-0.0.49 → codmap-0.0.50}/codmap.egg-info/top_level.txt +0 -0
  92. {codmap-0.0.49 → codmap-0.0.50}/setup.cfg +0 -0
  93. {codmap-0.0.49 → codmap-0.0.50}/tests/test_epistemic.py +0 -0
  94. {codmap-0.0.49 → codmap-0.0.50}/tests/test_fast_field_and_usage.py +0 -0
  95. {codmap-0.0.49 → codmap-0.0.50}/tests/test_gitnexus_router.py +0 -0
  96. {codmap-0.0.49 → codmap-0.0.50}/tests/test_impact_depth.py +0 -0
  97. {codmap-0.0.49 → codmap-0.0.50}/tests/test_integrations.py +0 -0
  98. {codmap-0.0.49 → codmap-0.0.50}/tests/test_issue3_serve_freshness.py +0 -0
  99. {codmap-0.0.49 → codmap-0.0.50}/tests/test_livingdocs.py +0 -0
  100. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m0_api_surface.py +0 -0
  101. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m11_argcontract.py +0 -0
  102. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m12_dataflow.py +0 -0
  103. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m15_review.py +0 -0
  104. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m16_architecture.py +0 -0
  105. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m17_mcp.py +0 -0
  106. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m18_freshness.py +0 -0
  107. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m1_5_semantics.py +0 -0
  108. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m1_query.py +0 -0
  109. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m2_views.py +0 -0
  110. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m32_watch.py +0 -0
  111. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m3_serve.py +0 -0
  112. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m4_behavior.py +0 -0
  113. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m5_deep.py +0 -0
  114. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m6_repo_scope.py +0 -0
  115. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m7_dispatch.py +0 -0
  116. {codmap-0.0.49 → codmap-0.0.50}/tests/test_m9_family.py +0 -0
  117. {codmap-0.0.49 → codmap-0.0.50}/tests/test_mcp_surface_contract.py +0 -0
  118. {codmap-0.0.49 → codmap-0.0.50}/tests/test_pack_honesty.py +0 -0
  119. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c108_devkit.py +0 -0
  120. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c109_namespace_source.py +0 -0
  121. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c110_advise.py +0 -0
  122. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c111_recipe.py +0 -0
  123. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c114_devkit_graph.py +0 -0
  124. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c115_agents_block.py +0 -0
  125. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c116_known_cycles.py +0 -0
  126. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c118_dead_code.py +0 -0
  127. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c119_first_build.py +0 -0
  128. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c120_dispatch_absorbed.py +0 -0
  129. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c121_devkit_trust.py +0 -0
  130. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c122_serve_robust.py +0 -0
  131. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c124_atomic_writes.py +0 -0
  132. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c125_graph_trust.py +0 -0
  133. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c126_scope_roles.py +0 -0
  134. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c127_require_current.py +0 -0
  135. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c132_harness.py +0 -0
  136. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c133_pin_links.py +0 -0
  137. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c134_refresh_recipe.py +0 -0
  138. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c135_advise_generations.py +0 -0
  139. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c13_callgraph_accuracy.py +0 -0
  140. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c13_grep_vs_graph.py +0 -0
  141. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c16_semantic.py +0 -0
  142. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c20_attribute_edges.py +0 -0
  143. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c21_flat_layout.py +0 -0
  144. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c22_source_visible_refs.py +0 -0
  145. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c23_hard_python.py +0 -0
  146. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c24_test_mapping.py +0 -0
  147. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c25_provenance.py +0 -0
  148. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c26_deep_union.py +0 -0
  149. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c27_config_honesty.py +0 -0
  150. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c28_limit_envelope.py +0 -0
  151. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c29_lazy_imports.py +0 -0
  152. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c2_ctags.py +0 -0
  153. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c30_local_import_calls.py +0 -0
  154. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c30f1_reexport_calls.py +0 -0
  155. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c30f2_check_scope.py +0 -0
  156. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c31_path_origin.py +0 -0
  157. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c32_report_json.py +0 -0
  158. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c33_query_signature.py +0 -0
  159. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c34_signature_kinds.py +0 -0
  160. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c35_contract_location.py +0 -0
  161. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c36_target_resolution.py +0 -0
  162. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c37_rule_mutation.py +0 -0
  163. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c38_tool_drift.py +0 -0
  164. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c39_edge_resolution.py +0 -0
  165. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c3_arch_contract.py +0 -0
  166. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c3_dogfood.py +0 -0
  167. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c40_flow_reach.py +0 -0
  168. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c41_scope_membership.py +0 -0
  169. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c42_deep_tier_stability.py +0 -0
  170. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c43_incremental_splice.py +0 -0
  171. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c44_absent_answers.py +0 -0
  172. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c45_repeat_union.py +0 -0
  173. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c46_shadowed_definitions.py +0 -0
  174. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c47_incremental_resample.py +0 -0
  175. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c48_type_checking_imports.py +0 -0
  176. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c49_type_only_cycles.py +0 -0
  177. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c4_complexity.py +0 -0
  178. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c50_flow_entry_points.py +0 -0
  179. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c53_narrowing_declared.py +0 -0
  180. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c54_deterministic_rendering.py +0 -0
  181. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c55_override_grade.py +0 -0
  182. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c56_stub_files.py +0 -0
  183. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c57_facade_package.py +0 -0
  184. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c58_cycle_tangles.py +0 -0
  185. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c59_completeness_drop.py +0 -0
  186. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c5_apidiff.py +0 -0
  187. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c60_nested_definitions.py +0 -0
  188. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c62_phantom_rules.py +0 -0
  189. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c63_answer_format.py +0 -0
  190. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c64_dependency_probe.py +0 -0
  191. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c66_pack_direction.py +0 -0
  192. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c68_dotted_imports.py +0 -0
  193. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c69_contract_validation.py +0 -0
  194. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c6_pack.py +0 -0
  195. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c70_check_graph_currency.py +0 -0
  196. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c71_attribute_chain_calls.py +0 -0
  197. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c72_flat_inference_in_packages.py +0 -0
  198. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c73_cli_version.py +0 -0
  199. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c74_call_site_conservation.py +0 -0
  200. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c75_reexported_class_calls.py +0 -0
  201. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c76_contract_table_typo.py +0 -0
  202. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c77_gate_probe_battery.py +0 -0
  203. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c78_forbidden_chains.py +0 -0
  204. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c7_edge_vocab.py +0 -0
  205. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c80_tests_through_helpers.py +0 -0
  206. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c81_protocol_dispatch.py +0 -0
  207. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c82_review_changed_lines.py +0 -0
  208. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c83_foreign_graph_paths.py +0 -0
  209. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c84_missing_roots.py +0 -0
  210. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c85_mcp_graph_currency.py +0 -0
  211. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c86_incremental_repo_scope.py +0 -0
  212. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c87_review_path_base.py +0 -0
  213. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c89_review_docs.py +0 -0
  214. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c8_deadcode.py +0 -0
  215. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c90_currency_without_recipe.py +0 -0
  216. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c91_route_vocabulary.py +0 -0
  217. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c92_sidecar_pair.py +0 -0
  218. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c94_root_builds.py +0 -0
  219. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c95_r1c96_foreign_trees.py +0 -0
  220. {codmap-0.0.49 → codmap-0.0.50}/tests/test_r1c9_incremental.py +0 -0
  221. {codmap-0.0.49 → codmap-0.0.50}/tests/test_scip_export.py +0 -0
  222. {codmap-0.0.49 → codmap-0.0.50}/tests/test_scope.py +0 -0
  223. {codmap-0.0.49 → codmap-0.0.50}/tests/test_subsystems.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codmap
3
- Version: 0.0.49
3
+ Version: 0.0.50
4
4
  Summary: Static analyzer that turns a package's source into a queryable code graph.
5
5
  Author-email: kogriv <kogriv@gmail.com>
6
6
  License-Expression: MIT
@@ -54,7 +54,7 @@ without a release.
54
54
 
55
55
  [![CI](https://github.com/kogriv/codemap/actions/workflows/ci.yml/badge.svg)](https://github.com/kogriv/codemap/actions/workflows/ci.yml)
56
56
 
57
- **Status:** 🟢 M0–M20 implemented + research track (R1/R2) — schema 0.13, **1526 tests with no failures on
57
+ **Status:** 🟢 M0–M20 implemented + research track (R1/R2) — schema 0.13, **1527 tests with no failures on
58
58
  Python 3.11–3.14** ([in CI](docs/ci.md): the full suite including the dogfood pass, a determinism check, a
59
59
  wheel smoke test, and ctags/SCIP interop against the real CLIs), warm serve surface with 32 ops (29 exposed
60
60
  as MCP tools), and SCIP export. See **[DESIGN.md](DESIGN.md)** (product design &
@@ -18,7 +18,7 @@ without a release.
18
18
 
19
19
  [![CI](https://github.com/kogriv/codemap/actions/workflows/ci.yml/badge.svg)](https://github.com/kogriv/codemap/actions/workflows/ci.yml)
20
20
 
21
- **Status:** 🟢 M0–M20 implemented + research track (R1/R2) — schema 0.13, **1526 tests with no failures on
21
+ **Status:** 🟢 M0–M20 implemented + research track (R1/R2) — schema 0.13, **1527 tests with no failures on
22
22
  Python 3.11–3.14** ([in CI](docs/ci.md): the full suite including the dogfood pass, a determinism check, a
23
23
  wheel smoke test, and ctags/SCIP interop against the real CLIs), warm serve surface with 32 ops (29 exposed
24
24
  as MCP tools), and SCIP export. See **[DESIGN.md](DESIGN.md)** (product design &
@@ -137,16 +137,16 @@ def _pagerank(g: "nx.DiGraph", personalization: dict[str, float] | None,
137
137
  p = {v: personalization.get(v, 0.0) / s for v in nodes}
138
138
  else:
139
139
  p = {v: 1.0 / n for v in nodes}
140
- outdeg = {v: g.out_degree(v) for v in nodes}
141
- dangling = [v for v in nodes if outdeg[v] == 0]
140
+ traversal = [(v, g.out_degree(v), sorted(g.successors(v))) for v in nodes]
141
+ dangling = [v for v, degree, _ in traversal if degree == 0]
142
142
  x = dict(p)
143
143
  for _ in range(max_iter):
144
144
  xlast = x
145
145
  x = {v: 0.0 for v in nodes}
146
146
  danglesum = alpha * sum(xlast[v] for v in dangling)
147
- for v in nodes:
148
- share = alpha * xlast[v] / outdeg[v] if outdeg[v] else 0.0
149
- for w in sorted(g.successors(v)):
147
+ for v, degree, successors in traversal:
148
+ share = alpha * xlast[v] / degree if degree else 0.0
149
+ for w in successors:
150
150
  x[w] += share
151
151
  for v in nodes:
152
152
  x[v] += danglesum * p[v] + (1.0 - alpha) * p[v]
@@ -1188,8 +1188,10 @@ class Query:
1188
1188
  it did match. Before this, all three shapes fell through to the global rank
1189
1189
  under a header naming the seed.
1190
1190
  """
1191
+ return self._seed_resolution_on(self._rank_graph(root=root), seeds)
1192
+
1193
+ def _seed_resolution_on(self, g: "nx.DiGraph", seeds) -> dict:
1191
1194
  from collections import Counter
1192
- g = self._rank_graph(root=root)
1193
1195
  per, unresolved, ids = [], [], set()
1194
1196
  for s in seeds:
1195
1197
  via, matched = self._expand_seed(s)
@@ -1216,7 +1218,10 @@ class Query:
1216
1218
  round to zero.
1217
1219
  """
1218
1220
  _check_direction(direction)
1219
- g = self._rank_graph(root=root)
1221
+ return self._reachable_on(self._rank_graph(root=root), ids, direction)
1222
+
1223
+ @staticmethod
1224
+ def _reachable_on(g: "nx.DiGraph", ids, direction: str) -> set[str]:
1220
1225
  seeds = [i for i in ids if i in g]
1221
1226
  out = set(seeds)
1222
1227
  for i in seeds:
@@ -1246,14 +1251,17 @@ class Query:
1246
1251
  g = self._rank_graph(edge_types, root)
1247
1252
  if g.number_of_nodes() == 0:
1248
1253
  return {}
1254
+ seed_ids = {s for s in self._expand_seeds(seeds) if s in g} if seeds else set()
1255
+ return self._rank_on(g, seed_ids, direction)
1256
+
1257
+ @staticmethod
1258
+ def _rank_on(g: "nx.DiGraph", seed_ids: set[str], direction: str) -> dict[str, float]:
1249
1259
  personalization = None
1250
- if seeds:
1251
- seed_ids = {s for s in self._expand_seeds(seeds) if s in g}
1252
- if seed_ids: # restart biased to seeds (normalized inside _pagerank)
1253
- personalization = {n: (1.0 if n in seed_ids else 0.0) for n in g}
1254
- if direction == "both":
1255
- g = nx.DiGraph(g)
1256
- g.add_edges_from([(b, a) for a, b in g.edges])
1260
+ if seed_ids: # restart biased to seeds (normalized inside _pagerank)
1261
+ personalization = {n: (1.0 if n in seed_ids else 0.0) for n in g}
1262
+ if direction == "both":
1263
+ g = nx.DiGraph(g)
1264
+ g.add_edges_from([(b, a) for a, b in g.edges])
1257
1265
  pr = _pagerank(g, personalization)
1258
1266
  return {n: round(v, 8) for n, v in pr.items()}
1259
1267
 
@@ -109,7 +109,9 @@ def build_pack(query: Query, *, budget: int, seeds=(), root: str | None = None,
109
109
  seed_block = None
110
110
  reach = None
111
111
  if seeds:
112
- res = query.seed_resolution(seeds, root=root)
112
+ # Share the directed projection for this pack invocation.
113
+ projection = query._rank_graph(root=root)
114
+ res = query._seed_resolution_on(projection, seeds)
113
115
  seed_block = {"requested": res["seeds"], "unresolved": res["unresolved"]}
114
116
  if not res["ids"]:
115
117
  return {
@@ -121,8 +123,11 @@ def build_pack(query: Query, *, budget: int, seeds=(), root: str | None = None,
121
123
  "seeds": seed_block,
122
124
  "coverage": coverage,
123
125
  }
124
- reach = query.reachable_from(res["ids"], root=root, direction=direction)
125
- ranked = query.rank(seeds=seeds, root=root, direction=direction or "uses")
126
+ seed_ids = set(res["ids"])
127
+ reach = query._reachable_on(projection, seed_ids, direction)
128
+ ranked = query._rank_on(projection, seed_ids, direction)
129
+ else:
130
+ ranked = query.rank(root=root)
126
131
  order = sorted(ranked, key=lambda n: (-ranked[n], n)) # rank desc, id tiebreak
127
132
  unreachable = None
128
133
  if reach is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codmap
3
- Version: 0.0.49
3
+ Version: 0.0.50
4
4
  Summary: Static analyzer that turns a package's source into a queryable code graph.
5
5
  Author-email: kogriv <kogriv@gmail.com>
6
6
  License-Expression: MIT
@@ -54,7 +54,7 @@ without a release.
54
54
 
55
55
  [![CI](https://github.com/kogriv/codemap/actions/workflows/ci.yml/badge.svg)](https://github.com/kogriv/codemap/actions/workflows/ci.yml)
56
56
 
57
- **Status:** 🟢 M0–M20 implemented + research track (R1/R2) — schema 0.13, **1526 tests with no failures on
57
+ **Status:** 🟢 M0–M20 implemented + research track (R1/R2) — schema 0.13, **1527 tests with no failures on
58
58
  Python 3.11–3.14** ([in CI](docs/ci.md): the full suite including the dogfood pass, a determinism check, a
59
59
  wheel smoke test, and ctags/SCIP interop against the real CLIs), warm serve surface with 32 ops (29 exposed
60
60
  as MCP tools), and SCIP export. See **[DESIGN.md](DESIGN.md)** (product design &
@@ -135,6 +135,7 @@ tests/test_r1c134_refresh_recipe.py
135
135
  tests/test_r1c135_advise_generations.py
136
136
  tests/test_r1c13_callgraph_accuracy.py
137
137
  tests/test_r1c13_grep_vs_graph.py
138
+ tests/test_r1c151_pack_projection.py
138
139
  tests/test_r1c16_semantic.py
139
140
  tests/test_r1c20_attribute_edges.py
140
141
  tests/test_r1c21_flat_layout.py
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
9
9
  # version. README says this plainly, since `pip install codmap` / `import codemap` is a
10
10
  # seam a reader will otherwise hit by surprise.
11
11
  name = "codmap"
12
- version = "0.0.49"
12
+ version = "0.0.50"
13
13
  description = "Static analyzer that turns a package's source into a queryable code graph."
14
14
  readme = "README.md"
15
15
  # M20/D1: measured, not assumed. Each release of the declared range runs the full suite in
@@ -0,0 +1,31 @@
1
+ from codemap.model import Edge, Graph, Node
2
+ from codemap.query import Query
3
+ from codemap.serve.pack import build_pack
4
+
5
+
6
+ def test_seeded_pack_builds_one_directed_projection_per_request(monkeypatch):
7
+ graph = Graph(target="pkg")
8
+ for nid in ("pkg.seed", "pkg.dep", "pkg.sibling"):
9
+ graph.add_node(Node(id=nid, kind="function", file="pkg/mod.py"))
10
+ graph.add_edge(Edge("calls", "pkg.seed", "pkg.dep"))
11
+ graph.add_edge(Edge("calls", "pkg.sibling", "pkg.dep"))
12
+ query = Query(graph)
13
+ build_projection = query._rank_graph
14
+ projections = []
15
+
16
+ def record_projection(*args, **kwargs):
17
+ projection = build_projection(*args, **kwargs)
18
+ projections.append(projection)
19
+ return projection
20
+
21
+ monkeypatch.setattr(query, "_rank_graph", record_projection)
22
+ for request_count, direction in enumerate(("both", "uses"), start=1):
23
+ pack = build_pack(query, budget=1000, seeds=("seed",), direction=direction)
24
+ assert len(projections) == request_count
25
+ assert {item["id"] for item in pack["items"]} == {"pkg.seed", "pkg.dep"}
26
+ assert set(projections[-1].edges) == {
27
+ ("pkg.seed", "pkg.dep"), ("pkg.sibling", "pkg.dep"),
28
+ }
29
+
30
+ first, second = projections
31
+ assert first is not second
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes