claude-dev-env 8.5.0 → 8.6.1

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 (29) hide show
  1. package/_shared/pr-loop/scripts/pr_loop_shared_constants/terminology_sweep_constants.py +4 -0
  2. package/_shared/pr-loop/scripts/terminology_sweep.py +154 -18
  3. package/_shared/pr-loop/scripts/tests/test_terminology_sweep.py +117 -0
  4. package/bin/cde.mjs +40 -6
  5. package/bin/cde.test.mjs +25 -0
  6. package/commands/fix-followups.md +15 -8
  7. package/hooks/blocking/state_description_blocker.py +230 -90
  8. package/hooks/blocking/test_code_rules_enforcer_duplicate_body_hook_routing.py +23 -25
  9. package/hooks/blocking/test_state_description_blocker.py +43 -0
  10. package/hooks/followup_ledger.py +109 -4
  11. package/hooks/hooks_constants/followup_ledger_constants.py +15 -0
  12. package/hooks/hooks_constants/state_description_blocker_constants.py +5 -1
  13. package/hooks/hooks_constants/test_state_description_blocker_constants.py +85 -0
  14. package/hooks/test_followup_ledger.py +92 -4
  15. package/package.json +1 -1
  16. package/rules/flag-non-breaking-findings.md +35 -2
  17. package/scripts/dev_env_scripts_constants/followup_constants.py +21 -4
  18. package/scripts/followup_cli.py +78 -4
  19. package/scripts/policy_lint/adapter_detectors.py +1 -1
  20. package/scripts/policy_lint/adapter_support.py +11 -15
  21. package/scripts/policy_lint/adapters.py +0 -1
  22. package/scripts/policy_lint/check_catalog.py +44 -0
  23. package/scripts/policy_lint/config/check_catalog_constants.py +59 -0
  24. package/scripts/policy_lint/model.py +4 -1
  25. package/scripts/test_followup_cli.py +116 -2
  26. package/scripts/test_validate_instruction_pairs.py +23 -1
  27. package/scripts/tests/test_policy_lint_rules_check_catalog.py +151 -0
  28. package/scripts/tests/test_policy_lint_rules_engine.py +4 -1
  29. package/scripts/validate_instruction_pairs.py +9 -2
@@ -29,7 +29,7 @@ from dev_env_scripts_constants.followup_constants import (
29
29
  REGULAR_FILE_RULE_ID,
30
30
  SEVERITY_BY_RULE_ID,
31
31
  )
32
- from followup_ledger import FollowupFinding, record_followup_finding
32
+ from followup_ledger import FollowupFinding, head_commit, record_followup_finding
33
33
  from hooks_constants.followup_ledger_constants import SEVERITY_BREAKING
34
34
 
35
35
  class InstructionFinding(NamedTuple):
@@ -358,7 +358,14 @@ def _record_smell(repository_root: Path, finding: InstructionFinding) -> None:
358
358
  """
359
359
  record_followup_finding(
360
360
  repository_root,
361
- FollowupFinding(finding.rule_id, finding.file_path, finding.message),
361
+ FollowupFinding(
362
+ finding.rule_id,
363
+ finding.file_path,
364
+ finding.message,
365
+ finding.rule_id,
366
+ finding.severity,
367
+ head_commit(repository_root),
368
+ ),
362
369
  )
363
370
  logger.warning(RECORDED_SMELL_TEMPLATE, finding.message)
364
371