methodproof 0.4.4__tar.gz → 0.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. {methodproof-0.4.4 → methodproof-0.4.5}/PKG-INFO +1 -1
  2. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/__init__.py +1 -1
  3. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/install.py +20 -8
  4. {methodproof-0.4.4 → methodproof-0.4.5}/pyproject.toml +1 -1
  5. {methodproof-0.4.4 → methodproof-0.4.5}/.github/workflows/ci.yml +0 -0
  6. {methodproof-0.4.4 → methodproof-0.4.5}/.gitignore +0 -0
  7. {methodproof-0.4.4 → methodproof-0.4.5}/CHANGELOG.md +0 -0
  8. {methodproof-0.4.4 → methodproof-0.4.5}/LICENSE +0 -0
  9. {methodproof-0.4.4 → methodproof-0.4.5}/README.md +0 -0
  10. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/__main__.py +0 -0
  11. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/agents/__init__.py +0 -0
  12. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/agents/base.py +0 -0
  13. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/agents/music.py +0 -0
  14. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/agents/terminal.py +0 -0
  15. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/agents/watcher.py +0 -0
  16. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/analysis.py +0 -0
  17. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/bridge.py +0 -0
  18. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/cli.py +0 -0
  19. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/config.py +0 -0
  20. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/crypto.py +0 -0
  21. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/graph.py +0 -0
  22. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hook.py +0 -0
  23. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/__init__.py +0 -0
  24. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/claude_code.py +0 -0
  25. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/claude_code.sh +0 -0
  26. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/cline_hook.sh +0 -0
  27. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/codex_hook.sh +0 -0
  28. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/gemini_hook.sh +0 -0
  29. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/kiro_hook.sh +0 -0
  30. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/mcp_register.py +0 -0
  31. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/openclaw/HOOK.md +0 -0
  32. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/openclaw/handler.ts +0 -0
  33. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/openclaw_install.py +0 -0
  34. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/opencode_plugin.js +0 -0
  35. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/hooks/wrappers.py +0 -0
  36. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/integrity.py +0 -0
  37. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/live.py +0 -0
  38. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/mcp.py +0 -0
  39. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/proxy.py +0 -0
  40. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/proxy_daemon.py +0 -0
  41. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/repos.py +0 -0
  42. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/skills/methodproof/SKILL.md +0 -0
  43. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/store.py +0 -0
  44. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/sync.py +0 -0
  45. {methodproof-0.4.4 → methodproof-0.4.5}/methodproof/viewer.py +0 -0
  46. {methodproof-0.4.4 → methodproof-0.4.5}/test_windows_compat.py +0 -0
  47. {methodproof-0.4.4 → methodproof-0.4.5}/tests/__init__.py +0 -0
  48. {methodproof-0.4.4 → methodproof-0.4.5}/tests/test_analysis.py +0 -0
  49. {methodproof-0.4.4 → methodproof-0.4.5}/tests/test_graph.py +0 -0
  50. {methodproof-0.4.4 → methodproof-0.4.5}/tests/test_hooks.py +0 -0
  51. {methodproof-0.4.4 → methodproof-0.4.5}/tests/test_live.py +0 -0
  52. {methodproof-0.4.4 → methodproof-0.4.5}/tests/test_openclaw_hooks.py +0 -0
  53. {methodproof-0.4.4 → methodproof-0.4.5}/tests/test_store.py +0 -0
  54. {methodproof-0.4.4 → methodproof-0.4.5}/tests/test_wrappers.py +0 -0
  55. {methodproof-0.4.4 → methodproof-0.4.5}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: methodproof
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: See how you code. Capture and visualize your engineering process.
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,3 +1,3 @@
1
1
  """MethodProof — see how you code."""
2
2
 
3
- __version__ = "0.4.4"
3
+ __version__ = "0.4.5"
@@ -91,15 +91,27 @@ def install() -> str | None:
91
91
  hooks[event] = [{"matcher": "", "hooks": [entry]}]
92
92
  changed = True
93
93
  else:
94
- # Check if our hook is already installed
95
- existing_cmds = [
96
- h.get("command", "")
97
- for group in hooks[event]
98
- for h in group.get("hooks", [])
99
- ]
100
- if script not in existing_cmds:
101
- hooks[event].append({"matcher": "", "hooks": [entry]})
94
+ # Remove any stale methodproof hooks (different install path)
95
+ cleaned = []
96
+ has_current = False
97
+ for group in hooks[event]:
98
+ group_hooks = []
99
+ for h in group.get("hooks", []):
100
+ cmd = h.get("command", "")
101
+ if "methodproof" in cmd:
102
+ if cmd == script:
103
+ has_current = True
104
+ group_hooks.append(h)
105
+ else:
106
+ changed = True # dropping stale entry
107
+ else:
108
+ group_hooks.append(h)
109
+ if group_hooks:
110
+ cleaned.append({**group, "hooks": group_hooks})
111
+ if not has_current:
112
+ cleaned.append({"matcher": "", "hooks": [entry]})
102
113
  changed = True
114
+ hooks[event] = cleaned
103
115
 
104
116
  if changed:
105
117
  settings["hooks"] = hooks
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "methodproof"
3
- version = "0.4.4"
3
+ version = "0.4.5"
4
4
  description = "See how you code. Capture and visualize your engineering process."
5
5
  requires-python = ">=3.11"
6
6
  dependencies = ["watchdog>=4.0", "websocket-client>=1.7"]
File without changes
File without changes
File without changes
File without changes
File without changes