zeromind.preview
Preview exactly what zeromind.install WOULD write, without writing anything. Returns the resolved closure tree — every file and dependency with its local dest_path, byte size, content hash, and why it is included (root / requires / depends_on / conforms_to / tree_child) — plus rollup totals, a truncated flag and a withheld flag (true when part of the graph was left out: it lives in a world you cannot read, or its world no longer ships it, and then unshipped lists its guids). What the content references in ANOTHER world is not a node: worlds lists each such world with the commit it is pinned at and every reference site, naming the node that holds it (from) and the asset it resolved to (names). For an entry with a commit, the install brings the named assets in from that world at that commit (nothing when your world already pins that world at that commit). An entry whose commit is null brings nothing: its sites resolve against the world you install into, which must already open that library. A site marked engine_surface brings nothing either: the running engine provides it. Nodes cover what the published reference tables state and nothing more: content whose files reference assets no table recorded (often content published before the engine recorded that kind of reference) previews and installs without them. Use it on the candidate you picked, after reading its code with zm in the engine's bash, to see its footprint before you install it, especially when it pulls in dependencies you did not expect. Needs no connected world.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Destination DIRECTORY the install would use (the asset keeps its own name), used to compute each node's dest_path. e.g. at=/source/combat → /source/combat/<name>. Defaults to /source. | |
| ref | No | Preview the asset at a ref, read as zeromind.install reads it: a commit id, a branch or tag of the asset's world, or one of the asset's own version ids. A ref that names none of these is an error. Omitted or empty, the preview shows what the asset's world ships. | |
| guid | Yes | The root asset guid to preview (from a zeromind.search / zeromind.inspect hit). |