Clean up CLI flag plumbing and small duplications
main·
Commit

- convert-sha256 re-registered the four source-auth flags by hand; reuse addSourceAuth, which also carries the secret-leak protection for token flags.
- sync/plan/replicate and bootstrap had identical --map parse loops; extract parseMappings in flags.go.
- Collapse the protocolMode/operationMode intermediate types: the flag types now derive directly from the public gitsync types, removing triple conversions like protocolModeFlag(protocolMode(gitsync.ProtocolMode(mode))).
- The version line format existed in root.go and version.go; move it to versioninfo.String().
- bench: uniqueStrings hand-rolled slices.Compact.
- sha256convert: the resolveCacheEntry type had been inserted between resolveMessageRef and its doc comment, silently reattaching the comment to the wrong declaration.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: 6a45cb3266a7
Checkpoints
/goal simplify this repo, make sure to de-slop it continue until you are happy, make sure to backfill tests and validate any significant change. The output of this should be a PR with green CI, review
Claude CodeOpus 4.8[1m]
View sessionCheckpoint 1