Write a CLI tool /app/decoder.py that reads a binary file from --input and writes JSON to --output . The…
Write a CLI tool /app/decoder.py that reads a binary file from --input and writes JSON to --output . The…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The tool must decode each record to a JSON object with keys "type" and "value" . The "value" field must be a…
The task
The tool must decode each record to a JSON object with keys `"type"` and `"value"`. The `"value"` field must be a hex string (lowercase, no separator) of the raw value bytes. Records with type=0x00 must be silently skipped (not in output). If multiple records have the same type, they must appear in the output array…
Part of ai-and/termgrade-environments.