beads/internal/types
Patrick Farrell 46b6b7a45e feat: add --label-pattern and --label-regex flags to bd list
Add support for filtering issues by label patterns:
- --label-pattern "tech-*" uses SQLite's GLOB for glob-style matching
- --label-regex "tech-(debt|legacy)" uses Go's regexp for full regex

Changes:
- types/types.go: Add LabelPattern and LabelRegex to IssueFilter and WorkFilter
- cmd/bd/list.go: Add CLI flags and forward to filter/RPC
- internal/rpc/protocol.go: Add fields to ListArgs
- internal/rpc/server_issues_epics.go: Forward to IssueFilter
- internal/storage/sqlite/queries.go: GLOB filtering + app-level regex
- internal/storage/sqlite/transaction.go: Same for transaction mode
- internal/storage/sqlite/ready.go: Same for GetReadyWork

Glob uses SQLite's native GLOB function for performance. Regex is done
at the application level after query results return, since SQLite lacks
built-in regex support without extensions.

Closes bd-710

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-05 09:55:14 -08:00
..
federation.go feat(types): add FederatedMessage type for inter-town protocol (bd-wkumz.11) 2026-01-20 23:15:14 -08:00
federation_test.go refactor(types): use strings.Contains in federation tests 2026-01-21 10:40:52 -08:00
id_generator.go fix: respect hierarchy.max-depth config setting (GH#995) (#997) 2026-01-10 13:36:52 -08:00
id_generator_test.go fix: respect hierarchy.max-depth config setting (GH#995) (#997) 2026-01-10 13:36:52 -08:00
lock.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
lock_check.go Address gosec security warnings (bd-102) 2025-10-26 22:48:19 -07:00
lock_check_test.go Fix gosec warnings: tighten file permissions and add exclusions (bd-b47c034e) 2025-11-02 15:39:00 -08:00
lock_test.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
orphans.go fix(orphans): honor --db flag for cross-repo orphan detection (#1200) 2026-01-21 19:52:31 -08:00
process.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
process_test.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
storage_ext.go refactor(rpc): fix leaky abstraction - remove direct sqlite imports (bd-oslm) 2026-01-26 20:28:27 -08:00
types.go feat: add --label-pattern and --label-regex flags to bd list 2026-02-05 09:55:14 -08:00
types_test.go fix(state): allow event type in CreateIssue validation (#1398) 2026-01-30 22:18:44 -08:00