settings.local.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "permissions": {
  3. "allow": [
  4. "Read(**)",
  5. "Glob(**)",
  6. "Grep(**)",
  7. "Bash(python -m archivebox:*)",
  8. "Bash(ls:*)",
  9. "Bash(xargs:*)",
  10. "Bash(python -c:*)",
  11. "Bash(printf:*)",
  12. "Bash(pkill:*)",
  13. "Bash(python3:*)",
  14. "Bash(sqlite3:*)",
  15. "WebFetch(domain:github.com)",
  16. "Bash(uv add:*)",
  17. "Bash(mkdir:*)",
  18. "Bash(chmod:*)",
  19. "Bash(python -m forum_dl:*)",
  20. "Bash(archivebox manage migrate:*)",
  21. "Bash(cat:*)",
  22. "Bash(python archivebox/plugins/pip/on_Dependency__install_using_pip_provider.py:*)",
  23. "Bash(forum-dl:*)",
  24. "Bash(pip uninstall:*)",
  25. "Bash(python:*)",
  26. "Bash(source .venv/bin/activate)",
  27. "Bash(mv:*)",
  28. "Bash(echo:*)",
  29. "Bash(grep:*)",
  30. "WebFetch(domain:python-statemachine.readthedocs.io)",
  31. "Bash(./bin/run_plugin_tests.sh:*)",
  32. "Bash(done)",
  33. "Bash(coverage erase:*)"
  34. ]
  35. },
  36. "hooks": {
  37. "PreToolUse": [
  38. {
  39. "matcher": "Bash",
  40. "hooks": [
  41. {
  42. "type": "command",
  43. "command": "REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null); if [ -n \"$REPO_ROOT\" ] && [ \"$PWD\" != \"$REPO_ROOT\" ]; then echo \"ERROR: Not in repo root ($REPO_ROOT). Current dir: $PWD\" >&2; exit 1; fi",
  44. "statusMessage": "Checking working directory..."
  45. }
  46. ]
  47. }
  48. ]
  49. }
  50. }