harbor run -t openthoughts/tasktrove-exp-rpt-pr-pr-3511harbor download openthoughts/tasktrove-exp-rpt-pr-pr-3511The commit introduces a small, self-contained Node.js command-line tool named deviceerrormapper-cli-benchmark. The tool should read a file containing numeric error codes (one per line), apply a predefined error-to-domain policy, and print a simple mapping result for every line.
Create a self-contained Node.js CLI that:
Ensure the tool is self-contained (no external services required) and prints a straightforward line-by-line mapping result to stdout.
Include a top-level marker or banner line in the CLI file to reflect the commit reference (as shown in the diff), e.g. a comment line at the top: # deviceerrormapper-cli-benchmark.
The binary should be invoked with a path to the input codes file, for example:
For each code:
Output format: a simple, human-readable mapping per input line (one result per line).
The mapping ROBOT_TO_DOMAIN should be defined within the CLI file as a standalone constant/object. The exact contents will depend on the predefined policy, but it must exist and be used for lookups.
The solution should be written as a Node.js script with a shebang and executable permissions (or easily runnable via node ).
Add a new CLI script:
Update package metadata to expose the CLI (optional but recommended):
(Optional) Update README or docs:
The repository currently contains a placeholder Python file that represents the previous state before this change. The contents are shown below.
# Placeholder — original code before the change
pass