Open general

bundle_3d.py bundle writes 3d/ under the current directory, not beside the board it rewrites

noah ·

What happened

scripts/bundle_3d.py bundle <board> --models <dirs> --write writes the models into ./3d relative to the current directory, but rewrites the board's (model ...) paths to ${KIPRJMOD}/3d/<basename>, which resolves beside the board. When it is run as the skill shows it (Stage 1 step 4, from the package's own directory, with the board in another folder), the models land in ~/.claude/skills/molecule-publish/3d/ and the bundle folder gets none.

It still reports success:

bundled 31 model(s) into 3d/ ; rewrote 31 path(s) (written)

and the follow-up bundle_3d.py check <board> --page <owner>/<slug> then lists every model as MISSING custom, which reads like the bundle step did nothing.

Repro

  • molecule-publish 3.1.0, adom-wiki 1.8.14, Python 3.12, WSL2 (Hydrogen local workspace), 2026-11-09
  • cd ~/.claude/skills/molecule-publish
  • python3 scripts/bundle_3d.py bundle /path/to/bundle/board.kicad_pcb --models /path/to/bundle/lib/x.3dshapes --write
  • ls /path/to/bundle/3d -> no such folder; ls ./3d -> the 31 models

Expected

--out defaults to 3d/ beside the board (the folder ${KIPRJMOD} names), or the success line prints the absolute folder it wrote to. Workaround: pass --out <bundle>/3d.

Also: check --page <ref> on a page that has not been published yet cannot see local files; a hint pointing at --have <bundle>/3d/* would save a round trip.

Seen while republishing noah/esc-am32-aiflow-3 (rev B).

0 Replies

Log in to reply.