beads/cmd/bd/setup
grip b4118e9f60 fix(setup): avoid null values in Claude settings hooks (GH#955)
When removing all hooks from an event, the key was being set to null
instead of being deleted. Claude Code expects arrays, not null values,
causing startup failures with 'Expected array, but received null'.

Changes:
- removeHookCommand now deletes the event key when no hooks remain
- installClaude cleans up any existing null values from buggy removal
- Added tests for null value prevention and cleanup

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 23:07:46 -08:00
..
aider.go fix(docs): correct bd dep add syntax and semantics 2025-11-29 22:07:00 -08:00
aider_test.go Add tests for setup package (28.4% → 53.8% coverage) 2025-12-23 22:40:16 -08:00
claude.go fix(setup): avoid null values in Claude settings hooks (GH#955) 2026-01-09 23:07:46 -08:00
claude_test.go fix(setup): avoid null values in Claude settings hooks (GH#955) 2026-01-09 23:07:46 -08: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
cursor_test.go Add tests for setup package (28.4% → 53.8% coverage) 2025-12-23 22:40:16 -08:00
exit.go test: refactor factory setup for coverage (#790) 2025-12-29 14:15:56 -08:00
factory.go fix: Add nolint comments for gosec/errcheck/unparam warnings 2025-12-29 14:39:43 -08:00
factory_test.go test: refactor factory setup for coverage (#790) 2025-12-29 14:15:56 -08:00
gemini.go feat: add bd setup gemini for Gemini CLI integration (#845) 2026-01-02 00:02:38 -08:00
gemini_test.go test: add unit tests for bd setup gemini 2026-01-02 00:19:14 -08:00
setup_test_helpers.go test: refactor factory setup for coverage (#790) 2025-12-29 14:15:56 -08:00
utils.go fix(setup): preserve symlinks in atomicWriteFile 2025-12-20 20:15:55 -05:00
utils_test.go fix(setup): preserve symlinks in atomicWriteFile 2025-12-20 20:15:55 -05:00