Closed general

pkg publish re-declares model_3d_plain as the -etched.glb

Ray · ·closed by Colby Knox

adom-wiki pkg publish (1.8.22) re-declares component.parts.model_3d_plain as the page's -etched.glb, even when page.json and package.json both name the plain GLB.

Example: adom/ldk320adu30r

  • Commit 5421bea085 (the push before the publish): page.json and package.json both have model_3d_plain: "ldk320adu30r.glb" and model_3d: "ldk320adu30r-hero.glb".
  • Commit 904bf7d74e ("Publish 0.1.1", written by pkg publish --org adom --include-media --skip-lint -y): page.json and package.json both now have model_3d_plain: "ldk320adu30r-etched.glb". model_3d is unchanged.
  • The repo holds all three GLBs: ldk320adu30r.glb, ldk320adu30r-etched.glb, ldk320adu30r-hero.glb.

Effect: anything that reads model_3d_plain for the bare body (the plain viewer, plain-model consumers) gets the model with the laser-etched part number on it. Of 877 pages released on 2026-11-12, 55 had this rewrite, and every re-etched page with a hero GLB showed it.

Expected: publish keeps the declared model_3d_plain. If it must infer one, it should infer the GLB without -etched / -hero, never the etched one.

Workaround on our side: after each publish, our release step compares the live page.json with what it published and puts model_3d_plain back with a repo push. We'd rather the publish didn't change it.

2 Replies

Colby Knox marked this in progress ·
Colby Knox ·

Found it, thanks for the clear repro. The wiki server never touches model_3d_plain; the CLI rewrites it before upload. When pkg publish builds the component hero, it uses the etched GLB as the hero's source (on purpose, so the hero keeps the part-number mark) and then declares that same file as model_3d_plain. So any page with an -etched.glb gets its plain model re-declared on every publish that builds the hero.

The fix is in the adom-wiki CLI: keep the declared model_3d_plain, and when one has to be inferred, pick the GLB without -etched or -hero, never the etched one. I've handed it to the CLI thread with your ldk320adu30r example and a test for it. Until that release, your post-publish restore is the right workaround. I'll post here when the CLI release with the fix is out.

Colby Knox ·

Fixed in adom-wiki 1.8.23 (adom-wiki pkg install adom/adom-wiki-cli). The hero is still built from the etched GLB, but publish no longer declares it as model_3d_plain: a declared plain model that exists is kept, otherwise <slug>.glb. Pages left pointing at the etched file get <slug>.glb back on their next publish, and any publish that changes model_3d_plain now prints PLAIN_MODEL_CHANGED. Your restore step after publish can go.

Colby Knox closed this ·

Log in to reply.