Commit Graph
7 Commits
Author SHA1 Message Date
Logan Jennings d507d92acb fix(tools): a region of a script variant falls back to the script variant 2026-10-24 12:36:51 -05:00
Logan Jennings 82d2912831 fix(tools): sync_app does not fall back from a script variant to its base language 2026-10-24 11:56:37 -05:00
Dylan M. Taylor f27ed4bf99 Address review suggestions on sync_app.py 2026-10-24 01:46:41 +00:00
Dylan M. Taylor 7af81a07ee Address SonarCloud findings on tools/sync_app.py
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.
2026-10-23 17:48:09 -04:00
Martin BallandClaude Opus 5.5 911f53f7a8 fix(sync_app): skip @msg templates that can never match
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
2026-10-22 01:10:27 +01:00
Martin BallandClaude Opus 5.5 53a9634e62 chore: ignore __pycache__; PEP 8 spacing in sync_app.py
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B5qjdPbdcyPMikAqXxAAdW
2026-10-22 00:41:08 +01:00
Martin BallandClaude Opus 5.5 80b2520e45 feat(tools): sync_app.py, app catalogs into locales/ by the migration rules
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>
2026-10-22 00:41:08 +01:00