Split the high-cognitive-complexity functions (fix, read_app, sync,
main) into small helpers; pass the argument-injection and regex
code smells with sys.argv-independent git() and a PLURAL constant.
Mirrors the checker's check_template (#14): an unclosed {, two
placeholders in a row, or no literal text. Without it a VectorCraft
sync re-adds the dead 'Packaged {n} file(s) in {folder}{note}' row.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B5qjdPbdcyPMikAqXxAAdW
T3 of the app-wiring plan. Applies what an app changed between the last
synced SHA and --ref (merge-base three-way, so a stale branch never reverts
main), writes only to locales/<l>/<app>.tsv, never common.tsv. --check runs
the round trip. Stdlib only; tests in tools/test_sync_app.py.
docs/integration.md: the two-PR flow, cutover and catch-up before a pin
bump; clone URL now storytold/craft-i18n.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>