feat: add events JSONL export (opt-in via events.export config) #1305
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
GetAllEventsSince(ctx, sinceID)to the Storage interface with SQLite, Dolt, and Memory implementationsexportEventsToJSONLwhich appends new events as JSON lines using a high-water mark (events_last_exported_idmetadata)events.exportconfig key (opt-in)events.jsonlto git sync file list--eventsand--events-resetflags tobd exportcommandConfiguration
Enable with
events.export: truein.beads/config.yaml. Thebd export --eventsflag works regardless of config.Test plan
go build ./...passesgo test ./internal/storage/...passes (all backends)TestGetAllEventsSinceReturnsAllColumnsverifies all columns are returnedevents.export: true, create/update issues, verify events.jsonl is populatedbd export --eventsworks without config setbd export --events-resetclears state and truncates fileTickets: bd-w9f, bd-8fq, bd-w9w, bd-1ai, bd-2qd, bd-b22, bd-mmc, bd-3pc
🤖 Generated with Claude Code