evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "Evaluates use of cacache's digest-addressable read APIs to fetch, stream, and copy cached content for a provided integrity digest without relying on key-based lookups. Points focus on correct selection of byDigest helpers and preserving integrity/size semantics during reads.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Digest fetch",
"description": "Implements buffered reads with `cacache.get.byDigest`, returning data/metadata/integrity/size and surfacing not-found errors without falling back to key-based `get`.",
"max_score": 30
},
{
"name": "Digest stream",
"description": "Streams content via `cacache.get.stream.byDigest`, piping data from the returned stream and handling end/error events rather than manual file reads.",
"max_score": 25
},
{
"name": "Digest copy",
"description": "Copies content using `cacache.get.copy.byDigest` (or equivalent) to the target path and preserves reported size/integrity instead of manually reading/writing files.",
"max_score": 25
},
{
"name": "Digest-only addressing",
"description": "Avoids key-based cache operations; all reads and copies are addressed solely by the provided integrity digest, optionally reusing `memoize` options from cacache APIs.",
"max_score": 20
}
]
}