← Commit history

adom-aiflow-pcbway 0.1.2: upload files with pup_upload_file

Colby Knox ·a3be9a52c8 · ·parent 8f2c3ed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 files changed +6−4
Cargo.lock+1−1
@@ -4,7 +4,7 @@ version = 4  [[package]] name = "adom-aiflow-pcbway"-version = "0.1.1"+version = "0.1.2" dependencies = [  "clap",  "serde_json",
Cargo.toml+1−1
@@ -1,6 +1,6 @@ [package] name = "adom-aiflow-pcbway"-version = "0.1.1"+version = "0.1.2" edition = "2021" license = "MIT" [dependencies]
package.json+1−1
@@ -1,7 +1,7 @@ {   "slug": "adom-aiflow-pcbway",   "type": "app",-  "version": "0.1.1",+  "version": "0.1.2",   "title": "AI Flow: PCBWay",   "description": "Prepare PCBWay RFQs, preserve manufacturing gates, track complete vendor quotes and compare assembly costs. MIT Rust CLI with Pup workflow skill.",   "category": "Developer Tools",
page.json+1−1
@@ -1,7 +1,7 @@ {   "slug": "adom-aiflow-pcbway",   "type": "app",-  "version": "0.1.1",+  "version": "0.1.2",   "title": "AI Flow: PCBWay",   "description": "Prepare PCBWay RFQs, preserve manufacturing gates, track complete vendor quotes and compare assembly costs. MIT Rust CLI with Pup workflow skill.",   "category": "Developer Tools",
skills/adom-aiflow-pcbway/SKILL.md+2
@@ -40,6 +40,8 @@ Official requirements: https://www.pcbway.com/assembly-file-requirements.html  Select five boards or the user's requested quantity, correct assembly sides and procurement mode. Request exact MPNs; no unreviewed alternatives. Upload Gerbers, BOM, centroid and assembly instructions through the authorized RFQ flow in the selected surface. Request PCB fabrication, parts/attrition, setup/stencil, assembly and hand soldering separately. Shipping/tax can remain excluded if both quotes do so. Submission of an RFQ is not permission to pay or authorize manufacture. Honor any certification or account action requiring user input. +**Files go in with `pup_upload_file`** (pup 2.0.741 or later): `{selector, filePath}`. `filePath` is a path on the desktop, so `send_files` the file there first and pass where it landed (Downloads). With one file input on the page the selector can be left out; a hidden input is fine. `attached: true` means the page has the file, not that the site has taken it: wait for the site's own answer (JLCPCB shows the layer count and size it detected). Key and password files, AppData, hidden home folders, system folders and network paths are refused (`path_refused`). Check `pup_describe` for the verb first; on an older pup, ask the human to update Adom Bridge or to attach the file themselves, and don't stream the file through `pup_eval`.+ Record `submitted --receipt receipt.json` only after actual vendor acknowledgment. The receipt must contain vendorReference, submittedAt, receiptConfirmed:true and a local evidence file path. A click, upload progress bar, login redirect or prepared draft is not submission. Keep authentication tokens out of evidence.  PCBWay explicitly says its online assembly estimate EXCLUDES boards and components. Record that only as calculator-only or vendor-partial. Complete price arrives after vendor review. Use `quote --facts quote.json`; require quantity, currency, checkedAt, vendorReference, scopeNote, totalBeforeShippingTax, breakdown, includes:{pcb,components,assembly}, exclusions, evidence and kind. A full quote needs all three inclusions true. Every breakdown amount must sum to the total. Use examples/quote.json. Do not fabricate a total from catalog prices or reuse another board's quote.