Fixes two bugs in multi-repo routing scenarios: 1. "invalid issue type: agent" error when creating agent beads - Added EnsureCustomTypes() with two-level caching (in-memory + sentinel file) - CreateAgentBead() now resolves routing target and ensures custom types 2. "could not set role slot: issue not found" warning when setting slots - Added runSlotSet() and runSlotClear() helpers that run bd from correct directory - Slot operations now use the resolved target directory New files: - internal/beads/beads_types.go - routing resolution and custom types logic - internal/beads/beads_types_test.go - unit tests Based on PR #811 by Perttulands, rebased onto current main. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 KiB
18 KiB