desloppify-community 1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1072) hide show
  1. desloppify/__init__.py +3 -0
  2. desloppify/__main__.py +5 -0
  3. desloppify/app/__init__.py +1 -0
  4. desloppify/app/cli_support/__init__.py +2 -0
  5. desloppify/app/cli_support/parser.py +156 -0
  6. desloppify/app/cli_support/parser_groups.py +359 -0
  7. desloppify/app/cli_support/parser_groups_admin.py +213 -0
  8. desloppify/app/cli_support/parser_groups_admin_review.py +40 -0
  9. desloppify/app/cli_support/parser_groups_admin_review_options_batch.py +128 -0
  10. desloppify/app/cli_support/parser_groups_admin_review_options_core.py +74 -0
  11. desloppify/app/cli_support/parser_groups_admin_review_options_external.py +46 -0
  12. desloppify/app/cli_support/parser_groups_admin_review_options_trust_post.py +54 -0
  13. desloppify/app/cli_support/parser_groups_plan_impl.py +99 -0
  14. desloppify/app/cli_support/parser_groups_plan_impl_sections_annotations.py +140 -0
  15. desloppify/app/cli_support/parser_groups_plan_impl_sections_cluster.py +126 -0
  16. desloppify/app/cli_support/parser_groups_plan_impl_sections_queue_reorder.py +79 -0
  17. desloppify/app/cli_support/parser_groups_plan_impl_sections_triage_commit_scan.py +202 -0
  18. desloppify/app/commands/__init__.py +1 -0
  19. desloppify/app/commands/autofix/__init__.py +14 -0
  20. desloppify/app/commands/autofix/apply_flow.py +191 -0
  21. desloppify/app/commands/autofix/apply_retro.py +169 -0
  22. desloppify/app/commands/autofix/cmd.py +61 -0
  23. desloppify/app/commands/autofix/fixer_selection.py +41 -0
  24. desloppify/app/commands/autofix/preview.py +48 -0
  25. desloppify/app/commands/backlog/__init__.py +14 -0
  26. desloppify/app/commands/backlog/cmd.py +49 -0
  27. desloppify/app/commands/config.py +90 -0
  28. desloppify/app/commands/detect.py +124 -0
  29. desloppify/app/commands/dev.py +221 -0
  30. desloppify/app/commands/dev_scaffold_templates.py +290 -0
  31. desloppify/app/commands/directives.py +169 -0
  32. desloppify/app/commands/exclude.py +115 -0
  33. desloppify/app/commands/helpers/__init__.py +1 -0
  34. desloppify/app/commands/helpers/attestation.py +113 -0
  35. desloppify/app/commands/helpers/by_language.py +74 -0
  36. desloppify/app/commands/helpers/command_runtime.py +40 -0
  37. desloppify/app/commands/helpers/display.py +5 -0
  38. desloppify/app/commands/helpers/dynamic_loaders.py +52 -0
  39. desloppify/app/commands/helpers/guardrails.py +203 -0
  40. desloppify/app/commands/helpers/issue_id_display.py +15 -0
  41. desloppify/app/commands/helpers/lang.py +142 -0
  42. desloppify/app/commands/helpers/query.py +103 -0
  43. desloppify/app/commands/helpers/queue_progress.py +369 -0
  44. desloppify/app/commands/helpers/queue_progress_render.py +110 -0
  45. desloppify/app/commands/helpers/rendering.py +117 -0
  46. desloppify/app/commands/helpers/runtime_options.py +68 -0
  47. desloppify/app/commands/helpers/score_update.py +78 -0
  48. desloppify/app/commands/helpers/state.py +77 -0
  49. desloppify/app/commands/helpers/state_persistence.py +28 -0
  50. desloppify/app/commands/helpers/subjective.py +61 -0
  51. desloppify/app/commands/helpers/transition_messages.py +189 -0
  52. desloppify/app/commands/langs/__init__.py +7 -0
  53. desloppify/app/commands/langs/cmd.py +79 -0
  54. desloppify/app/commands/move/__init__.py +14 -0
  55. desloppify/app/commands/move/apply.py +125 -0
  56. desloppify/app/commands/move/cmd.py +82 -0
  57. desloppify/app/commands/move/directory.py +92 -0
  58. desloppify/app/commands/move/language.py +102 -0
  59. desloppify/app/commands/move/planning.py +179 -0
  60. desloppify/app/commands/move/reporting.py +116 -0
  61. desloppify/app/commands/next/__init__.py +14 -0
  62. desloppify/app/commands/next/cmd.py +67 -0
  63. desloppify/app/commands/next/flow_helpers.py +61 -0
  64. desloppify/app/commands/next/options.py +39 -0
  65. desloppify/app/commands/next/output.py +262 -0
  66. desloppify/app/commands/next/queue_flow.py +558 -0
  67. desloppify/app/commands/next/render.py +381 -0
  68. desloppify/app/commands/next/render_nudges.py +294 -0
  69. desloppify/app/commands/next/render_scoring.py +218 -0
  70. desloppify/app/commands/next/render_support.py +313 -0
  71. desloppify/app/commands/next/render_workflow.py +162 -0
  72. desloppify/app/commands/next/subjective.py +41 -0
  73. desloppify/app/commands/plan/__init__.py +21 -0
  74. desloppify/app/commands/plan/cluster/__init__.py +5 -0
  75. desloppify/app/commands/plan/cluster/dispatch.py +256 -0
  76. desloppify/app/commands/plan/cluster/ops_display.py +335 -0
  77. desloppify/app/commands/plan/cluster/ops_manage.py +283 -0
  78. desloppify/app/commands/plan/cluster/ops_reorder.py +264 -0
  79. desloppify/app/commands/plan/cluster/steps.py +44 -0
  80. desloppify/app/commands/plan/cluster/update.py +55 -0
  81. desloppify/app/commands/plan/cluster/update_flow.py +458 -0
  82. desloppify/app/commands/plan/cmd.py +247 -0
  83. desloppify/app/commands/plan/commit_log/__init__.py +5 -0
  84. desloppify/app/commands/plan/commit_log/dispatch.py +246 -0
  85. desloppify/app/commands/plan/override/__init__.py +29 -0
  86. desloppify/app/commands/plan/override/io.py +107 -0
  87. desloppify/app/commands/plan/override/misc.py +271 -0
  88. desloppify/app/commands/plan/override/resolve_cmd.py +115 -0
  89. desloppify/app/commands/plan/override/resolve_helpers.py +121 -0
  90. desloppify/app/commands/plan/override/resolve_workflow.py +491 -0
  91. desloppify/app/commands/plan/override/skip.py +458 -0
  92. desloppify/app/commands/plan/policy_cmd.py +88 -0
  93. desloppify/app/commands/plan/queue_render.py +293 -0
  94. desloppify/app/commands/plan/reorder_handlers.py +136 -0
  95. desloppify/app/commands/plan/repair_state.py +79 -0
  96. desloppify/app/commands/plan/shared/__init__.py +6 -0
  97. desloppify/app/commands/plan/shared/cluster_membership.py +7 -0
  98. desloppify/app/commands/plan/shared/patterns.py +139 -0
  99. desloppify/app/commands/plan/triage/__init__.py +18 -0
  100. desloppify/app/commands/plan/triage/command.py +24 -0
  101. desloppify/app/commands/plan/triage/completion_flow.py +276 -0
  102. desloppify/app/commands/plan/triage/confirmations/__init__.py +8 -0
  103. desloppify/app/commands/plan/triage/confirmations/basic.py +362 -0
  104. desloppify/app/commands/plan/triage/confirmations/enrich.py +270 -0
  105. desloppify/app/commands/plan/triage/confirmations/organize.py +198 -0
  106. desloppify/app/commands/plan/triage/confirmations/router.py +45 -0
  107. desloppify/app/commands/plan/triage/confirmations/shared.py +110 -0
  108. desloppify/app/commands/plan/triage/confirmations/strategize.py +112 -0
  109. desloppify/app/commands/plan/triage/display/__init__.py +33 -0
  110. desloppify/app/commands/plan/triage/display/dashboard.py +325 -0
  111. desloppify/app/commands/plan/triage/display/layout.py +351 -0
  112. desloppify/app/commands/plan/triage/display/primitives.py +61 -0
  113. desloppify/app/commands/plan/triage/display/progress.py +81 -0
  114. desloppify/app/commands/plan/triage/helpers.py +39 -0
  115. desloppify/app/commands/plan/triage/lifecycle.py +147 -0
  116. desloppify/app/commands/plan/triage/observe_batches.py +116 -0
  117. desloppify/app/commands/plan/triage/plan_state_access.py +83 -0
  118. desloppify/app/commands/plan/triage/review_coverage.py +128 -0
  119. desloppify/app/commands/plan/triage/runner/__init__.py +1 -0
  120. desloppify/app/commands/plan/triage/runner/codex_runner.py +104 -0
  121. desloppify/app/commands/plan/triage/runner/orchestrator_claude.py +75 -0
  122. desloppify/app/commands/plan/triage/runner/orchestrator_codex_observe.py +169 -0
  123. desloppify/app/commands/plan/triage/runner/orchestrator_codex_parallel.py +65 -0
  124. desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline.py +457 -0
  125. desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline_completion.py +187 -0
  126. desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline_context.py +73 -0
  127. desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline_execution.py +768 -0
  128. desloppify/app/commands/plan/triage/runner/orchestrator_codex_sense.py +447 -0
  129. desloppify/app/commands/plan/triage/runner/orchestrator_common.py +29 -0
  130. desloppify/app/commands/plan/triage/runner/rovodev_pipeline.py +48 -0
  131. desloppify/app/commands/plan/triage/runner/rovodev_runner.py +80 -0
  132. desloppify/app/commands/plan/triage/runner/stage_prompts.py +542 -0
  133. desloppify/app/commands/plan/triage/runner/stage_prompts_instruction_blocks.py +585 -0
  134. desloppify/app/commands/plan/triage/runner/stage_prompts_instruction_shared.py +227 -0
  135. desloppify/app/commands/plan/triage/runner/stage_prompts_observe.py +103 -0
  136. desloppify/app/commands/plan/triage/runner/stage_prompts_sense.py +443 -0
  137. desloppify/app/commands/plan/triage/runner/stage_prompts_strategist.py +98 -0
  138. desloppify/app/commands/plan/triage/runner/stage_prompts_validation.py +86 -0
  139. desloppify/app/commands/plan/triage/runner/stage_runner_override.py +59 -0
  140. desloppify/app/commands/plan/triage/runner/stage_validation.py +437 -0
  141. desloppify/app/commands/plan/triage/services.py +85 -0
  142. desloppify/app/commands/plan/triage/stage_queue.py +97 -0
  143. desloppify/app/commands/plan/triage/stages/__init__.py +55 -0
  144. desloppify/app/commands/plan/triage/stages/commands.py +48 -0
  145. desloppify/app/commands/plan/triage/stages/completion.py +368 -0
  146. desloppify/app/commands/plan/triage/stages/enrich.py +349 -0
  147. desloppify/app/commands/plan/triage/stages/evidence_parsing.py +616 -0
  148. desloppify/app/commands/plan/triage/stages/flow_helpers.py +23 -0
  149. desloppify/app/commands/plan/triage/stages/helpers.py +194 -0
  150. desloppify/app/commands/plan/triage/stages/observe.py +208 -0
  151. desloppify/app/commands/plan/triage/stages/organize.py +284 -0
  152. desloppify/app/commands/plan/triage/stages/records.py +273 -0
  153. desloppify/app/commands/plan/triage/stages/reflect.py +326 -0
  154. desloppify/app/commands/plan/triage/stages/rendering.py +71 -0
  155. desloppify/app/commands/plan/triage/stages/sense_check.py +257 -0
  156. desloppify/app/commands/plan/triage/stages/strategize.py +307 -0
  157. desloppify/app/commands/plan/triage/validation/__init__.py +8 -0
  158. desloppify/app/commands/plan/triage/validation/completion_policy.py +330 -0
  159. desloppify/app/commands/plan/triage/validation/completion_stages.py +208 -0
  160. desloppify/app/commands/plan/triage/validation/core.py +225 -0
  161. desloppify/app/commands/plan/triage/validation/enrich_checks.py +267 -0
  162. desloppify/app/commands/plan/triage/validation/enrich_quality.py +219 -0
  163. desloppify/app/commands/plan/triage/validation/organize_policy.py +328 -0
  164. desloppify/app/commands/plan/triage/validation/reflect_accounting.py +504 -0
  165. desloppify/app/commands/plan/triage/validation/stage_policy.py +222 -0
  166. desloppify/app/commands/plan/triage/workflow.py +213 -0
  167. desloppify/app/commands/registry.py +66 -0
  168. desloppify/app/commands/resolve/__init__.py +1 -0
  169. desloppify/app/commands/resolve/apply.py +95 -0
  170. desloppify/app/commands/resolve/cmd.py +196 -0
  171. desloppify/app/commands/resolve/living_plan.py +210 -0
  172. desloppify/app/commands/resolve/messages.py +115 -0
  173. desloppify/app/commands/resolve/plan_load.py +121 -0
  174. desloppify/app/commands/resolve/queue_guard.py +191 -0
  175. desloppify/app/commands/resolve/render.py +260 -0
  176. desloppify/app/commands/resolve/render_support.py +77 -0
  177. desloppify/app/commands/resolve/selection.py +119 -0
  178. desloppify/app/commands/review/__init__.py +14 -0
  179. desloppify/app/commands/review/assessment_integrity.py +63 -0
  180. desloppify/app/commands/review/batch/__init__.py +1 -0
  181. desloppify/app/commands/review/batch/core_merge_support.py +241 -0
  182. desloppify/app/commands/review/batch/core_models.py +123 -0
  183. desloppify/app/commands/review/batch/core_normalize.py +699 -0
  184. desloppify/app/commands/review/batch/core_parse.py +59 -0
  185. desloppify/app/commands/review/batch/execution.py +75 -0
  186. desloppify/app/commands/review/batch/execution_dry_run.py +82 -0
  187. desloppify/app/commands/review/batch/execution_phases.py +632 -0
  188. desloppify/app/commands/review/batch/execution_progress.py +262 -0
  189. desloppify/app/commands/review/batch/execution_results.py +278 -0
  190. desloppify/app/commands/review/batch/execution_summary.py +59 -0
  191. desloppify/app/commands/review/batch/merge.py +258 -0
  192. desloppify/app/commands/review/batch/orchestrator.py +617 -0
  193. desloppify/app/commands/review/batch/prompt_template.py +172 -0
  194. desloppify/app/commands/review/batch/scope.py +288 -0
  195. desloppify/app/commands/review/batch/scoring.py +109 -0
  196. desloppify/app/commands/review/batches_runtime.py +262 -0
  197. desloppify/app/commands/review/cmd.py +245 -0
  198. desloppify/app/commands/review/coordinator.py +202 -0
  199. desloppify/app/commands/review/external.py +600 -0
  200. desloppify/app/commands/review/helpers.py +11 -0
  201. desloppify/app/commands/review/importing/__init__.py +1 -0
  202. desloppify/app/commands/review/importing/cmd.py +435 -0
  203. desloppify/app/commands/review/importing/flags.py +149 -0
  204. desloppify/app/commands/review/importing/helpers.py +64 -0
  205. desloppify/app/commands/review/importing/output.py +359 -0
  206. desloppify/app/commands/review/importing/parse.py +467 -0
  207. desloppify/app/commands/review/importing/plan_sync.py +569 -0
  208. desloppify/app/commands/review/importing/policy.py +341 -0
  209. desloppify/app/commands/review/importing/results.py +102 -0
  210. desloppify/app/commands/review/merge.py +299 -0
  211. desloppify/app/commands/review/packet/__init__.py +5 -0
  212. desloppify/app/commands/review/packet/build.py +285 -0
  213. desloppify/app/commands/review/packet/policy.py +28 -0
  214. desloppify/app/commands/review/preflight.py +277 -0
  215. desloppify/app/commands/review/prepare.py +141 -0
  216. desloppify/app/commands/review/prompt_sections.py +643 -0
  217. desloppify/app/commands/review/runner_failures.py +383 -0
  218. desloppify/app/commands/review/runner_opencode.py +237 -0
  219. desloppify/app/commands/review/runner_packets.py +197 -0
  220. desloppify/app/commands/review/runner_parallel/__init__.py +173 -0
  221. desloppify/app/commands/review/runner_parallel/execution.py +345 -0
  222. desloppify/app/commands/review/runner_parallel/progress.py +158 -0
  223. desloppify/app/commands/review/runner_parallel/serial.py +73 -0
  224. desloppify/app/commands/review/runner_parallel/types.py +72 -0
  225. desloppify/app/commands/review/runner_process_impl/__init__.py +1 -0
  226. desloppify/app/commands/review/runner_process_impl/attempt_success.py +153 -0
  227. desloppify/app/commands/review/runner_process_impl/attempts.py +535 -0
  228. desloppify/app/commands/review/runner_process_impl/io.py +309 -0
  229. desloppify/app/commands/review/runner_process_impl/types.py +96 -0
  230. desloppify/app/commands/review/runner_rovodev.py +337 -0
  231. desloppify/app/commands/review/runtime/__init__.py +0 -0
  232. desloppify/app/commands/review/runtime/policy.py +88 -0
  233. desloppify/app/commands/review/runtime/setup.py +67 -0
  234. desloppify/app/commands/review/runtime_paths.py +86 -0
  235. desloppify/app/commands/review/state_payloads.py +69 -0
  236. desloppify/app/commands/runner/__init__.py +3 -0
  237. desloppify/app/commands/runner/codex_batch.py +275 -0
  238. desloppify/app/commands/runner/run_logs.py +24 -0
  239. desloppify/app/commands/scan/__init__.py +14 -0
  240. desloppify/app/commands/scan/artifacts.py +210 -0
  241. desloppify/app/commands/scan/cmd.py +228 -0
  242. desloppify/app/commands/scan/contracts.py +53 -0
  243. desloppify/app/commands/scan/coverage.py +162 -0
  244. desloppify/app/commands/scan/helpers.py +202 -0
  245. desloppify/app/commands/scan/orchestrator.py +75 -0
  246. desloppify/app/commands/scan/plan_nudge.py +46 -0
  247. desloppify/app/commands/scan/plan_reconcile.py +495 -0
  248. desloppify/app/commands/scan/preflight.py +164 -0
  249. desloppify/app/commands/scan/reporting/__init__.py +11 -0
  250. desloppify/app/commands/scan/reporting/agent_context.py +384 -0
  251. desloppify/app/commands/scan/reporting/dimensions.py +238 -0
  252. desloppify/app/commands/scan/reporting/integrity_report.py +313 -0
  253. desloppify/app/commands/scan/reporting/presentation.py +418 -0
  254. desloppify/app/commands/scan/reporting/subjective.py +540 -0
  255. desloppify/app/commands/scan/reporting/summary.py +373 -0
  256. desloppify/app/commands/scan/reporting/text.py +62 -0
  257. desloppify/app/commands/scan/wontfix.py +203 -0
  258. desloppify/app/commands/scan/workflow.py +558 -0
  259. desloppify/app/commands/setup/__init__.py +7 -0
  260. desloppify/app/commands/setup/cmd.py +157 -0
  261. desloppify/app/commands/show/__init__.py +14 -0
  262. desloppify/app/commands/show/cmd.py +223 -0
  263. desloppify/app/commands/show/concerns_view.py +34 -0
  264. desloppify/app/commands/show/dimension_views.py +176 -0
  265. desloppify/app/commands/show/formatting.py +85 -0
  266. desloppify/app/commands/show/payload.py +72 -0
  267. desloppify/app/commands/show/render.py +292 -0
  268. desloppify/app/commands/show/scope.py +296 -0
  269. desloppify/app/commands/status/__init__.py +14 -0
  270. desloppify/app/commands/status/cmd.py +147 -0
  271. desloppify/app/commands/status/flow.py +262 -0
  272. desloppify/app/commands/status/render.py +367 -0
  273. desloppify/app/commands/status/render_dimensions.py +149 -0
  274. desloppify/app/commands/status/render_io.py +189 -0
  275. desloppify/app/commands/status/render_structural.py +91 -0
  276. desloppify/app/commands/status/sparkline.py +95 -0
  277. desloppify/app/commands/status/strict_target.py +52 -0
  278. desloppify/app/commands/status/summary.py +139 -0
  279. desloppify/app/commands/suppress.py +119 -0
  280. desloppify/app/commands/update_skill/__init__.py +82 -0
  281. desloppify/app/commands/update_skill/cmd.py +260 -0
  282. desloppify/app/commands/viz.py +61 -0
  283. desloppify/app/commands/zone.py +154 -0
  284. desloppify/app/output/__init__.py +1 -0
  285. desloppify/app/output/_viz_cmd_context.py +33 -0
  286. desloppify/app/output/_viz_template.html +274 -0
  287. desloppify/app/output/scorecard.py +200 -0
  288. desloppify/app/output/scorecard_parts/__init__.py +1 -0
  289. desloppify/app/output/scorecard_parts/draw.py +127 -0
  290. desloppify/app/output/scorecard_parts/left_panel.py +221 -0
  291. desloppify/app/output/scorecard_parts/left_panel_primitives.py +135 -0
  292. desloppify/app/output/scorecard_parts/meta.py +94 -0
  293. desloppify/app/output/scorecard_parts/ornaments.py +57 -0
  294. desloppify/app/output/scorecard_parts/theme.py +152 -0
  295. desloppify/app/output/tree_text.py +131 -0
  296. desloppify/app/output/visualize.py +166 -0
  297. desloppify/app/output/visualize_data.py +220 -0
  298. desloppify/app/skill_docs.py +196 -0
  299. desloppify/base/__init__.py +7 -0
  300. desloppify/base/coercions.py +82 -0
  301. desloppify/base/config/__init__.py +338 -0
  302. desloppify/base/config/migration.py +118 -0
  303. desloppify/base/config/schema.py +193 -0
  304. desloppify/base/discovery/__init__.py +1 -0
  305. desloppify/base/discovery/file_paths.py +130 -0
  306. desloppify/base/discovery/paths.py +160 -0
  307. desloppify/base/discovery/source.py +339 -0
  308. desloppify/base/enums.py +90 -0
  309. desloppify/base/exception_sets.py +48 -0
  310. desloppify/base/git_context.py +90 -0
  311. desloppify/base/optional_deps.py +22 -0
  312. desloppify/base/output/__init__.py +1 -0
  313. desloppify/base/output/contract.py +18 -0
  314. desloppify/base/output/fallbacks.py +60 -0
  315. desloppify/base/output/issues.py +214 -0
  316. desloppify/base/output/terminal.py +105 -0
  317. desloppify/base/output/user_message.py +28 -0
  318. desloppify/base/registry/__init__.py +208 -0
  319. desloppify/base/registry/catalog_entries.py +511 -0
  320. desloppify/base/registry/catalog_models.py +74 -0
  321. desloppify/base/runtime_state.py +153 -0
  322. desloppify/base/scoring_constants.py +18 -0
  323. desloppify/base/search/__init__.py +2 -0
  324. desloppify/base/search/grep.py +133 -0
  325. desloppify/base/search/query.py +268 -0
  326. desloppify/base/search/query_paths.py +25 -0
  327. desloppify/base/signal_patterns.py +48 -0
  328. desloppify/base/subjective_dimension_catalog.py +85 -0
  329. desloppify/base/subjective_dimensions.py +214 -0
  330. desloppify/base/subjective_dimensions_constants.py +96 -0
  331. desloppify/base/subjective_dimensions_merge.py +114 -0
  332. desloppify/base/subjective_dimensions_providers.py +73 -0
  333. desloppify/base/text/__init__.py +2 -0
  334. desloppify/base/text_utils.py +125 -0
  335. desloppify/base/tooling.py +89 -0
  336. desloppify/cli.py +294 -0
  337. desloppify/conftest.py +20 -0
  338. desloppify/data/__init__.py +0 -0
  339. desloppify/data/global/AMP.md +6 -0
  340. desloppify/data/global/CLAUDE.md +41 -0
  341. desloppify/data/global/CODEX.md +30 -0
  342. desloppify/data/global/COPILOT.md +32 -0
  343. desloppify/data/global/CURSOR.md +27 -0
  344. desloppify/data/global/DROID.md +39 -0
  345. desloppify/data/global/GEMINI.md +46 -0
  346. desloppify/data/global/HERMES.md +65 -0
  347. desloppify/data/global/OPENCODE.md +35 -0
  348. desloppify/data/global/QWEN.md +20 -0
  349. desloppify/data/global/ROVODEV.md +147 -0
  350. desloppify/data/global/SKILL.md +298 -0
  351. desloppify/data/global/WINDSURF.md +22 -0
  352. desloppify/data/global/__init__.py +0 -0
  353. desloppify/data/global/scoring.md +101 -0
  354. desloppify/engine/__init__.py +1 -0
  355. desloppify/engine/_concerns/constants.py +25 -0
  356. desloppify/engine/_concerns/generators.py +242 -0
  357. desloppify/engine/_concerns/signals.py +96 -0
  358. desloppify/engine/_concerns/state.py +30 -0
  359. desloppify/engine/_concerns/text.py +203 -0
  360. desloppify/engine/_concerns/types.py +41 -0
  361. desloppify/engine/_concerns/utils.py +36 -0
  362. desloppify/engine/_plan/__init__.py +21 -0
  363. desloppify/engine/_plan/annotations.py +53 -0
  364. desloppify/engine/_plan/auto_cluster.py +255 -0
  365. desloppify/engine/_plan/auto_cluster_sync.py +251 -0
  366. desloppify/engine/_plan/auto_cluster_sync_issue.py +268 -0
  367. desloppify/engine/_plan/cluster_membership.py +30 -0
  368. desloppify/engine/_plan/cluster_semantics.py +206 -0
  369. desloppify/engine/_plan/cluster_strategy.py +141 -0
  370. desloppify/engine/_plan/commit_tracking.py +274 -0
  371. desloppify/engine/_plan/constants.py +213 -0
  372. desloppify/engine/_plan/operations/cluster.py +264 -0
  373. desloppify/engine/_plan/operations/lifecycle.py +110 -0
  374. desloppify/engine/_plan/operations/meta.py +123 -0
  375. desloppify/engine/_plan/operations/queue.py +138 -0
  376. desloppify/engine/_plan/operations/skip.py +187 -0
  377. desloppify/engine/_plan/persistence.py +225 -0
  378. desloppify/engine/_plan/policy/__init__.py +5 -0
  379. desloppify/engine/_plan/policy/execution_constraints.py +26 -0
  380. desloppify/engine/_plan/policy/project.py +114 -0
  381. desloppify/engine/_plan/policy/stale.py +222 -0
  382. desloppify/engine/_plan/policy/subjective.py +151 -0
  383. desloppify/engine/_plan/promoted_ids.py +53 -0
  384. desloppify/engine/_plan/refresh_lifecycle.py +337 -0
  385. desloppify/engine/_plan/scan_issue_reconcile.py +459 -0
  386. desloppify/engine/_plan/schema/__init__.py +417 -0
  387. desloppify/engine/_plan/schema/helpers.py +89 -0
  388. desloppify/engine/_plan/schema/migrations.py +28 -0
  389. desloppify/engine/_plan/schema/normalize.py +271 -0
  390. desloppify/engine/_plan/schema/version_upgrades.py +239 -0
  391. desloppify/engine/_plan/skip_policy.py +70 -0
  392. desloppify/engine/_plan/step_completion.py +34 -0
  393. desloppify/engine/_plan/step_parser.py +160 -0
  394. desloppify/engine/_plan/sync/__init__.py +42 -0
  395. desloppify/engine/_plan/sync/auto_prune.py +46 -0
  396. desloppify/engine/_plan/sync/context.py +66 -0
  397. desloppify/engine/_plan/sync/defer_policy.py +190 -0
  398. desloppify/engine/_plan/sync/dimensions.py +345 -0
  399. desloppify/engine/_plan/sync/phase_cleanup.py +76 -0
  400. desloppify/engine/_plan/sync/pipeline.py +323 -0
  401. desloppify/engine/_plan/sync/review_import.py +207 -0
  402. desloppify/engine/_plan/sync/triage.py +408 -0
  403. desloppify/engine/_plan/sync/triage_start_policy.py +70 -0
  404. desloppify/engine/_plan/sync/workflow.py +534 -0
  405. desloppify/engine/_plan/sync/workflow_gates.py +27 -0
  406. desloppify/engine/_plan/triage/apply.py +374 -0
  407. desloppify/engine/_plan/triage/core.py +156 -0
  408. desloppify/engine/_plan/triage/dismiss.py +72 -0
  409. desloppify/engine/_plan/triage/lifecycle.py +100 -0
  410. desloppify/engine/_plan/triage/parsing.py +197 -0
  411. desloppify/engine/_plan/triage/playbook.py +301 -0
  412. desloppify/engine/_plan/triage/prompt.py +696 -0
  413. desloppify/engine/_plan/triage/snapshot.py +196 -0
  414. desloppify/engine/_plan/triage/strategist_data.py +721 -0
  415. desloppify/engine/_scoring/__init__.py +1 -0
  416. desloppify/engine/_scoring/detection.py +203 -0
  417. desloppify/engine/_scoring/policy/__init__.py +2 -0
  418. desloppify/engine/_scoring/policy/core.py +285 -0
  419. desloppify/engine/_scoring/results/__init__.py +2 -0
  420. desloppify/engine/_scoring/results/core.py +170 -0
  421. desloppify/engine/_scoring/results/health.py +295 -0
  422. desloppify/engine/_scoring/results/impact.py +84 -0
  423. desloppify/engine/_scoring/state_coverage.py +157 -0
  424. desloppify/engine/_scoring/state_integration.py +228 -0
  425. desloppify/engine/_scoring/state_integration_subjective.py +76 -0
  426. desloppify/engine/_scoring/subjective/__init__.py +2 -0
  427. desloppify/engine/_scoring/subjective/core.py +279 -0
  428. desloppify/engine/_state/__init__.py +26 -0
  429. desloppify/engine/_state/filtering.py +320 -0
  430. desloppify/engine/_state/issue_semantics.py +225 -0
  431. desloppify/engine/_state/merge.py +282 -0
  432. desloppify/engine/_state/merge_history.py +172 -0
  433. desloppify/engine/_state/merge_issues.py +331 -0
  434. desloppify/engine/_state/noise.py +198 -0
  435. desloppify/engine/_state/persistence.py +378 -0
  436. desloppify/engine/_state/progression.py +728 -0
  437. desloppify/engine/_state/recovery.py +285 -0
  438. desloppify/engine/_state/resolution.py +216 -0
  439. desloppify/engine/_state/schema.py +361 -0
  440. desloppify/engine/_state/schema_scores.py +55 -0
  441. desloppify/engine/_state/schema_types.py +122 -0
  442. desloppify/engine/_state/schema_types_issues.py +153 -0
  443. desloppify/engine/_state/schema_types_review.py +138 -0
  444. desloppify/engine/_state/scope.py +66 -0
  445. desloppify/engine/_state/scoring.py +80 -0
  446. desloppify/engine/_work_queue/__init__.py +1 -0
  447. desloppify/engine/_work_queue/context.py +108 -0
  448. desloppify/engine/_work_queue/core.py +67 -0
  449. desloppify/engine/_work_queue/finalize.py +83 -0
  450. desloppify/engine/_work_queue/helpers.py +198 -0
  451. desloppify/engine/_work_queue/inputs.py +60 -0
  452. desloppify/engine/_work_queue/issues.py +121 -0
  453. desloppify/engine/_work_queue/models.py +59 -0
  454. desloppify/engine/_work_queue/plan_order.py +270 -0
  455. desloppify/engine/_work_queue/policy.py +140 -0
  456. desloppify/engine/_work_queue/ranking.py +275 -0
  457. desloppify/engine/_work_queue/ranking_output.py +126 -0
  458. desloppify/engine/_work_queue/selection.py +91 -0
  459. desloppify/engine/_work_queue/snapshot.py +618 -0
  460. desloppify/engine/_work_queue/synthetic.py +367 -0
  461. desloppify/engine/_work_queue/synthetic_workflow.py +406 -0
  462. desloppify/engine/_work_queue/types.py +221 -0
  463. desloppify/engine/concerns.py +13 -0
  464. desloppify/engine/detectors/__init__.py +7 -0
  465. desloppify/engine/detectors/_flat_dirs/config.py +125 -0
  466. desloppify/engine/detectors/_flat_dirs/detect.py +149 -0
  467. desloppify/engine/detectors/_flat_dirs/entries.py +166 -0
  468. desloppify/engine/detectors/_flat_dirs/stats.py +53 -0
  469. desloppify/engine/detectors/base.py +73 -0
  470. desloppify/engine/detectors/complexity.py +84 -0
  471. desloppify/engine/detectors/coupling.py +235 -0
  472. desloppify/engine/detectors/coverage/__init__.py +2 -0
  473. desloppify/engine/detectors/coverage/mapping.py +256 -0
  474. desloppify/engine/detectors/coverage/mapping_analysis.py +253 -0
  475. desloppify/engine/detectors/coverage/mapping_imports.py +152 -0
  476. desloppify/engine/detectors/dupes.py +470 -0
  477. desloppify/engine/detectors/flat_dirs.py +24 -0
  478. desloppify/engine/detectors/gods.py +30 -0
  479. desloppify/engine/detectors/graph.py +163 -0
  480. desloppify/engine/detectors/jscpd_adapter.py +306 -0
  481. desloppify/engine/detectors/large.py +36 -0
  482. desloppify/engine/detectors/naming.py +91 -0
  483. desloppify/engine/detectors/orphaned.py +193 -0
  484. desloppify/engine/detectors/passthrough.py +59 -0
  485. desloppify/engine/detectors/patterns/__init__.py +2 -0
  486. desloppify/engine/detectors/patterns/security.py +231 -0
  487. desloppify/engine/detectors/review_coverage.py +290 -0
  488. desloppify/engine/detectors/security/detector.py +60 -0
  489. desloppify/engine/detectors/security/filters.py +28 -0
  490. desloppify/engine/detectors/security/rules.py +201 -0
  491. desloppify/engine/detectors/security/scanner.py +30 -0
  492. desloppify/engine/detectors/signature.py +166 -0
  493. desloppify/engine/detectors/single_use.py +91 -0
  494. desloppify/engine/detectors/test_coverage/_issue_gaps.py +87 -0
  495. desloppify/engine/detectors/test_coverage/_issue_generation.py +84 -0
  496. desloppify/engine/detectors/test_coverage/_issue_quality.py +169 -0
  497. desloppify/engine/detectors/test_coverage/detector.py +87 -0
  498. desloppify/engine/detectors/test_coverage/discovery.py +126 -0
  499. desloppify/engine/detectors/test_coverage/heuristics.py +78 -0
  500. desloppify/engine/detectors/test_coverage/io.py +61 -0
  501. desloppify/engine/detectors/test_coverage/issues.py +27 -0
  502. desloppify/engine/detectors/test_coverage/metrics.py +41 -0
  503. desloppify/engine/hook_registry.py +80 -0
  504. desloppify/engine/plan_ops.py +89 -0
  505. desloppify/engine/plan_state.py +99 -0
  506. desloppify/engine/plan_triage.py +184 -0
  507. desloppify/engine/planning/__init__.py +87 -0
  508. desloppify/engine/planning/dimension_rows.py +59 -0
  509. desloppify/engine/planning/helpers.py +16 -0
  510. desloppify/engine/planning/queue_policy.py +98 -0
  511. desloppify/engine/planning/render.py +290 -0
  512. desloppify/engine/planning/render_items.py +98 -0
  513. desloppify/engine/planning/render_sections.py +228 -0
  514. desloppify/engine/planning/scan.py +162 -0
  515. desloppify/engine/planning/scorecard_dimensions.py +229 -0
  516. desloppify/engine/planning/scorecard_policy.py +113 -0
  517. desloppify/engine/planning/scorecard_projection.py +240 -0
  518. desloppify/engine/planning/select.py +38 -0
  519. desloppify/engine/planning/types.py +34 -0
  520. desloppify/engine/policy/__init__.py +2 -0
  521. desloppify/engine/policy/zones.py +325 -0
  522. desloppify/engine/policy/zones_data.py +57 -0
  523. desloppify/engine/scoring.py +10 -0
  524. desloppify/engine/work_queue.py +27 -0
  525. desloppify/intelligence/__init__.py +0 -0
  526. desloppify/intelligence/integrity.py +127 -0
  527. desloppify/intelligence/narrative/_constants.py +45 -0
  528. desloppify/intelligence/narrative/action_engine.py +151 -0
  529. desloppify/intelligence/narrative/action_engine_routing.py +190 -0
  530. desloppify/intelligence/narrative/action_models.py +74 -0
  531. desloppify/intelligence/narrative/action_tools.py +79 -0
  532. desloppify/intelligence/narrative/core.py +145 -0
  533. desloppify/intelligence/narrative/dimensions.py +218 -0
  534. desloppify/intelligence/narrative/headline.py +172 -0
  535. desloppify/intelligence/narrative/phase.py +103 -0
  536. desloppify/intelligence/narrative/reminders.py +74 -0
  537. desloppify/intelligence/narrative/reminders_rules_followup.py +259 -0
  538. desloppify/intelligence/narrative/reminders_rules_primary.py +259 -0
  539. desloppify/intelligence/narrative/signals.py +297 -0
  540. desloppify/intelligence/narrative/strategy_engine.py +82 -0
  541. desloppify/intelligence/narrative/strategy_engine_hints.py +89 -0
  542. desloppify/intelligence/narrative/strategy_engine_lanes.py +205 -0
  543. desloppify/intelligence/narrative/types.py +157 -0
  544. desloppify/intelligence/review/__init__.py +158 -0
  545. desloppify/intelligence/review/_context/__init__.py +1 -0
  546. desloppify/intelligence/review/_context/models.py +197 -0
  547. desloppify/intelligence/review/_context/patterns.py +70 -0
  548. desloppify/intelligence/review/_context/structure.py +132 -0
  549. desloppify/intelligence/review/_prepare/__init__.py +1 -0
  550. desloppify/intelligence/review/_prepare/helpers.py +41 -0
  551. desloppify/intelligence/review/_prepare/issue_history.py +233 -0
  552. desloppify/intelligence/review/_prepare/remediation_engine.py +218 -0
  553. desloppify/intelligence/review/context.py +166 -0
  554. desloppify/intelligence/review/context_builder.py +179 -0
  555. desloppify/intelligence/review/context_holistic/budget/__init__.py +59 -0
  556. desloppify/intelligence/review/context_holistic/budget/analysis.py +53 -0
  557. desloppify/intelligence/review/context_holistic/budget/axes.py +223 -0
  558. desloppify/intelligence/review/context_holistic/budget/patterns_enums.py +158 -0
  559. desloppify/intelligence/review/context_holistic/budget/patterns_types.py +193 -0
  560. desloppify/intelligence/review/context_holistic/budget/patterns_wrappers.py +169 -0
  561. desloppify/intelligence/review/context_holistic/budget/scan.py +283 -0
  562. desloppify/intelligence/review/context_holistic/clusters/__init__.py +1 -0
  563. desloppify/intelligence/review/context_holistic/clusters/accessors.py +33 -0
  564. desloppify/intelligence/review/context_holistic/clusters/complexity.py +85 -0
  565. desloppify/intelligence/review/context_holistic/clusters/consistency.py +67 -0
  566. desloppify/intelligence/review/context_holistic/clusters/dependency.py +93 -0
  567. desloppify/intelligence/review/context_holistic/clusters/error_state.py +71 -0
  568. desloppify/intelligence/review/context_holistic/clusters/organization.py +49 -0
  569. desloppify/intelligence/review/context_holistic/clusters/security.py +80 -0
  570. desloppify/intelligence/review/context_holistic/mechanical.py +192 -0
  571. desloppify/intelligence/review/context_holistic/orchestrator.py +149 -0
  572. desloppify/intelligence/review/context_holistic/readers.py +21 -0
  573. desloppify/intelligence/review/context_holistic/selection/__init__.py +67 -0
  574. desloppify/intelligence/review/context_holistic/selection/contexts.py +286 -0
  575. desloppify/intelligence/review/context_signals/__init__.py +1 -0
  576. desloppify/intelligence/review/context_signals/ai.py +72 -0
  577. desloppify/intelligence/review/context_signals/auth.py +325 -0
  578. desloppify/intelligence/review/context_signals/migration.py +170 -0
  579. desloppify/intelligence/review/dimensions/__init__.py +50 -0
  580. desloppify/intelligence/review/dimensions/data.py +207 -0
  581. desloppify/intelligence/review/dimensions/holistic.py +7 -0
  582. desloppify/intelligence/review/dimensions/lang.py +62 -0
  583. desloppify/intelligence/review/dimensions/metadata.py +133 -0
  584. desloppify/intelligence/review/dimensions/metadata_legacy.py +19 -0
  585. desloppify/intelligence/review/dimensions/selection.py +46 -0
  586. desloppify/intelligence/review/dimensions/validation.py +219 -0
  587. desloppify/intelligence/review/feedback_contract.py +45 -0
  588. desloppify/intelligence/review/importing/__init__.py +1 -0
  589. desloppify/intelligence/review/importing/assessments.py +264 -0
  590. desloppify/intelligence/review/importing/cache.py +73 -0
  591. desloppify/intelligence/review/importing/contracts_models.py +99 -0
  592. desloppify/intelligence/review/importing/contracts_types.py +112 -0
  593. desloppify/intelligence/review/importing/contracts_validation.py +134 -0
  594. desloppify/intelligence/review/importing/holistic.py +208 -0
  595. desloppify/intelligence/review/importing/holistic_cache.py +177 -0
  596. desloppify/intelligence/review/importing/holistic_issue_flow.py +245 -0
  597. desloppify/intelligence/review/importing/payload.py +129 -0
  598. desloppify/intelligence/review/importing/per_file.py +222 -0
  599. desloppify/intelligence/review/importing/resolution.py +40 -0
  600. desloppify/intelligence/review/importing/state_helpers.py +18 -0
  601. desloppify/intelligence/review/issue_merge.py +55 -0
  602. desloppify/intelligence/review/personas.py +74 -0
  603. desloppify/intelligence/review/policy.py +160 -0
  604. desloppify/intelligence/review/prepare.py +262 -0
  605. desloppify/intelligence/review/prepare_batches_builders.py +209 -0
  606. desloppify/intelligence/review/prepare_batches_collectors.py +65 -0
  607. desloppify/intelligence/review/prepare_batches_collectors_quality.py +202 -0
  608. desloppify/intelligence/review/prepare_batches_collectors_structure.py +199 -0
  609. desloppify/intelligence/review/prepare_batches_core.py +129 -0
  610. desloppify/intelligence/review/prepare_holistic_batches.py +136 -0
  611. desloppify/intelligence/review/prepare_holistic_orchestration.py +268 -0
  612. desloppify/intelligence/review/prepare_holistic_payload_parts.py +65 -0
  613. desloppify/intelligence/review/prepare_holistic_scope.py +139 -0
  614. desloppify/intelligence/review/remediation.py +37 -0
  615. desloppify/intelligence/review/selection.py +225 -0
  616. desloppify/intelligence/review/selection_cache.py +53 -0
  617. desloppify/languages/__init__.py +73 -0
  618. desloppify/languages/_framework/__init__.py +33 -0
  619. desloppify/languages/_framework/base/__init__.py +1 -0
  620. desloppify/languages/_framework/base/lang_config_runtime.py +117 -0
  621. desloppify/languages/_framework/base/phase_builders.py +106 -0
  622. desloppify/languages/_framework/base/shared_phases.py +102 -0
  623. desloppify/languages/_framework/base/shared_phases_helpers.py +198 -0
  624. desloppify/languages/_framework/base/shared_phases_review.py +726 -0
  625. desloppify/languages/_framework/base/shared_phases_structural.py +231 -0
  626. desloppify/languages/_framework/base/smell_contracts.py +123 -0
  627. desloppify/languages/_framework/base/structural.py +83 -0
  628. desloppify/languages/_framework/base/types.py +271 -0
  629. desloppify/languages/_framework/base/types_shared.py +123 -0
  630. desloppify/languages/_framework/commands/__init__.py +47 -0
  631. desloppify/languages/_framework/commands/base.py +289 -0
  632. desloppify/languages/_framework/commands/registry.py +261 -0
  633. desloppify/languages/_framework/commands/scaffold.py +41 -0
  634. desloppify/languages/_framework/contract_validation.py +132 -0
  635. desloppify/languages/_framework/facade_common.py +70 -0
  636. desloppify/languages/_framework/frameworks/__init__.py +41 -0
  637. desloppify/languages/_framework/frameworks/detection.py +217 -0
  638. desloppify/languages/_framework/frameworks/phases.py +169 -0
  639. desloppify/languages/_framework/frameworks/registry.py +58 -0
  640. desloppify/languages/_framework/frameworks/specs/__init__.py +5 -0
  641. desloppify/languages/_framework/frameworks/specs/nextjs.py +557 -0
  642. desloppify/languages/_framework/frameworks/types.py +87 -0
  643. desloppify/languages/_framework/generic_parts/__init__.py +1 -0
  644. desloppify/languages/_framework/generic_parts/parsers.py +338 -0
  645. desloppify/languages/_framework/generic_parts/tool_factories.py +193 -0
  646. desloppify/languages/_framework/generic_parts/tool_runner.py +196 -0
  647. desloppify/languages/_framework/generic_parts/tool_spec.py +76 -0
  648. desloppify/languages/_framework/generic_support/__init__.py +1 -0
  649. desloppify/languages/_framework/generic_support/capabilities.py +102 -0
  650. desloppify/languages/_framework/generic_support/core.py +182 -0
  651. desloppify/languages/_framework/generic_support/registration.py +158 -0
  652. desloppify/languages/_framework/generic_support/structural.py +201 -0
  653. desloppify/languages/_framework/issue_factories.py +290 -0
  654. desloppify/languages/_framework/node/__init__.py +3 -0
  655. desloppify/languages/_framework/node/frameworks/__init__.py +13 -0
  656. desloppify/languages/_framework/node/frameworks/nextjs/__init__.py +58 -0
  657. desloppify/languages/_framework/node/frameworks/nextjs/info.py +49 -0
  658. desloppify/languages/_framework/node/frameworks/nextjs/scanners.py +1209 -0
  659. desloppify/languages/_framework/node/js_text.py +76 -0
  660. desloppify/languages/_framework/policy.py +29 -0
  661. desloppify/languages/_framework/registry/__init__.py +57 -0
  662. desloppify/languages/_framework/registry/discovery.py +193 -0
  663. desloppify/languages/_framework/registry/registration.py +64 -0
  664. desloppify/languages/_framework/registry/resolution.py +137 -0
  665. desloppify/languages/_framework/registry/state.py +135 -0
  666. desloppify/languages/_framework/review_data/__init__.py +1 -0
  667. desloppify/languages/_framework/review_data/context_schema.json +75 -0
  668. desloppify/languages/_framework/review_data/dimensions.json +389 -0
  669. desloppify/languages/_framework/runtime_support/__init__.py +1 -0
  670. desloppify/languages/_framework/runtime_support/accessors.py +152 -0
  671. desloppify/languages/_framework/runtime_support/runtime.py +208 -0
  672. desloppify/languages/_framework/scaffold_move.py +34 -0
  673. desloppify/languages/_framework/scope.py +7 -0
  674. desloppify/languages/_framework/scoped_store.py +107 -0
  675. desloppify/languages/_framework/structure_validation.py +32 -0
  676. desloppify/languages/_framework/treesitter/__init__.py +169 -0
  677. desloppify/languages/_framework/treesitter/_compat_bridge.py +20 -0
  678. desloppify/languages/_framework/treesitter/_complexity_function_metrics.py +10 -0
  679. desloppify/languages/_framework/treesitter/_complexity_nesting.py +10 -0
  680. desloppify/languages/_framework/treesitter/_extractors.py +10 -0
  681. desloppify/languages/_framework/treesitter/_import_cache.py +10 -0
  682. desloppify/languages/_framework/treesitter/_import_graph.py +10 -0
  683. desloppify/languages/_framework/treesitter/_import_resolvers_backend.py +10 -0
  684. desloppify/languages/_framework/treesitter/_import_resolvers_functional.py +10 -0
  685. desloppify/languages/_framework/treesitter/_import_resolvers_scripts.py +10 -0
  686. desloppify/languages/_framework/treesitter/_normalize.py +10 -0
  687. desloppify/languages/_framework/treesitter/_smells.py +10 -0
  688. desloppify/languages/_framework/treesitter/_specs.py +10 -0
  689. desloppify/languages/_framework/treesitter/_specs_compiled.py +10 -0
  690. desloppify/languages/_framework/treesitter/_specs_functional.py +10 -0
  691. desloppify/languages/_framework/treesitter/_specs_scripting.py +10 -0
  692. desloppify/languages/_framework/treesitter/_unused_imports.py +10 -0
  693. desloppify/languages/_framework/treesitter/analysis/cohesion.py +144 -0
  694. desloppify/languages/_framework/treesitter/analysis/complexity_callbacks.py +66 -0
  695. desloppify/languages/_framework/treesitter/analysis/complexity_function_metrics.py +181 -0
  696. desloppify/languages/_framework/treesitter/analysis/complexity_nesting.py +97 -0
  697. desloppify/languages/_framework/treesitter/analysis/complexity_shared.py +45 -0
  698. desloppify/languages/_framework/treesitter/analysis/extractors.py +246 -0
  699. desloppify/languages/_framework/treesitter/analysis/smells.py +210 -0
  700. desloppify/languages/_framework/treesitter/analysis/unused_imports.py +515 -0
  701. desloppify/languages/_framework/treesitter/imports/cache.py +102 -0
  702. desloppify/languages/_framework/treesitter/imports/graph.py +115 -0
  703. desloppify/languages/_framework/treesitter/imports/normalize.py +86 -0
  704. desloppify/languages/_framework/treesitter/imports/resolver_cache.py +32 -0
  705. desloppify/languages/_framework/treesitter/imports/resolvers_backend.py +189 -0
  706. desloppify/languages/_framework/treesitter/imports/resolvers_functional.py +252 -0
  707. desloppify/languages/_framework/treesitter/imports/resolvers_scripts.py +261 -0
  708. desloppify/languages/_framework/treesitter/phases.py +180 -0
  709. desloppify/languages/_framework/treesitter/specs/compiled.py +261 -0
  710. desloppify/languages/_framework/treesitter/specs/compiled_native.py +94 -0
  711. desloppify/languages/_framework/treesitter/specs/functional.py +158 -0
  712. desloppify/languages/_framework/treesitter/specs/scripting.py +255 -0
  713. desloppify/languages/_framework/treesitter/specs/specs.py +108 -0
  714. desloppify/languages/_framework/treesitter/types.py +33 -0
  715. desloppify/languages/bash/__init__.py +26 -0
  716. desloppify/languages/clojure/__init__.py +27 -0
  717. desloppify/languages/csharp/__init__.py +139 -0
  718. desloppify/languages/csharp/_helpers.py +19 -0
  719. desloppify/languages/csharp/_parse_helpers.py +170 -0
  720. desloppify/languages/csharp/_zones.py +29 -0
  721. desloppify/languages/csharp/commands.py +135 -0
  722. desloppify/languages/csharp/deps/__init__.py +2 -0
  723. desloppify/languages/csharp/deps/cli.py +85 -0
  724. desloppify/languages/csharp/detectors/__init__.py +4 -0
  725. desloppify/languages/csharp/detectors/deps.py +277 -0
  726. desloppify/languages/csharp/detectors/deps_support_metadata.py +103 -0
  727. desloppify/languages/csharp/detectors/deps_support_projects.py +171 -0
  728. desloppify/languages/csharp/detectors/deps_support_render.py +113 -0
  729. desloppify/languages/csharp/detectors/security.py +131 -0
  730. desloppify/languages/csharp/extractors.py +175 -0
  731. desloppify/languages/csharp/extractors_classes.py +166 -0
  732. desloppify/languages/csharp/fixers/__init__.py +4 -0
  733. desloppify/languages/csharp/move.py +45 -0
  734. desloppify/languages/csharp/phases.py +195 -0
  735. desloppify/languages/csharp/review.py +101 -0
  736. desloppify/languages/csharp/review_data/__init__.py +1 -0
  737. desloppify/languages/csharp/review_data/dimensions.override.json +22 -0
  738. desloppify/languages/csharp/test_coverage.py +169 -0
  739. desloppify/languages/csharp/tests/__init__.py +1 -0
  740. desloppify/languages/csharp/tests/test_csharp_deps_cli.py +353 -0
  741. desloppify/languages/csharp/tests/test_csharp_parse_helpers.py +221 -0
  742. desloppify/languages/csharp/tests/test_smoke.py +2 -0
  743. desloppify/languages/cxx/__init__.py +128 -0
  744. desloppify/languages/cxx/_helpers.py +12 -0
  745. desloppify/languages/cxx/_parse_helpers.py +55 -0
  746. desloppify/languages/cxx/_zones.py +35 -0
  747. desloppify/languages/cxx/commands.py +150 -0
  748. desloppify/languages/cxx/detectors/__init__.py +2 -0
  749. desloppify/languages/cxx/detectors/deps.py +207 -0
  750. desloppify/languages/cxx/detectors/security.py +700 -0
  751. desloppify/languages/cxx/extractors.py +146 -0
  752. desloppify/languages/cxx/fixers/__init__.py +2 -0
  753. desloppify/languages/cxx/move.py +63 -0
  754. desloppify/languages/cxx/phases.py +134 -0
  755. desloppify/languages/cxx/review.py +96 -0
  756. desloppify/languages/cxx/review_data/__init__.py +2 -0
  757. desloppify/languages/cxx/review_data/dimensions.override.json +1 -0
  758. desloppify/languages/cxx/test_coverage.py +195 -0
  759. desloppify/languages/cxx/tests/__init__.py +1 -0
  760. desloppify/languages/cxx/tests/test_commands.py +20 -0
  761. desloppify/languages/cxx/tests/test_compile_commands.py +78 -0
  762. desloppify/languages/cxx/tests/test_coverage.py +123 -0
  763. desloppify/languages/cxx/tests/test_cppcheck_phase.py +148 -0
  764. desloppify/languages/cxx/tests/test_deps.py +27 -0
  765. desloppify/languages/cxx/tests/test_end_to_end.py +44 -0
  766. desloppify/languages/cxx/tests/test_extractors.py +63 -0
  767. desloppify/languages/cxx/tests/test_init.py +46 -0
  768. desloppify/languages/cxx/tests/test_move.py +16 -0
  769. desloppify/languages/cxx/tests/test_review.py +55 -0
  770. desloppify/languages/cxx/tests/test_security.py +613 -0
  771. desloppify/languages/cxx/tests/test_structural.py +34 -0
  772. desloppify/languages/dart/__init__.py +133 -0
  773. desloppify/languages/dart/commands.py +66 -0
  774. desloppify/languages/dart/detectors/__init__.py +0 -0
  775. desloppify/languages/dart/detectors/deps.py +110 -0
  776. desloppify/languages/dart/extractors.py +151 -0
  777. desloppify/languages/dart/fixers/__init__.py +0 -0
  778. desloppify/languages/dart/phases.py +62 -0
  779. desloppify/languages/dart/pubspec.py +24 -0
  780. desloppify/languages/dart/review.py +76 -0
  781. desloppify/languages/dart/review_data/__init__.py +1 -0
  782. desloppify/languages/dart/review_data/dimensions.override.json +1 -0
  783. desloppify/languages/dart/test_coverage.py +150 -0
  784. desloppify/languages/dart/tests/__init__.py +1 -0
  785. desloppify/languages/dart/tests/test_extractors.py +23 -0
  786. desloppify/languages/dart/tests/test_init.py +47 -0
  787. desloppify/languages/elixir/__init__.py +38 -0
  788. desloppify/languages/elixir/review_data/__init__.py +0 -0
  789. desloppify/languages/erlang/__init__.py +27 -0
  790. desloppify/languages/framework.py +122 -0
  791. desloppify/languages/fsharp/__init__.py +27 -0
  792. desloppify/languages/gdscript/__init__.py +126 -0
  793. desloppify/languages/gdscript/commands.py +77 -0
  794. desloppify/languages/gdscript/detectors/__init__.py +0 -0
  795. desloppify/languages/gdscript/detectors/deps.py +83 -0
  796. desloppify/languages/gdscript/extractors.py +110 -0
  797. desloppify/languages/gdscript/fixers/__init__.py +0 -0
  798. desloppify/languages/gdscript/patterns.py +12 -0
  799. desloppify/languages/gdscript/phases.py +57 -0
  800. desloppify/languages/gdscript/review.py +68 -0
  801. desloppify/languages/gdscript/review_data/__init__.py +1 -0
  802. desloppify/languages/gdscript/review_data/dimensions.override.json +1 -0
  803. desloppify/languages/gdscript/test_coverage.py +95 -0
  804. desloppify/languages/gdscript/tests/__init__.py +1 -0
  805. desloppify/languages/gdscript/tests/test_init.py +47 -0
  806. desloppify/languages/go/__init__.py +126 -0
  807. desloppify/languages/go/_zones.py +16 -0
  808. desloppify/languages/go/commands.py +65 -0
  809. desloppify/languages/go/detectors/__init__.py +0 -0
  810. desloppify/languages/go/detectors/deps.py +19 -0
  811. desloppify/languages/go/extractors.py +280 -0
  812. desloppify/languages/go/fixers/__init__.py +0 -0
  813. desloppify/languages/go/move.py +22 -0
  814. desloppify/languages/go/phases.py +69 -0
  815. desloppify/languages/go/review.py +73 -0
  816. desloppify/languages/go/review_data/__init__.py +1 -0
  817. desloppify/languages/go/review_data/dimensions.override.json +1 -0
  818. desloppify/languages/go/review_data/holistic_dimensions.override.json +1 -0
  819. desloppify/languages/go/test_coverage.py +158 -0
  820. desloppify/languages/go/tests/__init__.py +0 -0
  821. desloppify/languages/go/tests/test_extractors.py +233 -0
  822. desloppify/languages/go/tests/test_init.py +83 -0
  823. desloppify/languages/haskell/__init__.py +28 -0
  824. desloppify/languages/java/__init__.py +51 -0
  825. desloppify/languages/javascript/__init__.py +38 -0
  826. desloppify/languages/javascript/_zones.py +32 -0
  827. desloppify/languages/javascript/test_coverage.py +308 -0
  828. desloppify/languages/javascript/tests/__init__.py +0 -0
  829. desloppify/languages/javascript/tests/test_init.py +113 -0
  830. desloppify/languages/javascript/tests/test_js_nextjs_framework.py +83 -0
  831. desloppify/languages/javascript/tests/test_test_coverage.py +207 -0
  832. desloppify/languages/julia/__init__.py +29 -0
  833. desloppify/languages/kotlin/__init__.py +28 -0
  834. desloppify/languages/lua/__init__.py +26 -0
  835. desloppify/languages/nim/__init__.py +27 -0
  836. desloppify/languages/ocaml/__init__.py +27 -0
  837. desloppify/languages/perl/__init__.py +26 -0
  838. desloppify/languages/php/__init__.py +97 -0
  839. desloppify/languages/php/test_coverage.py +329 -0
  840. desloppify/languages/powershell/__init__.py +29 -0
  841. desloppify/languages/python/__init__.py +170 -0
  842. desloppify/languages/python/_helpers.py +37 -0
  843. desloppify/languages/python/_security.py +69 -0
  844. desloppify/languages/python/_zones.py +26 -0
  845. desloppify/languages/python/commands.py +226 -0
  846. desloppify/languages/python/detectors/__init__.py +0 -0
  847. desloppify/languages/python/detectors/bandit_adapter.py +292 -0
  848. desloppify/languages/python/detectors/complexity.py +108 -0
  849. desloppify/languages/python/detectors/coupling_contracts.py +122 -0
  850. desloppify/languages/python/detectors/deps.py +133 -0
  851. desloppify/languages/python/detectors/deps_dynamic.py +52 -0
  852. desloppify/languages/python/detectors/deps_resolution.py +149 -0
  853. desloppify/languages/python/detectors/dict_keys/__init__.py +24 -0
  854. desloppify/languages/python/detectors/dict_keys/flow.py +55 -0
  855. desloppify/languages/python/detectors/dict_keys/schema.py +175 -0
  856. desloppify/languages/python/detectors/dict_keys/shared.py +89 -0
  857. desloppify/languages/python/detectors/dict_keys/visitor.py +273 -0
  858. desloppify/languages/python/detectors/dict_keys/visitor_helpers.py +240 -0
  859. desloppify/languages/python/detectors/facade.py +109 -0
  860. desloppify/languages/python/detectors/import_linter_adapter.py +124 -0
  861. desloppify/languages/python/detectors/mutable_state_ast.py +198 -0
  862. desloppify/languages/python/detectors/mutable_state_scan.py +130 -0
  863. desloppify/languages/python/detectors/private_imports.py +165 -0
  864. desloppify/languages/python/detectors/responsibility_cohesion.py +179 -0
  865. desloppify/languages/python/detectors/ruff_smells.py +155 -0
  866. desloppify/languages/python/detectors/smells.py +193 -0
  867. desloppify/languages/python/detectors/smells_ast/_dispatch.py +137 -0
  868. desloppify/languages/python/detectors/smells_ast/_helpers.py +107 -0
  869. desloppify/languages/python/detectors/smells_ast/_node_detectors_basic.py +138 -0
  870. desloppify/languages/python/detectors/smells_ast/_node_detectors_complexity.py +108 -0
  871. desloppify/languages/python/detectors/smells_ast/_node_detectors_nesting.py +160 -0
  872. desloppify/languages/python/detectors/smells_ast/_source_detectors.py +247 -0
  873. desloppify/languages/python/detectors/smells_ast/_tree_context_callbacks.py +62 -0
  874. desloppify/languages/python/detectors/smells_ast/_tree_context_paths.py +96 -0
  875. desloppify/languages/python/detectors/smells_ast/_tree_quality_detectors.py +264 -0
  876. desloppify/languages/python/detectors/smells_ast/_tree_quality_detectors_types.py +153 -0
  877. desloppify/languages/python/detectors/smells_ast/_tree_safety_detectors.py +242 -0
  878. desloppify/languages/python/detectors/smells_ast/_tree_safety_detectors_runtime.py +208 -0
  879. desloppify/languages/python/detectors/smells_ast/_types.py +57 -0
  880. desloppify/languages/python/detectors/smells_runtime.py +332 -0
  881. desloppify/languages/python/detectors/uncalled.py +116 -0
  882. desloppify/languages/python/detectors/unused.py +224 -0
  883. desloppify/languages/python/detectors/unused_enums.py +111 -0
  884. desloppify/languages/python/extractors.py +205 -0
  885. desloppify/languages/python/extractors_classes.py +194 -0
  886. desloppify/languages/python/extractors_shared.py +51 -0
  887. desloppify/languages/python/fixers/__init__.py +4 -0
  888. desloppify/languages/python/move.py +252 -0
  889. desloppify/languages/python/phases.py +248 -0
  890. desloppify/languages/python/phases_quality.py +151 -0
  891. desloppify/languages/python/phases_runtime.py +221 -0
  892. desloppify/languages/python/review.py +72 -0
  893. desloppify/languages/python/review_data/__init__.py +1 -0
  894. desloppify/languages/python/review_data/dimensions.override.json +21 -0
  895. desloppify/languages/python/test_coverage.py +175 -0
  896. desloppify/languages/python/tests/__init__.py +1 -0
  897. desloppify/languages/python/tests/conftest.py +31 -0
  898. desloppify/languages/python/tests/test_bandit_adapter.py +99 -0
  899. desloppify/languages/python/tests/test_py_commands.py +49 -0
  900. desloppify/languages/python/tests/test_py_complexity.py +187 -0
  901. desloppify/languages/python/tests/test_py_coupling_contracts.py +66 -0
  902. desloppify/languages/python/tests/test_py_deps.py +436 -0
  903. desloppify/languages/python/tests/test_py_dict_keys.py +381 -0
  904. desloppify/languages/python/tests/test_py_extractors.py +390 -0
  905. desloppify/languages/python/tests/test_py_facade.py +160 -0
  906. desloppify/languages/python/tests/test_py_init.py +171 -0
  907. desloppify/languages/python/tests/test_py_move.py +108 -0
  908. desloppify/languages/python/tests/test_py_mutable_state.py +252 -0
  909. desloppify/languages/python/tests/test_py_private_imports.py +54 -0
  910. desloppify/languages/python/tests/test_py_responsibility_cohesion.py +82 -0
  911. desloppify/languages/python/tests/test_py_smells.py +7 -0
  912. desloppify/languages/python/tests/test_py_smells_ast.py +590 -0
  913. desloppify/languages/python/tests/test_py_smells_ast_perf.py +32 -0
  914. desloppify/languages/python/tests/test_py_smells_crossfile.py +200 -0
  915. desloppify/languages/python/tests/test_py_smells_regex.py +168 -0
  916. desloppify/languages/python/tests/test_py_uncalled.py +338 -0
  917. desloppify/languages/python/tests/test_py_unused.py +238 -0
  918. desloppify/languages/r/__init__.py +56 -0
  919. desloppify/languages/r/detectors/__init__.py +1 -0
  920. desloppify/languages/r/detectors/smells.py +344 -0
  921. desloppify/languages/r/detectors/smells_catalog.py +70 -0
  922. desloppify/languages/r/phases_smells.py +25 -0
  923. desloppify/languages/r/review_data/__init__.py +1 -0
  924. desloppify/languages/r/test_coverage.py +158 -0
  925. desloppify/languages/r/tests/__init__.py +0 -0
  926. desloppify/languages/r/tests/test_r_air.py +94 -0
  927. desloppify/languages/r/tests/test_r_smells.py +215 -0
  928. desloppify/languages/r/tests/test_r_test_coverage.py +163 -0
  929. desloppify/languages/ruby/__init__.py +54 -0
  930. desloppify/languages/ruby/tests/__init__.py +0 -0
  931. desloppify/languages/ruby/tests/test_init.py +116 -0
  932. desloppify/languages/rust/__init__.py +158 -0
  933. desloppify/languages/rust/_fixers.py +155 -0
  934. desloppify/languages/rust/commands.py +286 -0
  935. desloppify/languages/rust/detectors/__init__.py +35 -0
  936. desloppify/languages/rust/detectors/_shared.py +829 -0
  937. desloppify/languages/rust/detectors/api.py +305 -0
  938. desloppify/languages/rust/detectors/cargo_policy.py +166 -0
  939. desloppify/languages/rust/detectors/deps.py +71 -0
  940. desloppify/languages/rust/detectors/safety.py +175 -0
  941. desloppify/languages/rust/detectors/smells.py +289 -0
  942. desloppify/languages/rust/detectors/smells_catalog.py +88 -0
  943. desloppify/languages/rust/extractors.py +204 -0
  944. desloppify/languages/rust/fixers/__init__.py +1 -0
  945. desloppify/languages/rust/move.py +45 -0
  946. desloppify/languages/rust/phases.py +310 -0
  947. desloppify/languages/rust/phases_smells.py +29 -0
  948. desloppify/languages/rust/review.py +101 -0
  949. desloppify/languages/rust/review_data/__init__.py +1 -0
  950. desloppify/languages/rust/review_data/dimensions.override.json +1 -0
  951. desloppify/languages/rust/support.py +1036 -0
  952. desloppify/languages/rust/test_coverage.py +160 -0
  953. desloppify/languages/rust/tests/__init__.py +1 -0
  954. desloppify/languages/rust/tests/test_commands.py +38 -0
  955. desloppify/languages/rust/tests/test_coverage.py +77 -0
  956. desloppify/languages/rust/tests/test_custom.py +1148 -0
  957. desloppify/languages/rust/tests/test_deps.py +161 -0
  958. desloppify/languages/rust/tests/test_extractors.py +116 -0
  959. desloppify/languages/rust/tests/test_init.py +125 -0
  960. desloppify/languages/rust/tests/test_phases.py +38 -0
  961. desloppify/languages/rust/tests/test_review.py +58 -0
  962. desloppify/languages/rust/tests/test_shared_direct.py +155 -0
  963. desloppify/languages/rust/tests/test_smells.py +420 -0
  964. desloppify/languages/rust/tests/test_support.py +112 -0
  965. desloppify/languages/rust/tests/test_test_coverage.py +167 -0
  966. desloppify/languages/rust/tests/test_tools.py +839 -0
  967. desloppify/languages/rust/tools.py +768 -0
  968. desloppify/languages/scala/__init__.py +28 -0
  969. desloppify/languages/scss/__init__.py +25 -0
  970. desloppify/languages/swift/__init__.py +27 -0
  971. desloppify/languages/typescript/__init__.py +180 -0
  972. desloppify/languages/typescript/_fixers.py +118 -0
  973. desloppify/languages/typescript/_zones.py +30 -0
  974. desloppify/languages/typescript/commands.py +346 -0
  975. desloppify/languages/typescript/detectors/__init__.py +1 -0
  976. desloppify/languages/typescript/detectors/concerns.py +104 -0
  977. desloppify/languages/typescript/detectors/contracts.py +20 -0
  978. desloppify/languages/typescript/detectors/deprecated.py +231 -0
  979. desloppify/languages/typescript/detectors/deps/__init__.py +230 -0
  980. desloppify/languages/typescript/detectors/deps/resolve.py +198 -0
  981. desloppify/languages/typescript/detectors/deps/runtime.py +56 -0
  982. desloppify/languages/typescript/detectors/exports.py +47 -0
  983. desloppify/languages/typescript/detectors/facade.py +57 -0
  984. desloppify/languages/typescript/detectors/io.py +45 -0
  985. desloppify/languages/typescript/detectors/knip_adapter.py +132 -0
  986. desloppify/languages/typescript/detectors/logs.py +136 -0
  987. desloppify/languages/typescript/detectors/patterns/__init__.py +1 -0
  988. desloppify/languages/typescript/detectors/patterns/analysis.py +151 -0
  989. desloppify/languages/typescript/detectors/patterns/catalog.py +52 -0
  990. desloppify/languages/typescript/detectors/patterns/cli.py +100 -0
  991. desloppify/languages/typescript/detectors/props.py +113 -0
  992. desloppify/languages/typescript/detectors/react/__init__.py +1 -0
  993. desloppify/languages/typescript/detectors/react/cli.py +54 -0
  994. desloppify/languages/typescript/detectors/react/context.py +60 -0
  995. desloppify/languages/typescript/detectors/react/hook_bloat.py +219 -0
  996. desloppify/languages/typescript/detectors/react/state_sync.py +101 -0
  997. desloppify/languages/typescript/detectors/security/__init__.py +0 -0
  998. desloppify/languages/typescript/detectors/security/detector.py +93 -0
  999. desloppify/languages/typescript/detectors/security/entries.py +33 -0
  1000. desloppify/languages/typescript/detectors/security/file_checks.py +190 -0
  1001. desloppify/languages/typescript/detectors/security/line_checks.py +141 -0
  1002. desloppify/languages/typescript/detectors/security/patterns.py +46 -0
  1003. desloppify/languages/typescript/detectors/smells/__init__.py +126 -0
  1004. desloppify/languages/typescript/detectors/smells/assets.py +103 -0
  1005. desloppify/languages/typescript/detectors/smells/catalog.py +190 -0
  1006. desloppify/languages/typescript/detectors/smells/detector_core.py +166 -0
  1007. desloppify/languages/typescript/detectors/smells/detector_flow.py +230 -0
  1008. desloppify/languages/typescript/detectors/smells/detector_safety.py +141 -0
  1009. desloppify/languages/typescript/detectors/smells/helpers.py +275 -0
  1010. desloppify/languages/typescript/detectors/unused.py +250 -0
  1011. desloppify/languages/typescript/detectors/unused_fallback.py +172 -0
  1012. desloppify/languages/typescript/extractors.py +54 -0
  1013. desloppify/languages/typescript/extractors_components.py +183 -0
  1014. desloppify/languages/typescript/extractors_functions.py +217 -0
  1015. desloppify/languages/typescript/fixers/__init__.py +37 -0
  1016. desloppify/languages/typescript/fixers/fixer_io.py +95 -0
  1017. desloppify/languages/typescript/fixers/if_chain.py +68 -0
  1018. desloppify/languages/typescript/fixers/import_rewrite.py +257 -0
  1019. desloppify/languages/typescript/fixers/imports.py +37 -0
  1020. desloppify/languages/typescript/fixers/logs.py +77 -0
  1021. desloppify/languages/typescript/fixers/logs_cleanup.py +258 -0
  1022. desloppify/languages/typescript/fixers/logs_context.py +146 -0
  1023. desloppify/languages/typescript/fixers/params.py +104 -0
  1024. desloppify/languages/typescript/fixers/syntax_scan.py +153 -0
  1025. desloppify/languages/typescript/fixers/useeffect.py +45 -0
  1026. desloppify/languages/typescript/fixers/vars.py +214 -0
  1027. desloppify/languages/typescript/move.py +157 -0
  1028. desloppify/languages/typescript/phases_basic.py +108 -0
  1029. desloppify/languages/typescript/phases_config.py +82 -0
  1030. desloppify/languages/typescript/phases_coupling.py +333 -0
  1031. desloppify/languages/typescript/phases_smells.py +117 -0
  1032. desloppify/languages/typescript/phases_structural.py +221 -0
  1033. desloppify/languages/typescript/plugin_contract.py +39 -0
  1034. desloppify/languages/typescript/review.py +97 -0
  1035. desloppify/languages/typescript/review_data/__init__.py +1 -0
  1036. desloppify/languages/typescript/review_data/dimensions.override.json +22 -0
  1037. desloppify/languages/typescript/syntax/scanner.py +34 -0
  1038. desloppify/languages/typescript/test_coverage.py +323 -0
  1039. desloppify/languages/typescript/tests/__init__.py +1 -0
  1040. desloppify/languages/typescript/tests/smells/test_ts_smell_helpers.py +605 -0
  1041. desloppify/languages/typescript/tests/test_ts_commands.py +60 -0
  1042. desloppify/languages/typescript/tests/test_ts_concerns.py +206 -0
  1043. desloppify/languages/typescript/tests/test_ts_deprecated.py +223 -0
  1044. desloppify/languages/typescript/tests/test_ts_deps.py +713 -0
  1045. desloppify/languages/typescript/tests/test_ts_detector_contracts.py +65 -0
  1046. desloppify/languages/typescript/tests/test_ts_exports_detector.py +150 -0
  1047. desloppify/languages/typescript/tests/test_ts_extractors.py +328 -0
  1048. desloppify/languages/typescript/tests/test_ts_facade.py +99 -0
  1049. desloppify/languages/typescript/tests/test_ts_fixers.py +848 -0
  1050. desloppify/languages/typescript/tests/test_ts_fixers_if_chain_and_useeffect.py +130 -0
  1051. desloppify/languages/typescript/tests/test_ts_init.py +90 -0
  1052. desloppify/languages/typescript/tests/test_ts_logs.py +140 -0
  1053. desloppify/languages/typescript/tests/test_ts_move.py +43 -0
  1054. desloppify/languages/typescript/tests/test_ts_nextjs_framework.py +229 -0
  1055. desloppify/languages/typescript/tests/test_ts_patterns.py +216 -0
  1056. desloppify/languages/typescript/tests/test_ts_phases.py +183 -0
  1057. desloppify/languages/typescript/tests/test_ts_props.py +146 -0
  1058. desloppify/languages/typescript/tests/test_ts_react.py +371 -0
  1059. desloppify/languages/typescript/tests/test_ts_smells.py +510 -0
  1060. desloppify/languages/typescript/tests/test_ts_unused.py +280 -0
  1061. desloppify/languages/zig/__init__.py +27 -0
  1062. desloppify/state.py +7 -0
  1063. desloppify/state_compat.py +126 -0
  1064. desloppify/state_io.py +61 -0
  1065. desloppify/state_score_snapshot.py +44 -0
  1066. desloppify/state_scoring.py +35 -0
  1067. desloppify_community-1.0.dist-info/METADATA +193 -0
  1068. desloppify_community-1.0.dist-info/RECORD +1072 -0
  1069. desloppify_community-1.0.dist-info/WHEEL +5 -0
  1070. desloppify_community-1.0.dist-info/entry_points.txt +2 -0
  1071. desloppify_community-1.0.dist-info/licenses/LICENSE +163 -0
  1072. desloppify_community-1.0.dist-info/top_level.txt +1 -0
