From 9b55c4d95305737a5c32722d6220b59ce3e89288 Mon Sep 17 00:00:00 2001 From: matt wilkie Date: Sat, 29 Nov 2025 01:03:05 -0700 Subject: [PATCH] fix: add countIssuesInJSONLFile wrapper function The upstream main branch has calls to countIssuesInJSONLFile in doctor.go and init.go, but the previous fix removed the function definition. Add it back as a simple wrapper around countJSONLIssues that returns only the count. --- cmd/bd/doctor.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/bd/doctor.go b/cmd/bd/doctor.go index 0d5a0b97..62e607cc 100644 --- a/cmd/bd/doctor.go +++ b/cmd/bd/doctor.go @@ -1514,6 +1514,13 @@ func countJSONLIssues(jsonlPath string) (int, map[string]int, error) { return count, prefixes, nil } +// countIssuesInJSONLFile counts the number of valid issues in a JSONL file. +// This is a wrapper around countJSONLIssues that returns only the count. +func countIssuesInJSONLFile(jsonlPath string) int { + count, _, _ := countJSONLIssues(jsonlPath) + return count +} + func checkPermissions(path string) doctorCheck { beadsDir := filepath.Join(path, ".beads")