← Commit history

Publish 3.1.1

AdityaAngajala ·6660d868c5 · ·parent c9dc94a
5 files changed +31−17
SKILL.md+12−9
@@ -203,8 +203,8 @@ python3 scripts/bundle_3d.py check <folder>/<board>.kicad_pcb --page <owner>/<sl    repo and take part in the choice). It prints the recipe, the route, each    source, the files the build does not read, and the problems: `no-recipe`,    `ambiguous`, `overflow`, `board-file-required`, `generated`, `fab-pair`,-   `export-record`, `export-stackup` (a stackup the build's fabrication check-   refuses, item 3), `kind`. Exit 1 on any problem. A `generated` problem+   `export-record`, `export-stackup` (a stackup fab_bundle refuses, item 3),+   `kind`. Exit 1 on any problem. A `generated` problem    names files to delete from the folder (not from the page). Notes it    prints: a fab zip not named for the slug, and ignore files that the CLI    applies when it packs. `--json` gives the same as one object.@@ -238,13 +238,16 @@ python3 scripts/bundle_3d.py check <folder>/<board>.kicad_pcb --page <owner>/<sl    the slug the export used. "source changed since export" means a recorded    file was edited or rewritten after the export: export again. It also    checks `export.json`'s `stackup` (docs/fabrication.md):-   - refused (exit 1): a shape no build can read, such as `"maskColor":-     "green"` where `{"top": "green", "bottom": "green"}` belongs, a-     thickness or layer count that is not a positive number, or a misspelled-     key. The error gives the shape to write. Write the record again with-     `fab_bundle.py create` and a corrected `--stackup` file. (Builds before-     `molecule/11` failed such a record later, in `normalize`, with-     `'str' object has no attribute 'get'`.)+   - refused (exit 1): a shape the record does not allow, such as+     `"maskColor": "green"` where `{"top": "green", "bottom": "green"}`+     belongs, a thickness or layer count that is not a positive number, or a+     misspelled key. The error gives the shape to write. Write the record+     again with `fab_bundle.py create` and a corrected `--stackup` file. The+     build refuses only the shapes it cannot draw (a colour given as one+     string, a colour or finish that is not text, a malformed `#rrggbb`) and+     warns `stackup-shape` about the rest, so fix them here. (Builds before+     `molecule/11` failed a colour given as one string later, in+     `normalize`, with `'str' object has no attribute 'get'`.)    - warned (exit 0, a `warnings` list in its output): a colour or finish      name the board look does not know, or a key no build reads. Names match      exactly, in any case. The warning says which known name is closest
docs/fabrication.md+9−5
@@ -51,11 +51,15 @@ unreleased) drafts a bridge-side writer for the same schema.   value, `"None"` (what KiCad writes when no finish was chosen) and `"Not   specified"` state nothing. -  `fab_bundle.py` refuses (in `create` before it writes anything, in `check`,-  and in the build's `fab-bundle` check) a shape no reader can take: a-  colour given as one string, a side other than `top` or `bottom`, a number-  given as text, a misspelled key such as `maskcolor`, a malformed-  `#rrggbb`. It warns, and the build draws its default there and warns+  `fab_bundle.py` refuses (in `create` before it writes anything, and in+  `check`) a shape the record does not allow: a colour given as one string,+  a side other than `top` or `bottom`, a number given as text, a misspelled+  key such as `maskcolor`, a malformed `#rrggbb`. The build's `fab-bundle`+  check (`molecule/11`) refuses only what no build can draw: a stackup that+  is not an object, a colour that is not `{"top": ..., "bottom": ...}`, a+  colour or finish that is not text, a `#` colour whose first seven+  characters are not `#rrggbb`. It warns `stackup-shape` about the rest and+  builds, as `molecule/10` did, so fix them before the push. It warns, and the build draws its default there and warns   `stackup-values`, about a well-formed value the board look has no colour   or finish for, and about a key no build reads. The board look draws these   mask colours: green, light green, saturated green, red, light red,
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "molecule-publish",-  "version": "3.1.0",+  "version": "3.1.1",   "type": "skill",   "description": "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.",   "tags": [
page.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "molecule-publish",-  "version": "3.1.0",+  "version": "3.1.1",   "type": "skill",   "description": "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.",   "tags": [
scripts/contract.json+8−1
@@ -261,7 +261,14 @@         "id": "fab-bundle",         "level": "fail",         "routes": ["board"],-        "note": "fab_bundle's check of the zip against export.json, and of the record's stackup: a shape no reader can take is refused, naming the shape to write"+        "note": "fab_bundle's check of the zip against export.json. Of the record's stackup it refuses only what no build can draw, naming the shape to write: a stackup that is not an object, a colour that is not {\"top\": ..., \"bottom\": ...}, a top or bottom colour or a finish that is not text, a # colour whose first seven characters are not #rrggbb"+      },+      {+        "stage": "fabrication",+        "id": "stackup-shape",+        "level": "warn",+        "routes": ["board"],+        "note": "the stackup in export.json has a problem that molecule-publish's check refuses before a push and that molecule/10 built; the build reads it as molecule/10 did: a key misspelled or written both ways, a thickness or copper layer count that is not a positive number, a side other than top and bottom, a # colour that is not exactly #rrggbb or #rrggbbaa"       },       { "stage": "fabrication", "id": "fab-layers", "level": "fail", "routes": ["circuit", "board"] },       { "stage": "fabrication", "id": "fab-tier", "level": "fail", "routes": ["circuit", "board"] },