docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
{
"context": "This criteria evaluates how well the engineer uses the metro-memory-fs package's createWriteStream functionality, specifically focusing on the start option for writing at specific byte offsets. The evaluation assesses proper usage of the stream API to implement file patching functionality.",
"type": "weighted_checklist",
"checklist": [
{
"name": "createWriteStream usage",
"description": "Uses createWriteStream from metro-memory-fs to create a writable stream for the target file",
"max_score": 25
},
{
"name": "start option implementation",
"description": "Correctly uses the start option when calling createWriteStream to specify the byte offset where writing should begin",
"max_score": 35
},
{
"name": "Stream writing",
"description": "Properly writes data to the stream using write() method or by piping data, and closes the stream appropriately using end() or by handling the finish event",
"max_score": 25
},
{
"name": "Promise handling",
"description": "Returns a Promise that resolves when the stream has finished writing (handling the 'finish' event) or rejects on errors (handling 'error' event)",
"max_score": 15
}
]
}