diff --git a/media/cover.png b/media/cover.png index 057d053..ab2b4f8 100644 Binary files a/media/cover.png and b/media/cover.png differ diff --git a/my-registry/README.md b/my-registry/README.md index 1a1134d..8e29aad 100644 --- a/my-registry/README.md +++ b/my-registry/README.md @@ -8,12 +8,11 @@ own tree, not an opaque package boundary. ![Every model](https://medieval.crt.fyi/models.png) -```sh -bunx vibe3d add @medieval-kit/wooden-barrel -bunx vibe3d add @medieval-kit -``` +## Install -Configure `models.json` first so the namespace resolves: +Point `models.json` at the registry. This step is not optional and it is not +last: `vibe3d add` resolves `@medieval-kit` through this map and stops with +`Registry @medieval-kit is not configured in models.json` if it is missing. ```json { @@ -26,6 +25,13 @@ Configure `models.json` first so the namespace resolves: } ``` +Then take one model, or the lot: + +```sh +bunx vibe3d add @medieval-kit/wooden-barrel +bunx vibe3d add @medieval-kit +``` + ## Models 37 models and one shared lib. Addresses are `@medieval-kit/`. This table is diff --git a/scripts/build-cover.ts b/scripts/build-cover.ts index 659dc96..92bcd17 100644 --- a/scripts/build-cover.ts +++ b/scripts/build-cover.ts @@ -100,8 +100,15 @@ fillText(card, mono, 'Procedural lowpoly props for three.js. Install the source, // The install line is the whole point of a source registry, so it is set as // something you could type rather than as one more sentence about it. +// +// The bare namespace and not `@medieval-kit/`. Both are valid +// addresses, but this one resolves through the registry's `defaultItem` and +// installs the whole kit, which is what someone reading a card of the whole +// kit is being offered. It is also the shorter promise: a card has room for a +// command but not for the `models.json` entry the command needs first, and +// naming one arbitrary model implies a precision the card cannot deliver. const prompt = fillText(card, mono, '$ ', { x: left, y: 118, size: 16, colour: AMBER }) -fillText(card, mono, `bunx vibe3d add @medieval-kit/${ids[0]}`, { x: prompt, y: 118, size: 16, colour: TEXT }) +fillText(card, mono, 'bunx vibe3d add @medieval-kit', { x: prompt, y: 118, size: 16, colour: TEXT }) // Counted, never typed. const count = `${ids.length} models`