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.
- desloppify/__init__.py +3 -0
- desloppify/__main__.py +5 -0
- desloppify/app/__init__.py +1 -0
- desloppify/app/cli_support/__init__.py +2 -0
- desloppify/app/cli_support/parser.py +156 -0
- desloppify/app/cli_support/parser_groups.py +359 -0
- desloppify/app/cli_support/parser_groups_admin.py +213 -0
- desloppify/app/cli_support/parser_groups_admin_review.py +40 -0
- desloppify/app/cli_support/parser_groups_admin_review_options_batch.py +128 -0
- desloppify/app/cli_support/parser_groups_admin_review_options_core.py +74 -0
- desloppify/app/cli_support/parser_groups_admin_review_options_external.py +46 -0
- desloppify/app/cli_support/parser_groups_admin_review_options_trust_post.py +54 -0
- desloppify/app/cli_support/parser_groups_plan_impl.py +99 -0
- desloppify/app/cli_support/parser_groups_plan_impl_sections_annotations.py +140 -0
- desloppify/app/cli_support/parser_groups_plan_impl_sections_cluster.py +126 -0
- desloppify/app/cli_support/parser_groups_plan_impl_sections_queue_reorder.py +79 -0
- desloppify/app/cli_support/parser_groups_plan_impl_sections_triage_commit_scan.py +202 -0
- desloppify/app/commands/__init__.py +1 -0
- desloppify/app/commands/autofix/__init__.py +14 -0
- desloppify/app/commands/autofix/apply_flow.py +191 -0
- desloppify/app/commands/autofix/apply_retro.py +169 -0
- desloppify/app/commands/autofix/cmd.py +61 -0
- desloppify/app/commands/autofix/fixer_selection.py +41 -0
- desloppify/app/commands/autofix/preview.py +48 -0
- desloppify/app/commands/backlog/__init__.py +14 -0
- desloppify/app/commands/backlog/cmd.py +49 -0
- desloppify/app/commands/config.py +90 -0
- desloppify/app/commands/detect.py +124 -0
- desloppify/app/commands/dev.py +221 -0
- desloppify/app/commands/dev_scaffold_templates.py +290 -0
- desloppify/app/commands/directives.py +169 -0
- desloppify/app/commands/exclude.py +115 -0
- desloppify/app/commands/helpers/__init__.py +1 -0
- desloppify/app/commands/helpers/attestation.py +113 -0
- desloppify/app/commands/helpers/by_language.py +74 -0
- desloppify/app/commands/helpers/command_runtime.py +40 -0
- desloppify/app/commands/helpers/display.py +5 -0
- desloppify/app/commands/helpers/dynamic_loaders.py +52 -0
- desloppify/app/commands/helpers/guardrails.py +203 -0
- desloppify/app/commands/helpers/issue_id_display.py +15 -0
- desloppify/app/commands/helpers/lang.py +142 -0
- desloppify/app/commands/helpers/query.py +103 -0
- desloppify/app/commands/helpers/queue_progress.py +369 -0
- desloppify/app/commands/helpers/queue_progress_render.py +110 -0
- desloppify/app/commands/helpers/rendering.py +117 -0
- desloppify/app/commands/helpers/runtime_options.py +68 -0
- desloppify/app/commands/helpers/score_update.py +78 -0
- desloppify/app/commands/helpers/state.py +77 -0
- desloppify/app/commands/helpers/state_persistence.py +28 -0
- desloppify/app/commands/helpers/subjective.py +61 -0
- desloppify/app/commands/helpers/transition_messages.py +189 -0
- desloppify/app/commands/langs/__init__.py +7 -0
- desloppify/app/commands/langs/cmd.py +79 -0
- desloppify/app/commands/move/__init__.py +14 -0
- desloppify/app/commands/move/apply.py +125 -0
- desloppify/app/commands/move/cmd.py +82 -0
- desloppify/app/commands/move/directory.py +92 -0
- desloppify/app/commands/move/language.py +102 -0
- desloppify/app/commands/move/planning.py +179 -0
- desloppify/app/commands/move/reporting.py +116 -0
- desloppify/app/commands/next/__init__.py +14 -0
- desloppify/app/commands/next/cmd.py +67 -0
- desloppify/app/commands/next/flow_helpers.py +61 -0
- desloppify/app/commands/next/options.py +39 -0
- desloppify/app/commands/next/output.py +262 -0
- desloppify/app/commands/next/queue_flow.py +558 -0
- desloppify/app/commands/next/render.py +381 -0
- desloppify/app/commands/next/render_nudges.py +294 -0
- desloppify/app/commands/next/render_scoring.py +218 -0
- desloppify/app/commands/next/render_support.py +313 -0
- desloppify/app/commands/next/render_workflow.py +162 -0
- desloppify/app/commands/next/subjective.py +41 -0
- desloppify/app/commands/plan/__init__.py +21 -0
- desloppify/app/commands/plan/cluster/__init__.py +5 -0
- desloppify/app/commands/plan/cluster/dispatch.py +256 -0
- desloppify/app/commands/plan/cluster/ops_display.py +335 -0
- desloppify/app/commands/plan/cluster/ops_manage.py +283 -0
- desloppify/app/commands/plan/cluster/ops_reorder.py +264 -0
- desloppify/app/commands/plan/cluster/steps.py +44 -0
- desloppify/app/commands/plan/cluster/update.py +55 -0
- desloppify/app/commands/plan/cluster/update_flow.py +458 -0
- desloppify/app/commands/plan/cmd.py +247 -0
- desloppify/app/commands/plan/commit_log/__init__.py +5 -0
- desloppify/app/commands/plan/commit_log/dispatch.py +246 -0
- desloppify/app/commands/plan/override/__init__.py +29 -0
- desloppify/app/commands/plan/override/io.py +107 -0
- desloppify/app/commands/plan/override/misc.py +271 -0
- desloppify/app/commands/plan/override/resolve_cmd.py +115 -0
- desloppify/app/commands/plan/override/resolve_helpers.py +121 -0
- desloppify/app/commands/plan/override/resolve_workflow.py +491 -0
- desloppify/app/commands/plan/override/skip.py +458 -0
- desloppify/app/commands/plan/policy_cmd.py +88 -0
- desloppify/app/commands/plan/queue_render.py +293 -0
- desloppify/app/commands/plan/reorder_handlers.py +136 -0
- desloppify/app/commands/plan/repair_state.py +79 -0
- desloppify/app/commands/plan/shared/__init__.py +6 -0
- desloppify/app/commands/plan/shared/cluster_membership.py +7 -0
- desloppify/app/commands/plan/shared/patterns.py +139 -0
- desloppify/app/commands/plan/triage/__init__.py +18 -0
- desloppify/app/commands/plan/triage/command.py +24 -0
- desloppify/app/commands/plan/triage/completion_flow.py +276 -0
- desloppify/app/commands/plan/triage/confirmations/__init__.py +8 -0
- desloppify/app/commands/plan/triage/confirmations/basic.py +362 -0
- desloppify/app/commands/plan/triage/confirmations/enrich.py +270 -0
- desloppify/app/commands/plan/triage/confirmations/organize.py +198 -0
- desloppify/app/commands/plan/triage/confirmations/router.py +45 -0
- desloppify/app/commands/plan/triage/confirmations/shared.py +110 -0
- desloppify/app/commands/plan/triage/confirmations/strategize.py +112 -0
- desloppify/app/commands/plan/triage/display/__init__.py +33 -0
- desloppify/app/commands/plan/triage/display/dashboard.py +325 -0
- desloppify/app/commands/plan/triage/display/layout.py +351 -0
- desloppify/app/commands/plan/triage/display/primitives.py +61 -0
- desloppify/app/commands/plan/triage/display/progress.py +81 -0
- desloppify/app/commands/plan/triage/helpers.py +39 -0
- desloppify/app/commands/plan/triage/lifecycle.py +147 -0
- desloppify/app/commands/plan/triage/observe_batches.py +116 -0
- desloppify/app/commands/plan/triage/plan_state_access.py +83 -0
- desloppify/app/commands/plan/triage/review_coverage.py +128 -0
- desloppify/app/commands/plan/triage/runner/__init__.py +1 -0
- desloppify/app/commands/plan/triage/runner/codex_runner.py +104 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_claude.py +75 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_codex_observe.py +169 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_codex_parallel.py +65 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline.py +457 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline_completion.py +187 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline_context.py +73 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_codex_pipeline_execution.py +768 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_codex_sense.py +447 -0
- desloppify/app/commands/plan/triage/runner/orchestrator_common.py +29 -0
- desloppify/app/commands/plan/triage/runner/rovodev_pipeline.py +48 -0
- desloppify/app/commands/plan/triage/runner/rovodev_runner.py +80 -0
- desloppify/app/commands/plan/triage/runner/stage_prompts.py +542 -0
- desloppify/app/commands/plan/triage/runner/stage_prompts_instruction_blocks.py +585 -0
- desloppify/app/commands/plan/triage/runner/stage_prompts_instruction_shared.py +227 -0
- desloppify/app/commands/plan/triage/runner/stage_prompts_observe.py +103 -0
- desloppify/app/commands/plan/triage/runner/stage_prompts_sense.py +443 -0
- desloppify/app/commands/plan/triage/runner/stage_prompts_strategist.py +98 -0
- desloppify/app/commands/plan/triage/runner/stage_prompts_validation.py +86 -0
- desloppify/app/commands/plan/triage/runner/stage_runner_override.py +59 -0
- desloppify/app/commands/plan/triage/runner/stage_validation.py +437 -0
- desloppify/app/commands/plan/triage/services.py +85 -0
- desloppify/app/commands/plan/triage/stage_queue.py +97 -0
- desloppify/app/commands/plan/triage/stages/__init__.py +55 -0
- desloppify/app/commands/plan/triage/stages/commands.py +48 -0
- desloppify/app/commands/plan/triage/stages/completion.py +368 -0
- desloppify/app/commands/plan/triage/stages/enrich.py +349 -0
- desloppify/app/commands/plan/triage/stages/evidence_parsing.py +616 -0
- desloppify/app/commands/plan/triage/stages/flow_helpers.py +23 -0
- desloppify/app/commands/plan/triage/stages/helpers.py +194 -0
- desloppify/app/commands/plan/triage/stages/observe.py +208 -0
- desloppify/app/commands/plan/triage/stages/organize.py +284 -0
- desloppify/app/commands/plan/triage/stages/records.py +273 -0
- desloppify/app/commands/plan/triage/stages/reflect.py +326 -0
- desloppify/app/commands/plan/triage/stages/rendering.py +71 -0
- desloppify/app/commands/plan/triage/stages/sense_check.py +257 -0
- desloppify/app/commands/plan/triage/stages/strategize.py +307 -0
- desloppify/app/commands/plan/triage/validation/__init__.py +8 -0
- desloppify/app/commands/plan/triage/validation/completion_policy.py +330 -0
- desloppify/app/commands/plan/triage/validation/completion_stages.py +208 -0
- desloppify/app/commands/plan/triage/validation/core.py +225 -0
- desloppify/app/commands/plan/triage/validation/enrich_checks.py +267 -0
- desloppify/app/commands/plan/triage/validation/enrich_quality.py +219 -0
- desloppify/app/commands/plan/triage/validation/organize_policy.py +328 -0
- desloppify/app/commands/plan/triage/validation/reflect_accounting.py +504 -0
- desloppify/app/commands/plan/triage/validation/stage_policy.py +222 -0
- desloppify/app/commands/plan/triage/workflow.py +213 -0
- desloppify/app/commands/registry.py +66 -0
- desloppify/app/commands/resolve/__init__.py +1 -0
- desloppify/app/commands/resolve/apply.py +95 -0
- desloppify/app/commands/resolve/cmd.py +196 -0
- desloppify/app/commands/resolve/living_plan.py +210 -0
- desloppify/app/commands/resolve/messages.py +115 -0
- desloppify/app/commands/resolve/plan_load.py +121 -0
- desloppify/app/commands/resolve/queue_guard.py +191 -0
- desloppify/app/commands/resolve/render.py +260 -0
- desloppify/app/commands/resolve/render_support.py +77 -0
- desloppify/app/commands/resolve/selection.py +119 -0
- desloppify/app/commands/review/__init__.py +14 -0
- desloppify/app/commands/review/assessment_integrity.py +63 -0
- desloppify/app/commands/review/batch/__init__.py +1 -0
- desloppify/app/commands/review/batch/core_merge_support.py +241 -0
- desloppify/app/commands/review/batch/core_models.py +123 -0
- desloppify/app/commands/review/batch/core_normalize.py +699 -0
- desloppify/app/commands/review/batch/core_parse.py +59 -0
- desloppify/app/commands/review/batch/execution.py +75 -0
- desloppify/app/commands/review/batch/execution_dry_run.py +82 -0
- desloppify/app/commands/review/batch/execution_phases.py +632 -0
- desloppify/app/commands/review/batch/execution_progress.py +262 -0
- desloppify/app/commands/review/batch/execution_results.py +278 -0
- desloppify/app/commands/review/batch/execution_summary.py +59 -0
- desloppify/app/commands/review/batch/merge.py +258 -0
- desloppify/app/commands/review/batch/orchestrator.py +617 -0
- desloppify/app/commands/review/batch/prompt_template.py +172 -0
- desloppify/app/commands/review/batch/scope.py +288 -0
- desloppify/app/commands/review/batch/scoring.py +109 -0
- desloppify/app/commands/review/batches_runtime.py +262 -0
- desloppify/app/commands/review/cmd.py +245 -0
- desloppify/app/commands/review/coordinator.py +202 -0
- desloppify/app/commands/review/external.py +600 -0
- desloppify/app/commands/review/helpers.py +11 -0
- desloppify/app/commands/review/importing/__init__.py +1 -0
- desloppify/app/commands/review/importing/cmd.py +435 -0
- desloppify/app/commands/review/importing/flags.py +149 -0
- desloppify/app/commands/review/importing/helpers.py +64 -0
- desloppify/app/commands/review/importing/output.py +359 -0
- desloppify/app/commands/review/importing/parse.py +467 -0
- desloppify/app/commands/review/importing/plan_sync.py +569 -0
- desloppify/app/commands/review/importing/policy.py +341 -0
- desloppify/app/commands/review/importing/results.py +102 -0
- desloppify/app/commands/review/merge.py +299 -0
- desloppify/app/commands/review/packet/__init__.py +5 -0
- desloppify/app/commands/review/packet/build.py +285 -0
- desloppify/app/commands/review/packet/policy.py +28 -0
- desloppify/app/commands/review/preflight.py +277 -0
- desloppify/app/commands/review/prepare.py +141 -0
- desloppify/app/commands/review/prompt_sections.py +643 -0
- desloppify/app/commands/review/runner_failures.py +383 -0
- desloppify/app/commands/review/runner_opencode.py +237 -0
- desloppify/app/commands/review/runner_packets.py +197 -0
- desloppify/app/commands/review/runner_parallel/__init__.py +173 -0
- desloppify/app/commands/review/runner_parallel/execution.py +345 -0
- desloppify/app/commands/review/runner_parallel/progress.py +158 -0
- desloppify/app/commands/review/runner_parallel/serial.py +73 -0
- desloppify/app/commands/review/runner_parallel/types.py +72 -0
- desloppify/app/commands/review/runner_process_impl/__init__.py +1 -0
- desloppify/app/commands/review/runner_process_impl/attempt_success.py +153 -0
- desloppify/app/commands/review/runner_process_impl/attempts.py +535 -0
- desloppify/app/commands/review/runner_process_impl/io.py +309 -0
- desloppify/app/commands/review/runner_process_impl/types.py +96 -0
- desloppify/app/commands/review/runner_rovodev.py +337 -0
- desloppify/app/commands/review/runtime/__init__.py +0 -0
- desloppify/app/commands/review/runtime/policy.py +88 -0
- desloppify/app/commands/review/runtime/setup.py +67 -0
- desloppify/app/commands/review/runtime_paths.py +86 -0
- desloppify/app/commands/review/state_payloads.py +69 -0
- desloppify/app/commands/runner/__init__.py +3 -0
- desloppify/app/commands/runner/codex_batch.py +275 -0
- desloppify/app/commands/runner/run_logs.py +24 -0
- desloppify/app/commands/scan/__init__.py +14 -0
- desloppify/app/commands/scan/artifacts.py +210 -0
- desloppify/app/commands/scan/cmd.py +228 -0
- desloppify/app/commands/scan/contracts.py +53 -0
- desloppify/app/commands/scan/coverage.py +162 -0
- desloppify/app/commands/scan/helpers.py +202 -0
- desloppify/app/commands/scan/orchestrator.py +75 -0
- desloppify/app/commands/scan/plan_nudge.py +46 -0
- desloppify/app/commands/scan/plan_reconcile.py +495 -0
- desloppify/app/commands/scan/preflight.py +164 -0
- desloppify/app/commands/scan/reporting/__init__.py +11 -0
- desloppify/app/commands/scan/reporting/agent_context.py +384 -0
- desloppify/app/commands/scan/reporting/dimensions.py +238 -0
- desloppify/app/commands/scan/reporting/integrity_report.py +313 -0
- desloppify/app/commands/scan/reporting/presentation.py +418 -0
- desloppify/app/commands/scan/reporting/subjective.py +540 -0
- desloppify/app/commands/scan/reporting/summary.py +373 -0
- desloppify/app/commands/scan/reporting/text.py +62 -0
- desloppify/app/commands/scan/wontfix.py +203 -0
- desloppify/app/commands/scan/workflow.py +558 -0
- desloppify/app/commands/setup/__init__.py +7 -0
- desloppify/app/commands/setup/cmd.py +157 -0
- desloppify/app/commands/show/__init__.py +14 -0
- desloppify/app/commands/show/cmd.py +223 -0
- desloppify/app/commands/show/concerns_view.py +34 -0
- desloppify/app/commands/show/dimension_views.py +176 -0
- desloppify/app/commands/show/formatting.py +85 -0
- desloppify/app/commands/show/payload.py +72 -0
- desloppify/app/commands/show/render.py +292 -0
- desloppify/app/commands/show/scope.py +296 -0
- desloppify/app/commands/status/__init__.py +14 -0
- desloppify/app/commands/status/cmd.py +147 -0
- desloppify/app/commands/status/flow.py +262 -0
- desloppify/app/commands/status/render.py +367 -0
- desloppify/app/commands/status/render_dimensions.py +149 -0
- desloppify/app/commands/status/render_io.py +189 -0
- desloppify/app/commands/status/render_structural.py +91 -0
- desloppify/app/commands/status/sparkline.py +95 -0
- desloppify/app/commands/status/strict_target.py +52 -0
- desloppify/app/commands/status/summary.py +139 -0
- desloppify/app/commands/suppress.py +119 -0
- desloppify/app/commands/update_skill/__init__.py +82 -0
- desloppify/app/commands/update_skill/cmd.py +260 -0
- desloppify/app/commands/viz.py +61 -0
- desloppify/app/commands/zone.py +154 -0
- desloppify/app/output/__init__.py +1 -0
- desloppify/app/output/_viz_cmd_context.py +33 -0
- desloppify/app/output/_viz_template.html +274 -0
- desloppify/app/output/scorecard.py +200 -0
- desloppify/app/output/scorecard_parts/__init__.py +1 -0
- desloppify/app/output/scorecard_parts/draw.py +127 -0
- desloppify/app/output/scorecard_parts/left_panel.py +221 -0
- desloppify/app/output/scorecard_parts/left_panel_primitives.py +135 -0
- desloppify/app/output/scorecard_parts/meta.py +94 -0
- desloppify/app/output/scorecard_parts/ornaments.py +57 -0
- desloppify/app/output/scorecard_parts/theme.py +152 -0
- desloppify/app/output/tree_text.py +131 -0
- desloppify/app/output/visualize.py +166 -0
- desloppify/app/output/visualize_data.py +220 -0
- desloppify/app/skill_docs.py +196 -0
- desloppify/base/__init__.py +7 -0
- desloppify/base/coercions.py +82 -0
- desloppify/base/config/__init__.py +338 -0
- desloppify/base/config/migration.py +118 -0
- desloppify/base/config/schema.py +193 -0
- desloppify/base/discovery/__init__.py +1 -0
- desloppify/base/discovery/file_paths.py +130 -0
- desloppify/base/discovery/paths.py +160 -0
- desloppify/base/discovery/source.py +339 -0
- desloppify/base/enums.py +90 -0
- desloppify/base/exception_sets.py +48 -0
- desloppify/base/git_context.py +90 -0
- desloppify/base/optional_deps.py +22 -0
- desloppify/base/output/__init__.py +1 -0
- desloppify/base/output/contract.py +18 -0
- desloppify/base/output/fallbacks.py +60 -0
- desloppify/base/output/issues.py +214 -0
- desloppify/base/output/terminal.py +105 -0
- desloppify/base/output/user_message.py +28 -0
- desloppify/base/registry/__init__.py +208 -0
- desloppify/base/registry/catalog_entries.py +511 -0
- desloppify/base/registry/catalog_models.py +74 -0
- desloppify/base/runtime_state.py +153 -0
- desloppify/base/scoring_constants.py +18 -0
- desloppify/base/search/__init__.py +2 -0
- desloppify/base/search/grep.py +133 -0
- desloppify/base/search/query.py +268 -0
- desloppify/base/search/query_paths.py +25 -0
- desloppify/base/signal_patterns.py +48 -0
- desloppify/base/subjective_dimension_catalog.py +85 -0
- desloppify/base/subjective_dimensions.py +214 -0
- desloppify/base/subjective_dimensions_constants.py +96 -0
- desloppify/base/subjective_dimensions_merge.py +114 -0
- desloppify/base/subjective_dimensions_providers.py +73 -0
- desloppify/base/text/__init__.py +2 -0
- desloppify/base/text_utils.py +125 -0
- desloppify/base/tooling.py +89 -0
- desloppify/cli.py +294 -0
- desloppify/conftest.py +20 -0
- desloppify/data/__init__.py +0 -0
- desloppify/data/global/AMP.md +6 -0
- desloppify/data/global/CLAUDE.md +41 -0
- desloppify/data/global/CODEX.md +30 -0
- desloppify/data/global/COPILOT.md +32 -0
- desloppify/data/global/CURSOR.md +27 -0
- desloppify/data/global/DROID.md +39 -0
- desloppify/data/global/GEMINI.md +46 -0
- desloppify/data/global/HERMES.md +65 -0
- desloppify/data/global/OPENCODE.md +35 -0
- desloppify/data/global/QWEN.md +20 -0
- desloppify/data/global/ROVODEV.md +147 -0
- desloppify/data/global/SKILL.md +298 -0
- desloppify/data/global/WINDSURF.md +22 -0
- desloppify/data/global/__init__.py +0 -0
- desloppify/data/global/scoring.md +101 -0
- desloppify/engine/__init__.py +1 -0
- desloppify/engine/_concerns/constants.py +25 -0
- desloppify/engine/_concerns/generators.py +242 -0
- desloppify/engine/_concerns/signals.py +96 -0
- desloppify/engine/_concerns/state.py +30 -0
- desloppify/engine/_concerns/text.py +203 -0
- desloppify/engine/_concerns/types.py +41 -0
- desloppify/engine/_concerns/utils.py +36 -0
- desloppify/engine/_plan/__init__.py +21 -0
- desloppify/engine/_plan/annotations.py +53 -0
- desloppify/engine/_plan/auto_cluster.py +255 -0
- desloppify/engine/_plan/auto_cluster_sync.py +251 -0
- desloppify/engine/_plan/auto_cluster_sync_issue.py +268 -0
- desloppify/engine/_plan/cluster_membership.py +30 -0
- desloppify/engine/_plan/cluster_semantics.py +206 -0
- desloppify/engine/_plan/cluster_strategy.py +141 -0
- desloppify/engine/_plan/commit_tracking.py +274 -0
- desloppify/engine/_plan/constants.py +213 -0
- desloppify/engine/_plan/operations/cluster.py +264 -0
- desloppify/engine/_plan/operations/lifecycle.py +110 -0
- desloppify/engine/_plan/operations/meta.py +123 -0
- desloppify/engine/_plan/operations/queue.py +138 -0
- desloppify/engine/_plan/operations/skip.py +187 -0
- desloppify/engine/_plan/persistence.py +225 -0
- desloppify/engine/_plan/policy/__init__.py +5 -0
- desloppify/engine/_plan/policy/execution_constraints.py +26 -0
- desloppify/engine/_plan/policy/project.py +114 -0
- desloppify/engine/_plan/policy/stale.py +222 -0
- desloppify/engine/_plan/policy/subjective.py +151 -0
- desloppify/engine/_plan/promoted_ids.py +53 -0
- desloppify/engine/_plan/refresh_lifecycle.py +337 -0
- desloppify/engine/_plan/scan_issue_reconcile.py +459 -0
- desloppify/engine/_plan/schema/__init__.py +417 -0
- desloppify/engine/_plan/schema/helpers.py +89 -0
- desloppify/engine/_plan/schema/migrations.py +28 -0
- desloppify/engine/_plan/schema/normalize.py +271 -0
- desloppify/engine/_plan/schema/version_upgrades.py +239 -0
- desloppify/engine/_plan/skip_policy.py +70 -0
- desloppify/engine/_plan/step_completion.py +34 -0
- desloppify/engine/_plan/step_parser.py +160 -0
- desloppify/engine/_plan/sync/__init__.py +42 -0
- desloppify/engine/_plan/sync/auto_prune.py +46 -0
- desloppify/engine/_plan/sync/context.py +66 -0
- desloppify/engine/_plan/sync/defer_policy.py +190 -0
- desloppify/engine/_plan/sync/dimensions.py +345 -0
- desloppify/engine/_plan/sync/phase_cleanup.py +76 -0
- desloppify/engine/_plan/sync/pipeline.py +323 -0
- desloppify/engine/_plan/sync/review_import.py +207 -0
- desloppify/engine/_plan/sync/triage.py +408 -0
- desloppify/engine/_plan/sync/triage_start_policy.py +70 -0
- desloppify/engine/_plan/sync/workflow.py +534 -0
- desloppify/engine/_plan/sync/workflow_gates.py +27 -0
- desloppify/engine/_plan/triage/apply.py +374 -0
- desloppify/engine/_plan/triage/core.py +156 -0
- desloppify/engine/_plan/triage/dismiss.py +72 -0
- desloppify/engine/_plan/triage/lifecycle.py +100 -0
- desloppify/engine/_plan/triage/parsing.py +197 -0
- desloppify/engine/_plan/triage/playbook.py +301 -0
- desloppify/engine/_plan/triage/prompt.py +696 -0
- desloppify/engine/_plan/triage/snapshot.py +196 -0
- desloppify/engine/_plan/triage/strategist_data.py +721 -0
- desloppify/engine/_scoring/__init__.py +1 -0
- desloppify/engine/_scoring/detection.py +203 -0
- desloppify/engine/_scoring/policy/__init__.py +2 -0
- desloppify/engine/_scoring/policy/core.py +285 -0
- desloppify/engine/_scoring/results/__init__.py +2 -0
- desloppify/engine/_scoring/results/core.py +170 -0
- desloppify/engine/_scoring/results/health.py +295 -0
- desloppify/engine/_scoring/results/impact.py +84 -0
- desloppify/engine/_scoring/state_coverage.py +157 -0
- desloppify/engine/_scoring/state_integration.py +228 -0
- desloppify/engine/_scoring/state_integration_subjective.py +76 -0
- desloppify/engine/_scoring/subjective/__init__.py +2 -0
- desloppify/engine/_scoring/subjective/core.py +279 -0
- desloppify/engine/_state/__init__.py +26 -0
- desloppify/engine/_state/filtering.py +320 -0
- desloppify/engine/_state/issue_semantics.py +225 -0
- desloppify/engine/_state/merge.py +282 -0
- desloppify/engine/_state/merge_history.py +172 -0
- desloppify/engine/_state/merge_issues.py +331 -0
- desloppify/engine/_state/noise.py +198 -0
- desloppify/engine/_state/persistence.py +378 -0
- desloppify/engine/_state/progression.py +728 -0
- desloppify/engine/_state/recovery.py +285 -0
- desloppify/engine/_state/resolution.py +216 -0
- desloppify/engine/_state/schema.py +361 -0
- desloppify/engine/_state/schema_scores.py +55 -0
- desloppify/engine/_state/schema_types.py +122 -0
- desloppify/engine/_state/schema_types_issues.py +153 -0
- desloppify/engine/_state/schema_types_review.py +138 -0
- desloppify/engine/_state/scope.py +66 -0
- desloppify/engine/_state/scoring.py +80 -0
- desloppify/engine/_work_queue/__init__.py +1 -0
- desloppify/engine/_work_queue/context.py +108 -0
- desloppify/engine/_work_queue/core.py +67 -0
- desloppify/engine/_work_queue/finalize.py +83 -0
- desloppify/engine/_work_queue/helpers.py +198 -0
- desloppify/engine/_work_queue/inputs.py +60 -0
- desloppify/engine/_work_queue/issues.py +121 -0
- desloppify/engine/_work_queue/models.py +59 -0
- desloppify/engine/_work_queue/plan_order.py +270 -0
- desloppify/engine/_work_queue/policy.py +140 -0
- desloppify/engine/_work_queue/ranking.py +275 -0
- desloppify/engine/_work_queue/ranking_output.py +126 -0
- desloppify/engine/_work_queue/selection.py +91 -0
- desloppify/engine/_work_queue/snapshot.py +618 -0
- desloppify/engine/_work_queue/synthetic.py +367 -0
- desloppify/engine/_work_queue/synthetic_workflow.py +406 -0
- desloppify/engine/_work_queue/types.py +221 -0
- desloppify/engine/concerns.py +13 -0
- desloppify/engine/detectors/__init__.py +7 -0
- desloppify/engine/detectors/_flat_dirs/config.py +125 -0
- desloppify/engine/detectors/_flat_dirs/detect.py +149 -0
- desloppify/engine/detectors/_flat_dirs/entries.py +166 -0
- desloppify/engine/detectors/_flat_dirs/stats.py +53 -0
- desloppify/engine/detectors/base.py +73 -0
- desloppify/engine/detectors/complexity.py +84 -0
- desloppify/engine/detectors/coupling.py +235 -0
- desloppify/engine/detectors/coverage/__init__.py +2 -0
- desloppify/engine/detectors/coverage/mapping.py +256 -0
- desloppify/engine/detectors/coverage/mapping_analysis.py +253 -0
- desloppify/engine/detectors/coverage/mapping_imports.py +152 -0
- desloppify/engine/detectors/dupes.py +470 -0
- desloppify/engine/detectors/flat_dirs.py +24 -0
- desloppify/engine/detectors/gods.py +30 -0
- desloppify/engine/detectors/graph.py +163 -0
- desloppify/engine/detectors/jscpd_adapter.py +306 -0
- desloppify/engine/detectors/large.py +36 -0
- desloppify/engine/detectors/naming.py +91 -0
- desloppify/engine/detectors/orphaned.py +193 -0
- desloppify/engine/detectors/passthrough.py +59 -0
- desloppify/engine/detectors/patterns/__init__.py +2 -0
- desloppify/engine/detectors/patterns/security.py +231 -0
- desloppify/engine/detectors/review_coverage.py +290 -0
- desloppify/engine/detectors/security/detector.py +60 -0
- desloppify/engine/detectors/security/filters.py +28 -0
- desloppify/engine/detectors/security/rules.py +201 -0
- desloppify/engine/detectors/security/scanner.py +30 -0
- desloppify/engine/detectors/signature.py +166 -0
- desloppify/engine/detectors/single_use.py +91 -0
- desloppify/engine/detectors/test_coverage/_issue_gaps.py +87 -0
- desloppify/engine/detectors/test_coverage/_issue_generation.py +84 -0
- desloppify/engine/detectors/test_coverage/_issue_quality.py +169 -0
- desloppify/engine/detectors/test_coverage/detector.py +87 -0
- desloppify/engine/detectors/test_coverage/discovery.py +126 -0
- desloppify/engine/detectors/test_coverage/heuristics.py +78 -0
- desloppify/engine/detectors/test_coverage/io.py +61 -0
- desloppify/engine/detectors/test_coverage/issues.py +27 -0
- desloppify/engine/detectors/test_coverage/metrics.py +41 -0
- desloppify/engine/hook_registry.py +80 -0
- desloppify/engine/plan_ops.py +89 -0
- desloppify/engine/plan_state.py +99 -0
- desloppify/engine/plan_triage.py +184 -0
- desloppify/engine/planning/__init__.py +87 -0
- desloppify/engine/planning/dimension_rows.py +59 -0
- desloppify/engine/planning/helpers.py +16 -0
- desloppify/engine/planning/queue_policy.py +98 -0
- desloppify/engine/planning/render.py +290 -0
- desloppify/engine/planning/render_items.py +98 -0
- desloppify/engine/planning/render_sections.py +228 -0
- desloppify/engine/planning/scan.py +162 -0
- desloppify/engine/planning/scorecard_dimensions.py +229 -0
- desloppify/engine/planning/scorecard_policy.py +113 -0
- desloppify/engine/planning/scorecard_projection.py +240 -0
- desloppify/engine/planning/select.py +38 -0
- desloppify/engine/planning/types.py +34 -0
- desloppify/engine/policy/__init__.py +2 -0
- desloppify/engine/policy/zones.py +325 -0
- desloppify/engine/policy/zones_data.py +57 -0
- desloppify/engine/scoring.py +10 -0
- desloppify/engine/work_queue.py +27 -0
- desloppify/intelligence/__init__.py +0 -0
- desloppify/intelligence/integrity.py +127 -0
- desloppify/intelligence/narrative/_constants.py +45 -0
- desloppify/intelligence/narrative/action_engine.py +151 -0
- desloppify/intelligence/narrative/action_engine_routing.py +190 -0
- desloppify/intelligence/narrative/action_models.py +74 -0
- desloppify/intelligence/narrative/action_tools.py +79 -0
- desloppify/intelligence/narrative/core.py +145 -0
- desloppify/intelligence/narrative/dimensions.py +218 -0
- desloppify/intelligence/narrative/headline.py +172 -0
- desloppify/intelligence/narrative/phase.py +103 -0
- desloppify/intelligence/narrative/reminders.py +74 -0
- desloppify/intelligence/narrative/reminders_rules_followup.py +259 -0
- desloppify/intelligence/narrative/reminders_rules_primary.py +259 -0
- desloppify/intelligence/narrative/signals.py +297 -0
- desloppify/intelligence/narrative/strategy_engine.py +82 -0
- desloppify/intelligence/narrative/strategy_engine_hints.py +89 -0
- desloppify/intelligence/narrative/strategy_engine_lanes.py +205 -0
- desloppify/intelligence/narrative/types.py +157 -0
- desloppify/intelligence/review/__init__.py +158 -0
- desloppify/intelligence/review/_context/__init__.py +1 -0
- desloppify/intelligence/review/_context/models.py +197 -0
- desloppify/intelligence/review/_context/patterns.py +70 -0
- desloppify/intelligence/review/_context/structure.py +132 -0
- desloppify/intelligence/review/_prepare/__init__.py +1 -0
- desloppify/intelligence/review/_prepare/helpers.py +41 -0
- desloppify/intelligence/review/_prepare/issue_history.py +233 -0
- desloppify/intelligence/review/_prepare/remediation_engine.py +218 -0
- desloppify/intelligence/review/context.py +166 -0
- desloppify/intelligence/review/context_builder.py +179 -0
- desloppify/intelligence/review/context_holistic/budget/__init__.py +59 -0
- desloppify/intelligence/review/context_holistic/budget/analysis.py +53 -0
- desloppify/intelligence/review/context_holistic/budget/axes.py +223 -0
- desloppify/intelligence/review/context_holistic/budget/patterns_enums.py +158 -0
- desloppify/intelligence/review/context_holistic/budget/patterns_types.py +193 -0
- desloppify/intelligence/review/context_holistic/budget/patterns_wrappers.py +169 -0
- desloppify/intelligence/review/context_holistic/budget/scan.py +283 -0
- desloppify/intelligence/review/context_holistic/clusters/__init__.py +1 -0
- desloppify/intelligence/review/context_holistic/clusters/accessors.py +33 -0
- desloppify/intelligence/review/context_holistic/clusters/complexity.py +85 -0
- desloppify/intelligence/review/context_holistic/clusters/consistency.py +67 -0
- desloppify/intelligence/review/context_holistic/clusters/dependency.py +93 -0
- desloppify/intelligence/review/context_holistic/clusters/error_state.py +71 -0
- desloppify/intelligence/review/context_holistic/clusters/organization.py +49 -0
- desloppify/intelligence/review/context_holistic/clusters/security.py +80 -0
- desloppify/intelligence/review/context_holistic/mechanical.py +192 -0
- desloppify/intelligence/review/context_holistic/orchestrator.py +149 -0
- desloppify/intelligence/review/context_holistic/readers.py +21 -0
- desloppify/intelligence/review/context_holistic/selection/__init__.py +67 -0
- desloppify/intelligence/review/context_holistic/selection/contexts.py +286 -0
- desloppify/intelligence/review/context_signals/__init__.py +1 -0
- desloppify/intelligence/review/context_signals/ai.py +72 -0
- desloppify/intelligence/review/context_signals/auth.py +325 -0
- desloppify/intelligence/review/context_signals/migration.py +170 -0
- desloppify/intelligence/review/dimensions/__init__.py +50 -0
- desloppify/intelligence/review/dimensions/data.py +207 -0
- desloppify/intelligence/review/dimensions/holistic.py +7 -0
- desloppify/intelligence/review/dimensions/lang.py +62 -0
- desloppify/intelligence/review/dimensions/metadata.py +133 -0
- desloppify/intelligence/review/dimensions/metadata_legacy.py +19 -0
- desloppify/intelligence/review/dimensions/selection.py +46 -0
- desloppify/intelligence/review/dimensions/validation.py +219 -0
- desloppify/intelligence/review/feedback_contract.py +45 -0
- desloppify/intelligence/review/importing/__init__.py +1 -0
- desloppify/intelligence/review/importing/assessments.py +264 -0
- desloppify/intelligence/review/importing/cache.py +73 -0
- desloppify/intelligence/review/importing/contracts_models.py +99 -0
- desloppify/intelligence/review/importing/contracts_types.py +112 -0
- desloppify/intelligence/review/importing/contracts_validation.py +134 -0
- desloppify/intelligence/review/importing/holistic.py +208 -0
- desloppify/intelligence/review/importing/holistic_cache.py +177 -0
- desloppify/intelligence/review/importing/holistic_issue_flow.py +245 -0
- desloppify/intelligence/review/importing/payload.py +129 -0
- desloppify/intelligence/review/importing/per_file.py +222 -0
- desloppify/intelligence/review/importing/resolution.py +40 -0
- desloppify/intelligence/review/importing/state_helpers.py +18 -0
- desloppify/intelligence/review/issue_merge.py +55 -0
- desloppify/intelligence/review/personas.py +74 -0
- desloppify/intelligence/review/policy.py +160 -0
- desloppify/intelligence/review/prepare.py +262 -0
- desloppify/intelligence/review/prepare_batches_builders.py +209 -0
- desloppify/intelligence/review/prepare_batches_collectors.py +65 -0
- desloppify/intelligence/review/prepare_batches_collectors_quality.py +202 -0
- desloppify/intelligence/review/prepare_batches_collectors_structure.py +199 -0
- desloppify/intelligence/review/prepare_batches_core.py +129 -0
- desloppify/intelligence/review/prepare_holistic_batches.py +136 -0
- desloppify/intelligence/review/prepare_holistic_orchestration.py +268 -0
- desloppify/intelligence/review/prepare_holistic_payload_parts.py +65 -0
- desloppify/intelligence/review/prepare_holistic_scope.py +139 -0
- desloppify/intelligence/review/remediation.py +37 -0
- desloppify/intelligence/review/selection.py +225 -0
- desloppify/intelligence/review/selection_cache.py +53 -0
- desloppify/languages/__init__.py +73 -0
- desloppify/languages/_framework/__init__.py +33 -0
- desloppify/languages/_framework/base/__init__.py +1 -0
- desloppify/languages/_framework/base/lang_config_runtime.py +117 -0
- desloppify/languages/_framework/base/phase_builders.py +106 -0
- desloppify/languages/_framework/base/shared_phases.py +102 -0
- desloppify/languages/_framework/base/shared_phases_helpers.py +198 -0
- desloppify/languages/_framework/base/shared_phases_review.py +726 -0
- desloppify/languages/_framework/base/shared_phases_structural.py +231 -0
- desloppify/languages/_framework/base/smell_contracts.py +123 -0
- desloppify/languages/_framework/base/structural.py +83 -0
- desloppify/languages/_framework/base/types.py +271 -0
- desloppify/languages/_framework/base/types_shared.py +123 -0
- desloppify/languages/_framework/commands/__init__.py +47 -0
- desloppify/languages/_framework/commands/base.py +289 -0
- desloppify/languages/_framework/commands/registry.py +261 -0
- desloppify/languages/_framework/commands/scaffold.py +41 -0
- desloppify/languages/_framework/contract_validation.py +132 -0
- desloppify/languages/_framework/facade_common.py +70 -0
- desloppify/languages/_framework/frameworks/__init__.py +41 -0
- desloppify/languages/_framework/frameworks/detection.py +217 -0
- desloppify/languages/_framework/frameworks/phases.py +169 -0
- desloppify/languages/_framework/frameworks/registry.py +58 -0
- desloppify/languages/_framework/frameworks/specs/__init__.py +5 -0
- desloppify/languages/_framework/frameworks/specs/nextjs.py +557 -0
- desloppify/languages/_framework/frameworks/types.py +87 -0
- desloppify/languages/_framework/generic_parts/__init__.py +1 -0
- desloppify/languages/_framework/generic_parts/parsers.py +338 -0
- desloppify/languages/_framework/generic_parts/tool_factories.py +193 -0
- desloppify/languages/_framework/generic_parts/tool_runner.py +196 -0
- desloppify/languages/_framework/generic_parts/tool_spec.py +76 -0
- desloppify/languages/_framework/generic_support/__init__.py +1 -0
- desloppify/languages/_framework/generic_support/capabilities.py +102 -0
- desloppify/languages/_framework/generic_support/core.py +182 -0
- desloppify/languages/_framework/generic_support/registration.py +158 -0
- desloppify/languages/_framework/generic_support/structural.py +201 -0
- desloppify/languages/_framework/issue_factories.py +290 -0
- desloppify/languages/_framework/node/__init__.py +3 -0
- desloppify/languages/_framework/node/frameworks/__init__.py +13 -0
- desloppify/languages/_framework/node/frameworks/nextjs/__init__.py +58 -0
- desloppify/languages/_framework/node/frameworks/nextjs/info.py +49 -0
- desloppify/languages/_framework/node/frameworks/nextjs/scanners.py +1209 -0
- desloppify/languages/_framework/node/js_text.py +76 -0
- desloppify/languages/_framework/policy.py +29 -0
- desloppify/languages/_framework/registry/__init__.py +57 -0
- desloppify/languages/_framework/registry/discovery.py +193 -0
- desloppify/languages/_framework/registry/registration.py +64 -0
- desloppify/languages/_framework/registry/resolution.py +137 -0
- desloppify/languages/_framework/registry/state.py +135 -0
- desloppify/languages/_framework/review_data/__init__.py +1 -0
- desloppify/languages/_framework/review_data/context_schema.json +75 -0
- desloppify/languages/_framework/review_data/dimensions.json +389 -0
- desloppify/languages/_framework/runtime_support/__init__.py +1 -0
- desloppify/languages/_framework/runtime_support/accessors.py +152 -0
- desloppify/languages/_framework/runtime_support/runtime.py +208 -0
- desloppify/languages/_framework/scaffold_move.py +34 -0
- desloppify/languages/_framework/scope.py +7 -0
- desloppify/languages/_framework/scoped_store.py +107 -0
- desloppify/languages/_framework/structure_validation.py +32 -0
- desloppify/languages/_framework/treesitter/__init__.py +169 -0
- desloppify/languages/_framework/treesitter/_compat_bridge.py +20 -0
- desloppify/languages/_framework/treesitter/_complexity_function_metrics.py +10 -0
- desloppify/languages/_framework/treesitter/_complexity_nesting.py +10 -0
- desloppify/languages/_framework/treesitter/_extractors.py +10 -0
- desloppify/languages/_framework/treesitter/_import_cache.py +10 -0
- desloppify/languages/_framework/treesitter/_import_graph.py +10 -0
- desloppify/languages/_framework/treesitter/_import_resolvers_backend.py +10 -0
- desloppify/languages/_framework/treesitter/_import_resolvers_functional.py +10 -0
- desloppify/languages/_framework/treesitter/_import_resolvers_scripts.py +10 -0
- desloppify/languages/_framework/treesitter/_normalize.py +10 -0
- desloppify/languages/_framework/treesitter/_smells.py +10 -0
- desloppify/languages/_framework/treesitter/_specs.py +10 -0
- desloppify/languages/_framework/treesitter/_specs_compiled.py +10 -0
- desloppify/languages/_framework/treesitter/_specs_functional.py +10 -0
- desloppify/languages/_framework/treesitter/_specs_scripting.py +10 -0
- desloppify/languages/_framework/treesitter/_unused_imports.py +10 -0
- desloppify/languages/_framework/treesitter/analysis/cohesion.py +144 -0
- desloppify/languages/_framework/treesitter/analysis/complexity_callbacks.py +66 -0
- desloppify/languages/_framework/treesitter/analysis/complexity_function_metrics.py +181 -0
- desloppify/languages/_framework/treesitter/analysis/complexity_nesting.py +97 -0
- desloppify/languages/_framework/treesitter/analysis/complexity_shared.py +45 -0
- desloppify/languages/_framework/treesitter/analysis/extractors.py +246 -0
- desloppify/languages/_framework/treesitter/analysis/smells.py +210 -0
- desloppify/languages/_framework/treesitter/analysis/unused_imports.py +515 -0
- desloppify/languages/_framework/treesitter/imports/cache.py +102 -0
- desloppify/languages/_framework/treesitter/imports/graph.py +115 -0
- desloppify/languages/_framework/treesitter/imports/normalize.py +86 -0
- desloppify/languages/_framework/treesitter/imports/resolver_cache.py +32 -0
- desloppify/languages/_framework/treesitter/imports/resolvers_backend.py +189 -0
- desloppify/languages/_framework/treesitter/imports/resolvers_functional.py +252 -0
- desloppify/languages/_framework/treesitter/imports/resolvers_scripts.py +261 -0
- desloppify/languages/_framework/treesitter/phases.py +180 -0
- desloppify/languages/_framework/treesitter/specs/compiled.py +261 -0
- desloppify/languages/_framework/treesitter/specs/compiled_native.py +94 -0
- desloppify/languages/_framework/treesitter/specs/functional.py +158 -0
- desloppify/languages/_framework/treesitter/specs/scripting.py +255 -0
- desloppify/languages/_framework/treesitter/specs/specs.py +108 -0
- desloppify/languages/_framework/treesitter/types.py +33 -0
- desloppify/languages/bash/__init__.py +26 -0
- desloppify/languages/clojure/__init__.py +27 -0
- desloppify/languages/csharp/__init__.py +139 -0
- desloppify/languages/csharp/_helpers.py +19 -0
- desloppify/languages/csharp/_parse_helpers.py +170 -0
- desloppify/languages/csharp/_zones.py +29 -0
- desloppify/languages/csharp/commands.py +135 -0
- desloppify/languages/csharp/deps/__init__.py +2 -0
- desloppify/languages/csharp/deps/cli.py +85 -0
- desloppify/languages/csharp/detectors/__init__.py +4 -0
- desloppify/languages/csharp/detectors/deps.py +277 -0
- desloppify/languages/csharp/detectors/deps_support_metadata.py +103 -0
- desloppify/languages/csharp/detectors/deps_support_projects.py +171 -0
- desloppify/languages/csharp/detectors/deps_support_render.py +113 -0
- desloppify/languages/csharp/detectors/security.py +131 -0
- desloppify/languages/csharp/extractors.py +175 -0
- desloppify/languages/csharp/extractors_classes.py +166 -0
- desloppify/languages/csharp/fixers/__init__.py +4 -0
- desloppify/languages/csharp/move.py +45 -0
- desloppify/languages/csharp/phases.py +195 -0
- desloppify/languages/csharp/review.py +101 -0
- desloppify/languages/csharp/review_data/__init__.py +1 -0
- desloppify/languages/csharp/review_data/dimensions.override.json +22 -0
- desloppify/languages/csharp/test_coverage.py +169 -0
- desloppify/languages/csharp/tests/__init__.py +1 -0
- desloppify/languages/csharp/tests/test_csharp_deps_cli.py +353 -0
- desloppify/languages/csharp/tests/test_csharp_parse_helpers.py +221 -0
- desloppify/languages/csharp/tests/test_smoke.py +2 -0
- desloppify/languages/cxx/__init__.py +128 -0
- desloppify/languages/cxx/_helpers.py +12 -0
- desloppify/languages/cxx/_parse_helpers.py +55 -0
- desloppify/languages/cxx/_zones.py +35 -0
- desloppify/languages/cxx/commands.py +150 -0
- desloppify/languages/cxx/detectors/__init__.py +2 -0
- desloppify/languages/cxx/detectors/deps.py +207 -0
- desloppify/languages/cxx/detectors/security.py +700 -0
- desloppify/languages/cxx/extractors.py +146 -0
- desloppify/languages/cxx/fixers/__init__.py +2 -0
- desloppify/languages/cxx/move.py +63 -0
- desloppify/languages/cxx/phases.py +134 -0
- desloppify/languages/cxx/review.py +96 -0
- desloppify/languages/cxx/review_data/__init__.py +2 -0
- desloppify/languages/cxx/review_data/dimensions.override.json +1 -0
- desloppify/languages/cxx/test_coverage.py +195 -0
- desloppify/languages/cxx/tests/__init__.py +1 -0
- desloppify/languages/cxx/tests/test_commands.py +20 -0
- desloppify/languages/cxx/tests/test_compile_commands.py +78 -0
- desloppify/languages/cxx/tests/test_coverage.py +123 -0
- desloppify/languages/cxx/tests/test_cppcheck_phase.py +148 -0
- desloppify/languages/cxx/tests/test_deps.py +27 -0
- desloppify/languages/cxx/tests/test_end_to_end.py +44 -0
- desloppify/languages/cxx/tests/test_extractors.py +63 -0
- desloppify/languages/cxx/tests/test_init.py +46 -0
- desloppify/languages/cxx/tests/test_move.py +16 -0
- desloppify/languages/cxx/tests/test_review.py +55 -0
- desloppify/languages/cxx/tests/test_security.py +613 -0
- desloppify/languages/cxx/tests/test_structural.py +34 -0
- desloppify/languages/dart/__init__.py +133 -0
- desloppify/languages/dart/commands.py +66 -0
- desloppify/languages/dart/detectors/__init__.py +0 -0
- desloppify/languages/dart/detectors/deps.py +110 -0
- desloppify/languages/dart/extractors.py +151 -0
- desloppify/languages/dart/fixers/__init__.py +0 -0
- desloppify/languages/dart/phases.py +62 -0
- desloppify/languages/dart/pubspec.py +24 -0
- desloppify/languages/dart/review.py +76 -0
- desloppify/languages/dart/review_data/__init__.py +1 -0
- desloppify/languages/dart/review_data/dimensions.override.json +1 -0
- desloppify/languages/dart/test_coverage.py +150 -0
- desloppify/languages/dart/tests/__init__.py +1 -0
- desloppify/languages/dart/tests/test_extractors.py +23 -0
- desloppify/languages/dart/tests/test_init.py +47 -0
- desloppify/languages/elixir/__init__.py +38 -0
- desloppify/languages/elixir/review_data/__init__.py +0 -0
- desloppify/languages/erlang/__init__.py +27 -0
- desloppify/languages/framework.py +122 -0
- desloppify/languages/fsharp/__init__.py +27 -0
- desloppify/languages/gdscript/__init__.py +126 -0
- desloppify/languages/gdscript/commands.py +77 -0
- desloppify/languages/gdscript/detectors/__init__.py +0 -0
- desloppify/languages/gdscript/detectors/deps.py +83 -0
- desloppify/languages/gdscript/extractors.py +110 -0
- desloppify/languages/gdscript/fixers/__init__.py +0 -0
- desloppify/languages/gdscript/patterns.py +12 -0
- desloppify/languages/gdscript/phases.py +57 -0
- desloppify/languages/gdscript/review.py +68 -0
- desloppify/languages/gdscript/review_data/__init__.py +1 -0
- desloppify/languages/gdscript/review_data/dimensions.override.json +1 -0
- desloppify/languages/gdscript/test_coverage.py +95 -0
- desloppify/languages/gdscript/tests/__init__.py +1 -0
- desloppify/languages/gdscript/tests/test_init.py +47 -0
- desloppify/languages/go/__init__.py +126 -0
- desloppify/languages/go/_zones.py +16 -0
- desloppify/languages/go/commands.py +65 -0
- desloppify/languages/go/detectors/__init__.py +0 -0
- desloppify/languages/go/detectors/deps.py +19 -0
- desloppify/languages/go/extractors.py +280 -0
- desloppify/languages/go/fixers/__init__.py +0 -0
- desloppify/languages/go/move.py +22 -0
- desloppify/languages/go/phases.py +69 -0
- desloppify/languages/go/review.py +73 -0
- desloppify/languages/go/review_data/__init__.py +1 -0
- desloppify/languages/go/review_data/dimensions.override.json +1 -0
- desloppify/languages/go/review_data/holistic_dimensions.override.json +1 -0
- desloppify/languages/go/test_coverage.py +158 -0
- desloppify/languages/go/tests/__init__.py +0 -0
- desloppify/languages/go/tests/test_extractors.py +233 -0
- desloppify/languages/go/tests/test_init.py +83 -0
- desloppify/languages/haskell/__init__.py +28 -0
- desloppify/languages/java/__init__.py +51 -0
- desloppify/languages/javascript/__init__.py +38 -0
- desloppify/languages/javascript/_zones.py +32 -0
- desloppify/languages/javascript/test_coverage.py +308 -0
- desloppify/languages/javascript/tests/__init__.py +0 -0
- desloppify/languages/javascript/tests/test_init.py +113 -0
- desloppify/languages/javascript/tests/test_js_nextjs_framework.py +83 -0
- desloppify/languages/javascript/tests/test_test_coverage.py +207 -0
- desloppify/languages/julia/__init__.py +29 -0
- desloppify/languages/kotlin/__init__.py +28 -0
- desloppify/languages/lua/__init__.py +26 -0
- desloppify/languages/nim/__init__.py +27 -0
- desloppify/languages/ocaml/__init__.py +27 -0
- desloppify/languages/perl/__init__.py +26 -0
- desloppify/languages/php/__init__.py +97 -0
- desloppify/languages/php/test_coverage.py +329 -0
- desloppify/languages/powershell/__init__.py +29 -0
- desloppify/languages/python/__init__.py +170 -0
- desloppify/languages/python/_helpers.py +37 -0
- desloppify/languages/python/_security.py +69 -0
- desloppify/languages/python/_zones.py +26 -0
- desloppify/languages/python/commands.py +226 -0
- desloppify/languages/python/detectors/__init__.py +0 -0
- desloppify/languages/python/detectors/bandit_adapter.py +292 -0
- desloppify/languages/python/detectors/complexity.py +108 -0
- desloppify/languages/python/detectors/coupling_contracts.py +122 -0
- desloppify/languages/python/detectors/deps.py +133 -0
- desloppify/languages/python/detectors/deps_dynamic.py +52 -0
- desloppify/languages/python/detectors/deps_resolution.py +149 -0
- desloppify/languages/python/detectors/dict_keys/__init__.py +24 -0
- desloppify/languages/python/detectors/dict_keys/flow.py +55 -0
- desloppify/languages/python/detectors/dict_keys/schema.py +175 -0
- desloppify/languages/python/detectors/dict_keys/shared.py +89 -0
- desloppify/languages/python/detectors/dict_keys/visitor.py +273 -0
- desloppify/languages/python/detectors/dict_keys/visitor_helpers.py +240 -0
- desloppify/languages/python/detectors/facade.py +109 -0
- desloppify/languages/python/detectors/import_linter_adapter.py +124 -0
- desloppify/languages/python/detectors/mutable_state_ast.py +198 -0
- desloppify/languages/python/detectors/mutable_state_scan.py +130 -0
- desloppify/languages/python/detectors/private_imports.py +165 -0
- desloppify/languages/python/detectors/responsibility_cohesion.py +179 -0
- desloppify/languages/python/detectors/ruff_smells.py +155 -0
- desloppify/languages/python/detectors/smells.py +193 -0
- desloppify/languages/python/detectors/smells_ast/_dispatch.py +137 -0
- desloppify/languages/python/detectors/smells_ast/_helpers.py +107 -0
- desloppify/languages/python/detectors/smells_ast/_node_detectors_basic.py +138 -0
- desloppify/languages/python/detectors/smells_ast/_node_detectors_complexity.py +108 -0
- desloppify/languages/python/detectors/smells_ast/_node_detectors_nesting.py +160 -0
- desloppify/languages/python/detectors/smells_ast/_source_detectors.py +247 -0
- desloppify/languages/python/detectors/smells_ast/_tree_context_callbacks.py +62 -0
- desloppify/languages/python/detectors/smells_ast/_tree_context_paths.py +96 -0
- desloppify/languages/python/detectors/smells_ast/_tree_quality_detectors.py +264 -0
- desloppify/languages/python/detectors/smells_ast/_tree_quality_detectors_types.py +153 -0
- desloppify/languages/python/detectors/smells_ast/_tree_safety_detectors.py +242 -0
- desloppify/languages/python/detectors/smells_ast/_tree_safety_detectors_runtime.py +208 -0
- desloppify/languages/python/detectors/smells_ast/_types.py +57 -0
- desloppify/languages/python/detectors/smells_runtime.py +332 -0
- desloppify/languages/python/detectors/uncalled.py +116 -0
- desloppify/languages/python/detectors/unused.py +224 -0
- desloppify/languages/python/detectors/unused_enums.py +111 -0
- desloppify/languages/python/extractors.py +205 -0
- desloppify/languages/python/extractors_classes.py +194 -0
- desloppify/languages/python/extractors_shared.py +51 -0
- desloppify/languages/python/fixers/__init__.py +4 -0
- desloppify/languages/python/move.py +252 -0
- desloppify/languages/python/phases.py +248 -0
- desloppify/languages/python/phases_quality.py +151 -0
- desloppify/languages/python/phases_runtime.py +221 -0
- desloppify/languages/python/review.py +72 -0
- desloppify/languages/python/review_data/__init__.py +1 -0
- desloppify/languages/python/review_data/dimensions.override.json +21 -0
- desloppify/languages/python/test_coverage.py +175 -0
- desloppify/languages/python/tests/__init__.py +1 -0
- desloppify/languages/python/tests/conftest.py +31 -0
- desloppify/languages/python/tests/test_bandit_adapter.py +99 -0
- desloppify/languages/python/tests/test_py_commands.py +49 -0
- desloppify/languages/python/tests/test_py_complexity.py +187 -0
- desloppify/languages/python/tests/test_py_coupling_contracts.py +66 -0
- desloppify/languages/python/tests/test_py_deps.py +436 -0
- desloppify/languages/python/tests/test_py_dict_keys.py +381 -0
- desloppify/languages/python/tests/test_py_extractors.py +390 -0
- desloppify/languages/python/tests/test_py_facade.py +160 -0
- desloppify/languages/python/tests/test_py_init.py +171 -0
- desloppify/languages/python/tests/test_py_move.py +108 -0
- desloppify/languages/python/tests/test_py_mutable_state.py +252 -0
- desloppify/languages/python/tests/test_py_private_imports.py +54 -0
- desloppify/languages/python/tests/test_py_responsibility_cohesion.py +82 -0
- desloppify/languages/python/tests/test_py_smells.py +7 -0
- desloppify/languages/python/tests/test_py_smells_ast.py +590 -0
- desloppify/languages/python/tests/test_py_smells_ast_perf.py +32 -0
- desloppify/languages/python/tests/test_py_smells_crossfile.py +200 -0
- desloppify/languages/python/tests/test_py_smells_regex.py +168 -0
- desloppify/languages/python/tests/test_py_uncalled.py +338 -0
- desloppify/languages/python/tests/test_py_unused.py +238 -0
- desloppify/languages/r/__init__.py +56 -0
- desloppify/languages/r/detectors/__init__.py +1 -0
- desloppify/languages/r/detectors/smells.py +344 -0
- desloppify/languages/r/detectors/smells_catalog.py +70 -0
- desloppify/languages/r/phases_smells.py +25 -0
- desloppify/languages/r/review_data/__init__.py +1 -0
- desloppify/languages/r/test_coverage.py +158 -0
- desloppify/languages/r/tests/__init__.py +0 -0
- desloppify/languages/r/tests/test_r_air.py +94 -0
- desloppify/languages/r/tests/test_r_smells.py +215 -0
- desloppify/languages/r/tests/test_r_test_coverage.py +163 -0
- desloppify/languages/ruby/__init__.py +54 -0
- desloppify/languages/ruby/tests/__init__.py +0 -0
- desloppify/languages/ruby/tests/test_init.py +116 -0
- desloppify/languages/rust/__init__.py +158 -0
- desloppify/languages/rust/_fixers.py +155 -0
- desloppify/languages/rust/commands.py +286 -0
- desloppify/languages/rust/detectors/__init__.py +35 -0
- desloppify/languages/rust/detectors/_shared.py +829 -0
- desloppify/languages/rust/detectors/api.py +305 -0
- desloppify/languages/rust/detectors/cargo_policy.py +166 -0
- desloppify/languages/rust/detectors/deps.py +71 -0
- desloppify/languages/rust/detectors/safety.py +175 -0
- desloppify/languages/rust/detectors/smells.py +289 -0
- desloppify/languages/rust/detectors/smells_catalog.py +88 -0
- desloppify/languages/rust/extractors.py +204 -0
- desloppify/languages/rust/fixers/__init__.py +1 -0
- desloppify/languages/rust/move.py +45 -0
- desloppify/languages/rust/phases.py +310 -0
- desloppify/languages/rust/phases_smells.py +29 -0
- desloppify/languages/rust/review.py +101 -0
- desloppify/languages/rust/review_data/__init__.py +1 -0
- desloppify/languages/rust/review_data/dimensions.override.json +1 -0
- desloppify/languages/rust/support.py +1036 -0
- desloppify/languages/rust/test_coverage.py +160 -0
- desloppify/languages/rust/tests/__init__.py +1 -0
- desloppify/languages/rust/tests/test_commands.py +38 -0
- desloppify/languages/rust/tests/test_coverage.py +77 -0
- desloppify/languages/rust/tests/test_custom.py +1148 -0
- desloppify/languages/rust/tests/test_deps.py +161 -0
- desloppify/languages/rust/tests/test_extractors.py +116 -0
- desloppify/languages/rust/tests/test_init.py +125 -0
- desloppify/languages/rust/tests/test_phases.py +38 -0
- desloppify/languages/rust/tests/test_review.py +58 -0
- desloppify/languages/rust/tests/test_shared_direct.py +155 -0
- desloppify/languages/rust/tests/test_smells.py +420 -0
- desloppify/languages/rust/tests/test_support.py +112 -0
- desloppify/languages/rust/tests/test_test_coverage.py +167 -0
- desloppify/languages/rust/tests/test_tools.py +839 -0
- desloppify/languages/rust/tools.py +768 -0
- desloppify/languages/scala/__init__.py +28 -0
- desloppify/languages/scss/__init__.py +25 -0
- desloppify/languages/swift/__init__.py +27 -0
- desloppify/languages/typescript/__init__.py +180 -0
- desloppify/languages/typescript/_fixers.py +118 -0
- desloppify/languages/typescript/_zones.py +30 -0
- desloppify/languages/typescript/commands.py +346 -0
- desloppify/languages/typescript/detectors/__init__.py +1 -0
- desloppify/languages/typescript/detectors/concerns.py +104 -0
- desloppify/languages/typescript/detectors/contracts.py +20 -0
- desloppify/languages/typescript/detectors/deprecated.py +231 -0
- desloppify/languages/typescript/detectors/deps/__init__.py +230 -0
- desloppify/languages/typescript/detectors/deps/resolve.py +198 -0
- desloppify/languages/typescript/detectors/deps/runtime.py +56 -0
- desloppify/languages/typescript/detectors/exports.py +47 -0
- desloppify/languages/typescript/detectors/facade.py +57 -0
- desloppify/languages/typescript/detectors/io.py +45 -0
- desloppify/languages/typescript/detectors/knip_adapter.py +132 -0
- desloppify/languages/typescript/detectors/logs.py +136 -0
- desloppify/languages/typescript/detectors/patterns/__init__.py +1 -0
- desloppify/languages/typescript/detectors/patterns/analysis.py +151 -0
- desloppify/languages/typescript/detectors/patterns/catalog.py +52 -0
- desloppify/languages/typescript/detectors/patterns/cli.py +100 -0
- desloppify/languages/typescript/detectors/props.py +113 -0
- desloppify/languages/typescript/detectors/react/__init__.py +1 -0
- desloppify/languages/typescript/detectors/react/cli.py +54 -0
- desloppify/languages/typescript/detectors/react/context.py +60 -0
- desloppify/languages/typescript/detectors/react/hook_bloat.py +219 -0
- desloppify/languages/typescript/detectors/react/state_sync.py +101 -0
- desloppify/languages/typescript/detectors/security/__init__.py +0 -0
- desloppify/languages/typescript/detectors/security/detector.py +93 -0
- desloppify/languages/typescript/detectors/security/entries.py +33 -0
- desloppify/languages/typescript/detectors/security/file_checks.py +190 -0
- desloppify/languages/typescript/detectors/security/line_checks.py +141 -0
- desloppify/languages/typescript/detectors/security/patterns.py +46 -0
- desloppify/languages/typescript/detectors/smells/__init__.py +126 -0
- desloppify/languages/typescript/detectors/smells/assets.py +103 -0
- desloppify/languages/typescript/detectors/smells/catalog.py +190 -0
- desloppify/languages/typescript/detectors/smells/detector_core.py +166 -0
- desloppify/languages/typescript/detectors/smells/detector_flow.py +230 -0
- desloppify/languages/typescript/detectors/smells/detector_safety.py +141 -0
- desloppify/languages/typescript/detectors/smells/helpers.py +275 -0
- desloppify/languages/typescript/detectors/unused.py +250 -0
- desloppify/languages/typescript/detectors/unused_fallback.py +172 -0
- desloppify/languages/typescript/extractors.py +54 -0
- desloppify/languages/typescript/extractors_components.py +183 -0
- desloppify/languages/typescript/extractors_functions.py +217 -0
- desloppify/languages/typescript/fixers/__init__.py +37 -0
- desloppify/languages/typescript/fixers/fixer_io.py +95 -0
- desloppify/languages/typescript/fixers/if_chain.py +68 -0
- desloppify/languages/typescript/fixers/import_rewrite.py +257 -0
- desloppify/languages/typescript/fixers/imports.py +37 -0
- desloppify/languages/typescript/fixers/logs.py +77 -0
- desloppify/languages/typescript/fixers/logs_cleanup.py +258 -0
- desloppify/languages/typescript/fixers/logs_context.py +146 -0
- desloppify/languages/typescript/fixers/params.py +104 -0
- desloppify/languages/typescript/fixers/syntax_scan.py +153 -0
- desloppify/languages/typescript/fixers/useeffect.py +45 -0
- desloppify/languages/typescript/fixers/vars.py +214 -0
- desloppify/languages/typescript/move.py +157 -0
- desloppify/languages/typescript/phases_basic.py +108 -0
- desloppify/languages/typescript/phases_config.py +82 -0
- desloppify/languages/typescript/phases_coupling.py +333 -0
- desloppify/languages/typescript/phases_smells.py +117 -0
- desloppify/languages/typescript/phases_structural.py +221 -0
- desloppify/languages/typescript/plugin_contract.py +39 -0
- desloppify/languages/typescript/review.py +97 -0
- desloppify/languages/typescript/review_data/__init__.py +1 -0
- desloppify/languages/typescript/review_data/dimensions.override.json +22 -0
- desloppify/languages/typescript/syntax/scanner.py +34 -0
- desloppify/languages/typescript/test_coverage.py +323 -0
- desloppify/languages/typescript/tests/__init__.py +1 -0
- desloppify/languages/typescript/tests/smells/test_ts_smell_helpers.py +605 -0
- desloppify/languages/typescript/tests/test_ts_commands.py +60 -0
- desloppify/languages/typescript/tests/test_ts_concerns.py +206 -0
- desloppify/languages/typescript/tests/test_ts_deprecated.py +223 -0
- desloppify/languages/typescript/tests/test_ts_deps.py +713 -0
- desloppify/languages/typescript/tests/test_ts_detector_contracts.py +65 -0
- desloppify/languages/typescript/tests/test_ts_exports_detector.py +150 -0
- desloppify/languages/typescript/tests/test_ts_extractors.py +328 -0
- desloppify/languages/typescript/tests/test_ts_facade.py +99 -0
- desloppify/languages/typescript/tests/test_ts_fixers.py +848 -0
- desloppify/languages/typescript/tests/test_ts_fixers_if_chain_and_useeffect.py +130 -0
- desloppify/languages/typescript/tests/test_ts_init.py +90 -0
- desloppify/languages/typescript/tests/test_ts_logs.py +140 -0
- desloppify/languages/typescript/tests/test_ts_move.py +43 -0
- desloppify/languages/typescript/tests/test_ts_nextjs_framework.py +229 -0
- desloppify/languages/typescript/tests/test_ts_patterns.py +216 -0
- desloppify/languages/typescript/tests/test_ts_phases.py +183 -0
- desloppify/languages/typescript/tests/test_ts_props.py +146 -0
- desloppify/languages/typescript/tests/test_ts_react.py +371 -0
- desloppify/languages/typescript/tests/test_ts_smells.py +510 -0
- desloppify/languages/typescript/tests/test_ts_unused.py +280 -0
- desloppify/languages/zig/__init__.py +27 -0
- desloppify/state.py +7 -0
- desloppify/state_compat.py +126 -0
- desloppify/state_io.py +61 -0
- desloppify/state_score_snapshot.py +44 -0
- desloppify/state_scoring.py +35 -0
- desloppify_community-1.0.dist-info/METADATA +193 -0
- desloppify_community-1.0.dist-info/RECORD +1072 -0
- desloppify_community-1.0.dist-info/WHEEL +5 -0
- desloppify_community-1.0.dist-info/entry_points.txt +2 -0
- desloppify_community-1.0.dist-info/licenses/LICENSE +163 -0
- desloppify_community-1.0.dist-info/top_level.txt +1 -0
desloppify/__init__.py
ADDED
desloppify/__main__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Application-layer packages: CLI, commands, and output surfaces."""
|
|
@@ -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")
|