Implement a command-line tool /app/collate that reads a UTF-8 log stream from stdin, parses each line…
Implement a command-line tool /app/collate that reads a UTF-8 log stream from stdin, parses each line…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Each line is a log entry with fields separated by the character. - There are EXACTLY 6 fields…
The task
**Input contract:** - Each line is a log entry with fields separated by the `|` character. - There are EXACTLY 6 fields per line: `timestamp|level|user_id|message|duration_ms|tags` - `timestamp`: ISO-8601 string, may end in `Z` OR `+HH:MM` OR `-HH:MM` offset. Fractional seconds (up to 3 decimal places) are optional.…
Part of ai-and/termgrade-environments.