desloppify/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """Desloppify — Automated cruft detection + LLM-ready analysis."""
2
+
3
+ from __future__ import annotations
desloppify/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ """Allow running as: python -m desloppify"""
2
+
3
+ from desloppify.cli import main
4
+
5
+ main()
@@ -0,0 +1 @@
1
+ """Application-layer packages: CLI, commands, and output surfaces."""
@@ -0,0 +1,2 @@
1
+ """CLI parser support modules."""
2
+
@@ -0,0 +1,156 @@
1
+ """CLI parser construction helpers."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import platform
7
+ import sys
8
+ from importlib.metadata import PackageNotFoundError
9
+ from importlib.metadata import version as get_version
10
+
11
+ from desloppify.app.cli_support.parser_groups import (
12
+ _add_backlog_parser,
13
+ _add_config_parser,
14
+ _add_detect_parser,
15
+ _add_directives_parser,
16
+ _add_dev_parser,
17
+ _add_exclude_parser,
18
+ _add_autofix_parser,
19
+ _add_langs_parser,
20
+ _add_move_parser,
21
+ _add_next_parser,
22
+ _add_review_parser,
23
+ _add_scan_parser,
24
+ _add_setup_parser,
25
+ _add_show_parser,
26
+ _add_status_parser,
27
+ _add_suppress_parser,
28
+ _add_tree_parser,
29
+ _add_update_skill_parser,
30
+ _add_viz_parser,
31
+ _add_zone_parser,
32
+ )
33
+ from desloppify.app.cli_support.parser_groups_plan_impl import add_plan_parser
34
+
35
+ USAGE_EXAMPLES = """
36
+ workflow:
37
+ scan Run detectors, update state, show diff
38
+ status Score dashboard with dimension health
39
+ next Show the next execution item from the living plan
40
+ backlog Show broader backlog items not currently in execution
41
+ plan Living plan: prioritize, cluster, resolve, skip, annotate
42
+
43
+ investigate:
44
+ show Dig into issues by file/dir/detector/ID
45
+ tree Annotated codebase tree (zoom with --focus)
46
+ viz Interactive HTML treemap
47
+ detect Run a single detector directly (bypass state)
48
+
49
+ improve:
50
+ autofix Auto-fix mechanical issues
51
+ suppress Suppress issues matching a pattern
52
+ exclude Exclude path pattern from scanning
53
+ move Move file/dir and update import references
54
+ review Holistic subjective review (LLM-based)
55
+
56
+ configure:
57
+ zone Show/set zone classifications
58
+ config Project configuration
59
+ langs List language plugins
60
+ dev Developer utilities
61
+ setup Install bundled global AI skill files
62
+ update-skill Install/update agent skill document
63
+
64
+ examples:
65
+ desloppify scan
66
+ desloppify scan --skip-slow --profile ci
67
+ desloppify plan # full prioritized markdown
68
+ desloppify plan queue # compact table of execution items
69
+ desloppify next --count 10 # top 10 execution items
70
+ desloppify backlog --count 10 # top 10 backlog items
71
+ desloppify show src/components/Modal.tsx
72
+ desloppify plan resolve "unused::src/foo.tsx::React" \\
73
+ --note "removed import" --attest "I have actually ..."
74
+ desloppify review --run-batches --parallel --scan-after-import
75
+ """
76
+
77
+
78
+ class _NoAbbrevArgumentParser(argparse.ArgumentParser):
79
+ """Argparse parser variant that disables long-option abbreviation."""
80
+
81
+ def __init__(self, *args, **kwargs):
82
+ kwargs.setdefault("allow_abbrev", False)
83
+ super().__init__(*args, **kwargs)
84
+
85
+
86
+ def _cli_version_string() -> str:
87
+ """Return the best available CLI version label."""
88
+ try:
89
+ version_label = f"desloppify {get_version('desloppify')}"
90
+ except PackageNotFoundError:
91
+ version_label = "desloppify (version unknown)"
92
+ return f"{version_label}\nPython {platform.python_version()} at {sys.executable}"
93
+
94
+
95
+ def create_parser(*, langs: list[str], detector_names: list[str]) -> argparse.ArgumentParser:
96
+ """Build top-level CLI parser with all subcommands."""
97
+ lang_help = ", ".join(langs) if langs else "registered languages"
98
+
99
+ parser = _NoAbbrevArgumentParser(
100
+ prog="desloppify",
101
+ description="Desloppify — codebase health tracker",
102
+ epilog=USAGE_EXAMPLES,
103
+ formatter_class=argparse.RawDescriptionHelpFormatter,
104
+ )
105
+ parser.add_argument(
106
+ "--lang",
107
+ type=str,
108
+ default=None,
109
+ help=f"Language to scan ({lang_help}). Auto-detected if omitted.",
110
+ )
111
+ parser.add_argument(
112
+ "--exclude",
113
+ action="append",
114
+ default=None,
115
+ metavar="PATTERN",
116
+ help="Path pattern to exclude (component/prefix match; repeatable)",
117
+ )
118
+ parser.add_argument(
119
+ "--version",
120
+ "-V",
121
+ action="version",
122
+ version=_cli_version_string(),
123
+ )
124
+ sub = parser.add_subparsers(
125
+ dest="command",
126
+ parser_class=_NoAbbrevArgumentParser,
127
+ )
128
+ # workflow
129
+ _add_scan_parser(sub)
130
+ _add_status_parser(sub)
131
+ _add_next_parser(sub)
132
+ _add_backlog_parser(sub)
133
+ add_plan_parser(sub)
134
+ # investigate
135
+ _add_show_parser(sub)
136
+ _add_tree_parser(sub)
137
+ _add_viz_parser(sub)
138
+ _add_detect_parser(sub, detector_names)
139
+ # improve
140
+ _add_autofix_parser(sub, langs)
141
+ _add_suppress_parser(sub)
142
+ _add_exclude_parser(sub)
143
+ _add_move_parser(sub)
144
+ _add_review_parser(sub)
145
+ # configure
146
+ _add_zone_parser(sub)
147
+ _add_config_parser(sub)
148
+ _add_directives_parser(sub)
149
+ _add_langs_parser(sub)
150
+ _add_dev_parser(sub)
151
+ _add_setup_parser(sub)
152
+ _add_update_skill_parser(sub)
153
+ return parser
154
+
155
+
156
+ __all__ = ["USAGE_EXAMPLES", "create_parser"]
@@ -0,0 +1,359 @@
1
+ """CLI parser subcommand group builders."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+
7
+ from desloppify.app.cli_support.parser_groups_admin import ( # noqa: F401 (re-exports)
8
+ _add_config_parser,
9
+ _add_detect_parser,
10
+ _add_directives_parser,
11
+ _add_dev_parser,
12
+ _add_autofix_parser,
13
+ _add_langs_parser,
14
+ _add_move_parser,
15
+ _add_review_parser,
16
+ _add_setup_parser,
17
+ _add_update_skill_parser,
18
+ _add_viz_parser,
19
+ _add_zone_parser,
20
+ )
21
+ from desloppify.app.cli_support.parser_groups_plan_impl import add_plan_parser
22
+ from desloppify.base.enums import issue_status_tokens
23
+
24
+ _STATUS_CHOICES = sorted(issue_status_tokens(include_all=True))
25
+
26
+ __all__ = [
27
+ "_add_backlog_parser",
28
+ "_add_config_parser",
29
+ "_add_detect_parser",
30
+ "_add_directives_parser",
31
+ "_add_dev_parser",
32
+ "_add_exclude_parser",
33
+ "_add_autofix_parser",
34
+ "_add_suppress_parser",
35
+ "_add_langs_parser",
36
+ "_add_move_parser",
37
+ "_add_next_parser",
38
+ "add_plan_parser",
39
+ "_add_review_parser",
40
+ "_add_scan_parser",
41
+ "_add_show_parser",
42
+ "_add_setup_parser",
43
+ "_add_status_parser",
44
+ "_add_tree_parser",
45
+ "_add_update_skill_parser",
46
+ "_add_viz_parser",
47
+ "_add_zone_parser",
48
+ ]
49
+
50
+
51
+ def _add_scan_parser(sub) -> None:
52
+ p_scan = sub.add_parser(
53
+ "scan",
54
+ help="Run all detectors, update state, show diff",
55
+ epilog="""\
56
+ examples:
57
+ desloppify scan
58
+ desloppify scan --skip-slow
59
+ desloppify scan --profile ci
60
+ desloppify scan --force-resolve""",
61
+ formatter_class=argparse.RawDescriptionHelpFormatter,
62
+ )
63
+ p_scan.add_argument("--path", type=str, default=None, help="Project root directory (default: auto-detected)")
64
+ p_scan.add_argument("--state", type=str, default=None, help="Path to state file")
65
+ p_scan.add_argument(
66
+ "--by-language",
67
+ action="store_true",
68
+ help="Run independent scans for each detected language state",
69
+ )
70
+ p_scan.add_argument(
71
+ "--reset-subjective",
72
+ action="store_true",
73
+ help="Reset subjective measures to 0 before running scan",
74
+ )
75
+ p_scan.add_argument(
76
+ "--skip-slow", action="store_true", help="Skip slow detectors (dupes)"
77
+ )
78
+ p_scan.add_argument(
79
+ "--profile",
80
+ choices=["objective", "full", "ci"],
81
+ default=None,
82
+ help="Scan profile: objective, full, or ci",
83
+ )
84
+ p_scan.add_argument(
85
+ "--force-resolve",
86
+ action="store_true",
87
+ help="Bypass suspect-detector protection (use when a detector legitimately went to 0)",
88
+ )
89
+ p_scan.add_argument(
90
+ "--no-badge",
91
+ action="store_true",
92
+ help="Skip scorecard image generation (also: DESLOPPIFY_NO_BADGE=true)",
93
+ )
94
+ p_scan.add_argument(
95
+ "--badge-path",
96
+ type=str,
97
+ default=None,
98
+ metavar="PATH",
99
+ help="Output path for scorecard image (default: scorecard.png)",
100
+ )
101
+ p_scan.add_argument(
102
+ "--lang-opt",
103
+ action="append",
104
+ default=None,
105
+ metavar="KEY=VALUE",
106
+ help="Language runtime option override (repeatable, e.g. --lang-opt roslyn_cmd='dotnet run ...')",
107
+ )
108
+ p_scan.add_argument(
109
+ "--force-rescan",
110
+ action="store_true",
111
+ help="Bypass queue completion check (requires --attest)",
112
+ )
113
+ p_scan.add_argument(
114
+ "--attest",
115
+ type=str,
116
+ default=None,
117
+ metavar="TEXT",
118
+ help="Attestation for --force-rescan",
119
+ )
120
+
121
+
122
+ def _add_status_parser(sub) -> None:
123
+ p_status = sub.add_parser("status", help="Full project dashboard: score, dimensions, progress, coaching")
124
+ p_status.add_argument("--state", type=str, default=None, help="Path to state file")
125
+ p_status.add_argument("--json", action="store_true", help="Output as JSON")
126
+ p_status.add_argument(
127
+ "--by-language",
128
+ action="store_true",
129
+ help="Show independent score rows for detected language states",
130
+ )
131
+
132
+
133
+ def _add_tree_parser(sub) -> None:
134
+ p_tree = sub.add_parser("tree", help="Annotated codebase tree (text)")
135
+ p_tree.add_argument("--path", type=str, default=None, help="Project root directory (default: auto-detected)")
136
+ p_tree.add_argument("--state", type=str, default=None, help="Path to state file")
137
+ p_tree.add_argument("--depth", type=int, default=2, help="Max depth (default: 2)")
138
+ p_tree.add_argument(
139
+ "--focus",
140
+ type=str,
141
+ default=None,
142
+ help="Zoom into subdirectory (e.g. shared/components/MediaLightbox)",
143
+ )
144
+ p_tree.add_argument(
145
+ "--min-loc", type=int, default=0, help="Hide items below this LOC"
146
+ )
147
+ p_tree.add_argument(
148
+ "--sort", choices=["loc", "issues", "coupling"], default="loc",
149
+ help="Sort order (default: loc)",
150
+ )
151
+ p_tree.add_argument(
152
+ "--detail", action="store_true", help="Show issue summaries per file"
153
+ )
154
+
155
+
156
+ def _add_show_parser(sub) -> None:
157
+ p_show = sub.add_parser(
158
+ "show",
159
+ help="Dig into issues by file, directory, detector, or ID",
160
+ epilog="""\
161
+ examples:
162
+ desloppify show src/components/Modal.tsx
163
+ desloppify show unused --top 50
164
+ desloppify show --chronic
165
+ desloppify show --status all""",
166
+ formatter_class=argparse.RawDescriptionHelpFormatter,
167
+ )
168
+ p_show.add_argument(
169
+ "pattern",
170
+ nargs="?",
171
+ default=None,
172
+ help="File path, directory, detector name, issue ID, or glob",
173
+ )
174
+ p_show.add_argument("--state", type=str, default=None, help="Path to state file")
175
+ p_show.add_argument(
176
+ "--status",
177
+ choices=_STATUS_CHOICES,
178
+ default="open",
179
+ help="Filter by status (default: open)",
180
+ )
181
+ p_show.add_argument(
182
+ "--top", type=int, default=20, help="Max files to show (default: 20)"
183
+ )
184
+ p_show.add_argument(
185
+ "--output",
186
+ type=str,
187
+ metavar="FILE",
188
+ help="Write JSON to file instead of terminal",
189
+ )
190
+ p_show.add_argument(
191
+ "--chronic",
192
+ action="store_true",
193
+ help="Show issues that have been reopened 2+ times (chronic reopeners)",
194
+ )
195
+ p_show.add_argument(
196
+ "--code", action="store_true", help="Show inline code snippets for each issue"
197
+ )
198
+ p_show.add_argument(
199
+ "--notes",
200
+ type=str,
201
+ default=None,
202
+ metavar="FILE",
203
+ help="Path to investigation notes file to attach to a issue",
204
+ )
205
+ p_show.add_argument(
206
+ "--no-budget",
207
+ action="store_true",
208
+ dest="no_budget",
209
+ help="Bypass per-detector noise budget (show all matching issues)",
210
+ )
211
+
212
+
213
+ def _add_next_parser(sub) -> None:
214
+ p_next = sub.add_parser(
215
+ "next",
216
+ help="Show the next execution item from the living plan",
217
+ epilog="""\
218
+ examples:
219
+ desloppify next # single highest-priority execution item
220
+ desloppify next --count 10 # top 10 execution items
221
+ desloppify next --group file # group execution items by file
222
+ desloppify next --cluster my-cluster # execution items in a plan cluster""",
223
+ formatter_class=argparse.RawDescriptionHelpFormatter,
224
+ )
225
+ p_next.add_argument("--state", type=str, default=None, help="Path to state file")
226
+ p_next.add_argument(
227
+ "--count", type=int, default=1, help="Number of items to show (default: 1)"
228
+ )
229
+ p_next.add_argument(
230
+ "--scope",
231
+ type=str,
232
+ default=None,
233
+ help="Optional scope filter (path, detector, ID prefix, or glob)",
234
+ )
235
+ p_next.add_argument(
236
+ "--status",
237
+ choices=_STATUS_CHOICES,
238
+ default="open",
239
+ help="Status filter for queue items (default: open)",
240
+ )
241
+ p_next.add_argument(
242
+ "--group",
243
+ choices=["item", "file", "detector"],
244
+ default="item",
245
+ help="Group output by item, file, or detector",
246
+ )
247
+ p_next.add_argument(
248
+ "--format",
249
+ choices=["terminal", "json", "md"],
250
+ default="terminal",
251
+ help="Output format (default: terminal)",
252
+ )
253
+ p_next.add_argument(
254
+ "--explain",
255
+ action="store_true",
256
+ help="Show ranking rationale",
257
+ )
258
+ p_next.add_argument(
259
+ "--cluster",
260
+ type=str,
261
+ default=None,
262
+ metavar="NAME",
263
+ help="Filter to a specific plan cluster",
264
+ )
265
+ p_next.add_argument(
266
+ "--include-skipped",
267
+ action="store_true",
268
+ help="Include skipped items in the queue",
269
+ )
270
+ p_next.add_argument(
271
+ "--output",
272
+ type=str,
273
+ metavar="FILE",
274
+ help="Write JSON/Markdown to file (with --format json|md)",
275
+ )
276
+
277
+
278
+ def _add_backlog_parser(sub) -> None:
279
+ p_backlog = sub.add_parser(
280
+ "backlog",
281
+ help="Show broader backlog items not currently driving execution",
282
+ epilog="""\
283
+ examples:
284
+ desloppify backlog # top backlog item
285
+ desloppify backlog --count 20 # top 20 backlog items
286
+ desloppify backlog --group detector # group by detector
287
+ desloppify backlog --scope security # narrow backlog view""",
288
+ formatter_class=argparse.RawDescriptionHelpFormatter,
289
+ )
290
+ p_backlog.add_argument("--state", type=str, default=None, help="Path to state file")
291
+ p_backlog.add_argument(
292
+ "--count", type=int, default=1, help="Number of items to show (default: 1)"
293
+ )
294
+ p_backlog.add_argument(
295
+ "--scope",
296
+ type=str,
297
+ default=None,
298
+ help="Optional scope filter (path, detector, ID prefix, or glob)",
299
+ )
300
+ p_backlog.add_argument(
301
+ "--status",
302
+ choices=_STATUS_CHOICES,
303
+ default="open",
304
+ help="Status filter for backlog items (default: open)",
305
+ )
306
+ p_backlog.add_argument(
307
+ "--group",
308
+ choices=["item", "file", "detector"],
309
+ default="item",
310
+ help="Group output by item, file, or detector",
311
+ )
312
+ p_backlog.add_argument(
313
+ "--format",
314
+ choices=["terminal", "json", "md"],
315
+ default="terminal",
316
+ help="Output format (default: terminal)",
317
+ )
318
+ p_backlog.add_argument(
319
+ "--explain",
320
+ action="store_true",
321
+ help="Show ranking rationale",
322
+ )
323
+ p_backlog.add_argument(
324
+ "--output",
325
+ type=str,
326
+ metavar="FILE",
327
+ help="Write JSON/Markdown to file (with --format json|md)",
328
+ )
329
+
330
+
331
+ def _add_suppress_parser(sub) -> None:
332
+ p_suppress = sub.add_parser(
333
+ "suppress", help="Permanently silence issues matching a pattern (false positives / accepted debt)"
334
+ )
335
+ p_suppress.add_argument(
336
+ "pattern",
337
+ help=(
338
+ "File path, glob, or detector::prefix. Use detector::*::rule to keep "
339
+ "a suppression across file moves."
340
+ ),
341
+ )
342
+ p_suppress.add_argument(
343
+ "--attest",
344
+ type=str,
345
+ default=None,
346
+ help=(
347
+ "Required anti-gaming attestation. Must include BOTH keywords "
348
+ "'I have actually' and 'not gaming'. Example: "
349
+ '--attest "I have actually [DESCRIBE THE CONCRETE CHANGE YOU MADE] and I am not gaming the score by resolving without fixing."'
350
+ ),
351
+ )
352
+ p_suppress.add_argument("--state", type=str, default=None, help="Path to state file")
353
+
354
+
355
+ def _add_exclude_parser(sub) -> None:
356
+ p_exclude = sub.add_parser(
357
+ "exclude", help="Exclude paths from scanning entirely"
358
+ )
359
+ p_exclude.add_argument("pattern", help="Path pattern to exclude from scanning")