fm.teal.alpha.feed.play lexicon.
refactor: make client agent string conditional on debug mode
Make the client agent string simpler in production and more detailed
in debug mode:
- Normal mode: 'malachite/v0.6.0'
- Debug mode: 'malachite/v0.6.0 (platform; Node/version)'
Changes:
- Add optional `debug` parameter to `buildClientAgent()`
- Remove static `CLIENT_AGENT` from config object
- Add `debug` parameter to conversion functions:
- `convertToPlayRecord()` (csv.ts)
- `convertSpotifyToPlayRecord()` (spotify.ts)
- `parseCombinedExports()` (merge.ts)
- Wire verbose flag through CLI to control debug mode
- Remove `CLIENT_AGENT` from Config interface
The platform and Node.js version are now only included when running
with the -v/--verbose flag, making it easier to identify records
created during debugging while keeping production records cleaner.