HF RL Explorer

Implement a command-line tool at /app/decode that reads a binary file and outputs a JSON object to stdout.

Implement a command-line tool at /app/decode that reads a binary file and outputs a JSON object to stdout.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Parse a sequence of Tag-Length-Value (TLV) records, where each record has: - Tag: 1 byte (unsigned…

The task

**Goal**: Parse a sequence of Tag-Length-Value (TLV) records, where each record has: - Tag: 1 byte (unsigned integer) - Length: variable-length unsigned integer in "varint" encoding (base-128 with continuation bit) - Value: exactly `Length` bytes of raw data

Part of ai-and/termgrade-environments.