beads/cmd/bd/setup
Steve Yegge 3d484587e3 fix(setup): auto-allowlist bd commands in Claude Code (#511)
Add bd to Claude Code allowedTools when running `bd setup claude` so
that all bd commands (create, update, close, etc.) can run without
requiring per-command approval.

Changes:
- Add addAllowedTool() and removeAllowedTool() helper functions
- InstallClaude() now adds "Bash(bd:*)" to allowedTools
- RemoveClaude() cleans up the allowedTools entry
- Add tests for new functionality

Users who have already run `bd setup claude` can run it again to add
the missing allowedTools entry while keeping their existing hooks.

Fixes #511

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 09:42:52 +11:00
..
aider.go fix(docs): correct bd dep add syntax and semantics 2025-11-29 22:07:00 -08:00
claude.go fix(setup): auto-allowlist bd commands in Claude Code (#511) 2025-12-13 09:42:52 +11:00
claude_test.go fix(setup): auto-allowlist bd commands in Claude Code (#511) 2025-12-13 09:42:52 +11:00
constants.go feat: add context optimization features for AI agents (#297) 2025-11-12 10:48:36 -08:00
cursor.go fix(docs): correct bd dep add syntax and semantics 2025-11-29 22:07:00 -08:00
utils.go Fix: Change file permissions from 0644 to 0600 for security 2025-11-23 20:11:52 -08:00
utils_test.go fix: skip file permission tests on Windows 2025-11-24 22:23:45 -08:00