claude-dev-env 8.48.5 → 8.48.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-dev-env",
3
- "version": "8.48.5",
3
+ "version": "8.48.6",
4
4
  "description": "Claude Code development standards — rules, hooks, agents, commands, and skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -684,6 +684,11 @@ def _is_code_rules_enforcer_hook(all_hook_record: dict[str, object]) -> bool:
684
684
  )
685
685
 
686
686
 
687
+ def _is_windows_host() -> bool:
688
+ """Report whether hook command paths compare without regard to case."""
689
+ return os.name == "nt"
690
+
691
+
687
692
  def _is_managed_codex_enforcer_hook(
688
693
  all_hook_record: dict[str, object], managed_command: str
689
694
  ) -> bool:
@@ -693,7 +698,7 @@ def _is_managed_codex_enforcer_hook(
693
698
  return False
694
699
  normalized_command = command.replace("\\", path_separator)
695
700
  normalized_managed_command = managed_command.replace("\\", path_separator)
696
- if os.name == "nt":
701
+ if _is_windows_host():
697
702
  return normalized_command.casefold() == normalized_managed_command.casefold()
698
703
  return normalized_command == normalized_managed_command
699
704
 
@@ -1290,7 +1290,7 @@ def test_posix_case_distinct_enforcer_path_remains_foreign(
1290
1290
  target_manifest = _codex_hook_manifest(
1291
1291
  _codex_hook_group(managed_hook, foreign_hook)
1292
1292
  )
1293
- monkeypatch.setattr(materializer.os, "name", "posix")
1293
+ monkeypatch.setattr(materializer, "_is_windows_host", lambda: False)
1294
1294
 
1295
1295
  projected_manifest, _, _ = _publish_codex_hook_fixture(
1296
1296
  source, target, target_manifest
@@ -1315,7 +1315,7 @@ def test_windows_case_variant_enforcer_path_is_managed(
1315
1315
  target_manifest = _codex_hook_manifest(
1316
1316
  _codex_hook_group({**managed_hook, "command": case_variant_command})
1317
1317
  )
1318
- monkeypatch.setattr(materializer.os, "name", "nt")
1318
+ monkeypatch.setattr(materializer, "_is_windows_host", lambda: True)
1319
1319
 
1320
1320
  projected_manifest, _, _ = _publish_codex_hook_fixture(
1321
1321
  source, target, target_manifest