methodproof 0.3.0__tar.gz → 0.3.1__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 (46) hide show
  1. {methodproof-0.3.0 → methodproof-0.3.1}/PKG-INFO +1 -1
  2. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/cli.py +30 -0
  3. {methodproof-0.3.0 → methodproof-0.3.1}/pyproject.toml +1 -1
  4. {methodproof-0.3.0 → methodproof-0.3.1}/.github/workflows/ci.yml +0 -0
  5. {methodproof-0.3.0 → methodproof-0.3.1}/.gitignore +0 -0
  6. {methodproof-0.3.0 → methodproof-0.3.1}/CHANGELOG.md +0 -0
  7. {methodproof-0.3.0 → methodproof-0.3.1}/LICENSE +0 -0
  8. {methodproof-0.3.0 → methodproof-0.3.1}/README.md +0 -0
  9. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/__init__.py +0 -0
  10. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/__main__.py +0 -0
  11. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/agents/__init__.py +0 -0
  12. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/agents/base.py +0 -0
  13. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/agents/music.py +0 -0
  14. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/agents/terminal.py +0 -0
  15. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/agents/watcher.py +0 -0
  16. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/analysis.py +0 -0
  17. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/bridge.py +0 -0
  18. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/config.py +0 -0
  19. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/crypto.py +0 -0
  20. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/graph.py +0 -0
  21. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hook.py +0 -0
  22. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/__init__.py +0 -0
  23. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/claude_code.py +0 -0
  24. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/claude_code.sh +0 -0
  25. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/install.py +0 -0
  26. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/openclaw/HOOK.md +0 -0
  27. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/openclaw/handler.ts +0 -0
  28. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/openclaw_install.py +0 -0
  29. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/hooks/wrappers.py +0 -0
  30. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/integrity.py +0 -0
  31. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/live.py +0 -0
  32. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/mcp.py +0 -0
  33. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/repos.py +0 -0
  34. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/skills/methodproof/SKILL.md +0 -0
  35. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/store.py +0 -0
  36. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/sync.py +0 -0
  37. {methodproof-0.3.0 → methodproof-0.3.1}/methodproof/viewer.py +0 -0
  38. {methodproof-0.3.0 → methodproof-0.3.1}/test_windows_compat.py +0 -0
  39. {methodproof-0.3.0 → methodproof-0.3.1}/tests/__init__.py +0 -0
  40. {methodproof-0.3.0 → methodproof-0.3.1}/tests/test_analysis.py +0 -0
  41. {methodproof-0.3.0 → methodproof-0.3.1}/tests/test_graph.py +0 -0
  42. {methodproof-0.3.0 → methodproof-0.3.1}/tests/test_hooks.py +0 -0
  43. {methodproof-0.3.0 → methodproof-0.3.1}/tests/test_openclaw_hooks.py +0 -0
  44. {methodproof-0.3.0 → methodproof-0.3.1}/tests/test_store.py +0 -0
  45. {methodproof-0.3.0 → methodproof-0.3.1}/tests/test_wrappers.py +0 -0
  46. {methodproof-0.3.0 → methodproof-0.3.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: methodproof
3
- Version: 0.3.0
3
+ Version: 0.3.1
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
@@ -452,6 +452,16 @@ def cmd_start(args: argparse.Namespace) -> None:
452
452
  print("Run `methodproof init` first.")
453
453
  sys.exit(1)
454
454
 
455
+ # Check for new consent categories before recording
456
+ capture = cfg.get("capture", {})
457
+ new_cats = (set(config.STANDARD_CATEGORIES) | {"code_capture"}) - set(capture.keys())
458
+ if new_cats:
459
+ print(f"\n New capture categories available: {', '.join(sorted(new_cats))}")
460
+ print(" Please review your consent settings before recording.\n")
461
+ cfg = _run_consent(cfg)
462
+ config.save(cfg)
463
+ print()
464
+
455
465
  sid = uuid.uuid4().hex
456
466
  watch_dir = os.path.abspath(args.dir or ".")
457
467
  repo_url = args.repo or repos.detect_repo(watch_dir)
@@ -793,6 +803,7 @@ def cmd_update(args: argparse.Namespace) -> None:
793
803
  return
794
804
  if latest == current:
795
805
  print(f"Already up to date (v{current}).")
806
+ _check_consent_drift()
796
807
  return
797
808
  print(f"Updating v{current} -> v{latest}...")
798
809
  import subprocess as sp
@@ -802,10 +813,29 @@ def cmd_update(args: argparse.Namespace) -> None:
802
813
  )
803
814
  if result.returncode == 0:
804
815
  print(f"Updated to v{latest}.")
816
+ _check_consent_drift()
805
817
  else:
806
818
  print(f"Update failed. Try manually: pip install --upgrade methodproof")
807
819
 
808
820
 
821
+ def _check_consent_drift() -> None:
822
+ """If new capture categories exist since last consent, re-run the consent flow."""
823
+ cfg = config.load()
824
+ capture = cfg.get("capture", {})
825
+ known = set(capture.keys())
826
+ current = set(config.STANDARD_CATEGORIES) | {"code_capture"}
827
+ new_categories = current - known
828
+
829
+ if not new_categories:
830
+ return
831
+
832
+ print(f"\n New capture categories available: {', '.join(sorted(new_categories))}")
833
+ print(" Your consent preferences need updating.\n")
834
+ cfg = _run_consent(cfg)
835
+ config.save(cfg)
836
+ print(f"\n{_banner()} settings saved.\n")
837
+
838
+
809
839
  def _get_current_version() -> str:
810
840
  try:
811
841
  from importlib.metadata import version
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "methodproof"
3
- version = "0.3.0"
3
+ version = "0.3.1"
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"]
File without changes
File without changes
File without changes
File without changes
File without changes