by adom
Publish molecule sources to the Adom wiki (STEP, board, schematic, <slug>-fab.zip, export.json); the wiki's 3D model registry builds the GLB, footprint and symbol. Checks the bundle the way the registry does, publishes private, waits for the build, sets the hero from the built model, then makes the page public. Board mode still converts plain boards. Also writes APM render assets and component dependencies. Companion to adom-wiki model import.
Write the dependency tree (component deps) into package.json — merge-safe
Part of #1.
APM lists a board/molecule's components from package.json.dependencies (its board_deps reads them and expands one hop, so deps can live directly on the page — no separate library page needed). Molecule/board pages currently have no deps, so APM shows an empty component list.
Requirements
- Map the design's schematic/BOM parts → wiki component slugs (MPN → slug). Reuse the mapping logic in
adom/adom-project-manager→skills/publish-board/kicad_board_bundle.py(note its Value-fallback caveat: value-named symbols likeR_4.3K_0402are NOT real component slugs — resolve the real MPN). - Write them (owner-qualified, e.g.
adom/<slug>) intodependencies. - Merge, never overwrite — preserve the existing
componentblock,hero,tags,model_3d_path, version. Bump version, re-publish (the dep GRAPH comes frompkg publish, notrepo push). - Verify each component page exists; publish/flag any missing ones.
Acceptance
- Opening the board/molecule in APM lists its components, resolved from the deps.
- The molecule's
component/hero/model_3d_pathare intact after the dep write.