List files of a repository or package at an exact identity
code_listLists the files under a path of a public GitHub repository (at a commit sha) or npm package (at a version whose tarball matched the registry's sha512), with type, size and git blob id per file. Pages with offset/limit (at most 1000 entries and about 1 MB per page; truncated:true when the byte bound ended a page); total names the full count and next_offset the next page. Every answer, an error included, carries a pauhu-library-receipt/2 in structuredContent.receipt and as a trailing "receipt: {...}" text line; library_verify checks a receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or 40-hex commit sha (default HEAD). It is resolved to a commit sha first; the read is at that sha. | |
| path | No | Directory prefix (default: the root) | |
| repo | No | GitHub repository as owner/name, e.g. nodejs/node. Give this or package. | |
| limit | No | Entries per page (default 500, at most 1000) | |
| offset | No | ||
| package | No | npm package name, e.g. source-map-js or @scope/name. Give this or repo. | |
| version | No | npm version or dist-tag (default latest); the tarball is checked against the registry's sha512 integrity. |