Remove FindJSONLPath, FindJSONLInDir, JSONLExport config field, JSONL bootstrap detection, post-merge JSONL import hook, and findActualJSONLFile. Update hasBeadsProjectFiles to check for dolt/ directory instead of JSONL files. Simplify error messages and hook descriptions to remove JSONL references. Update comments across types, storage, and doctor subsystem. 29 files changed, -882/+79 lines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
1 KiB
Go
25 lines
1 KiB
Go
// Package storage defines the interface for issue storage backends.
|
|
package storage
|
|
|
|
// OrphanHandling specifies how to handle issues with missing parent references.
|
|
type OrphanHandling string
|
|
|
|
const (
|
|
// OrphanStrict fails import on missing parent (safest)
|
|
OrphanStrict OrphanHandling = "strict"
|
|
// OrphanResurrect auto-resurrects missing parents from database history
|
|
OrphanResurrect OrphanHandling = "resurrect"
|
|
// OrphanSkip skips orphaned issues with warning
|
|
OrphanSkip OrphanHandling = "skip"
|
|
// OrphanAllow imports orphans without validation (default, works around bugs)
|
|
OrphanAllow OrphanHandling = "allow"
|
|
)
|
|
|
|
// BatchCreateOptions contains options for batch issue creation.
|
|
// This is a backend-agnostic type that can be used by any storage implementation.
|
|
type BatchCreateOptions struct {
|
|
// OrphanHandling specifies how to handle issues with missing parent references
|
|
OrphanHandling OrphanHandling
|
|
// SkipPrefixValidation skips prefix validation for existing IDs (used during import)
|
|
SkipPrefixValidation bool
|
|
}
|