← Commit history

st/cse/ul: pup-bridge#119 (Basic-Auth from the vault on the extension lane), #104 (fetch_url saveTo binary-safe), #120 (trusted input drives reCAPTCHA; visual coordinates; latency-bound grid), measured 2026-09-19

John Lauer ·bcd1281bdb · ·parent efe5584
3 files changed +17−7
skills/componentsearchengine/SKILL.md+9−2
@@ -1,7 +1,7 @@ --- name: electronics-site-componentsearchengine description: >--  Component Search Engine (SamacSys) (componentsearchengine.com, www.samacsys.com): how the site treats AI clients on each access lane (WebFetch, curl, pup, nb, API), the bot defense it runs, the exact failure signatures, and the task recipes. Verified 2026-09-14. Read BEFORE fetching anything from this domain, or when a fetch to it times out, 403s, or shows a challenge page. Trigger words: component search engine, componentsearchengine.com, samacsys.com, componentsearchengine blocked, componentsearchengine datasheet, componentsearchengine product page, componentsearchengine timeout, componentsearchengine access denied.+  Component Search Engine (SamacSys) (componentsearchengine.com, www.samacsys.com): how the site treats AI clients on each access lane (WebFetch, curl, pup, nb, API), the bot defense it runs, the exact failure signatures, and the task recipes. Verified 2026-09-19. Read BEFORE fetching anything from this domain, or when a fetch to it times out, 403s, or shows a challenge page. Trigger words: component search engine, componentsearchengine.com, samacsys.com, componentsearchengine blocked, componentsearchengine datasheet, componentsearchengine product page, componentsearchengine timeout, componentsearchengine access denied. ---  Parent skill: **electronics-sites-skillpack** (the `electronics-sites` root skill has the lane ladder and the symptom table).@@ -31,7 +31,14 @@ Parent skill: **electronics-sites-skillpack** (the `electronics-sites` root skil  ### Search + download -pup works for browsing. **Downloads are HTTP Basic-Auth** (measured 2026-09-19 on `st.componentsearchengine.com/ga/model.php?fmt3d=stp&partID=…`): Chrome's native "Sign in" dialog, not a form. The credential is the free CSE account; keep it in pup's vault as host `componentsearchengine.com` (subdomains `st.`, `ms.`, `nxp.`, `mouser.` all use it). pup is supposed to answer it via `page.authenticate()` / `webRequest.onAuthRequired` — on the extension lane it does not yet (adom/pup-bridge#119), so the dialog stays up and `pup_fetch_url` hangs 40 s. Until then use `nb` (the user's own browser answers the dialog) or the UltraLibrarian route. Manufacturer widgets (ST's CAD Resources tab) embed this site as `<vendor>.componentsearchengine.com/entry_u_newDesign.php?...`; the same URL opens standalone. Format picker: KiCad, Altium, Eagle/Fusion, STEP.+pup works for browsing. **Downloads are HTTP Basic-Auth** (measured 2026-09-19 on `st.componentsearchengine.com/ga/model.php?fmt3d=stp&partID=…`): Chrome's native "Sign in" dialog, not a form. The credential is the free CSE account; keep it in pup's vault as host `componentsearchengine.com` (subdomains `st.`, `ms.`, `nxp.`, `mouser.` all match it by registrable domain: measured, a challenge from `st.` was answered with the `nxp.componentsearchengine.com` entry).++**pup 2.0.645+ answers the challenge from the vault on the extension lane** (adom/pup-bridge#119, fixed 2026-09-19): the worker's `onAuthRequired` asks pup, pup matches the domain, the page loads with no dialog. With no vault entry pup cancels the challenge so nothing blocks the window, and the next `pup_navigate` / `pup_fetch_url` answers `errorCode: no_credential` naming the host and the three ways to supply it (`pup_import_browser_logins`, `pup_vault_sync`, `credential_set`). Nothing hangs any more.++Recipe, proven end to end 2026-09-19 on the extension lane:+1. `pup_open_window {url:"https://st.componentsearchengine.com/entry_u_newDesign.php?mna=STMicroelectronics&mpn=<MPN>&pna=st&vrq=multi&fmt=zip&logo=&lang=en&epm=2"}` (the same URL a manufacturer's CAD Resources widget embeds; it opens standalone). `landed.title` reads "SamacSys Part Preview"; the `partID` is in `#mvDownloadButton` / the page scripts.+2. From THAT tab (the fetch runs in the page, so the tab must be on the CSE origin): `pup_fetch_url {url:"https://st.componentsearchengine.com/ga/model.php?fmt3d=stp&partID=<id>&partner=<Mfr>&tok=0&emb=1&lang=en-GB&pna=<Mfr>", saveTo:"<container path>.zip"}` → `httpStatus 200`, `application/x-zip`, `bytes`, `sha256`, `savedToFilesystem:"container"`. Measured: 1,918,852 bytes with `VL53L5CX/Altium/VL53L5CX.SchLib`, `.PcbLib`, KiCad and the STEP inside.+3. Older pup (before 2.0.645): the dialog stays up; upgrade, or use `nb` (the user's own browser answers it).  ## API / Adom backend lane 
skills/st/SKILL.md+3−3
@@ -1,7 +1,7 @@ --- name: electronics-site-st description: >--  STMicroelectronics (www.st.com, community.st.com, newsroom.st.com, www.st.com/resource (CDN)): how the site treats AI clients on each access lane (WebFetch, curl, pup, nb, API), the bot defense it runs, the exact failure signatures, and the task recipes. Verified 2026-09-14. Read BEFORE fetching anything from this domain, or when a fetch to it times out, 403s, or shows a challenge page. Trigger words: community.st.com, newsroom.st.com, st.com, st.com/resource, stmicroelectronics, st blocked, st datasheet, st product page, st timeout, st access denied.+  STMicroelectronics (www.st.com, community.st.com, newsroom.st.com, www.st.com/resource (CDN)): how the site treats AI clients on each access lane (WebFetch, curl, pup, nb, API), the bot defense it runs, the exact failure signatures, and the task recipes. Verified 2026-09-19. Read BEFORE fetching anything from this domain, or when a fetch to it times out, 403s, or shows a challenge page. Trigger words: community.st.com, newsroom.st.com, st.com, st.com/resource, stmicroelectronics, st blocked, st datasheet, st product page, st timeout, st access denied. ---  Parent skill: **electronics-sites-skillpack** (the `electronics-sites` root skill has the lane ladder and the symptom table).@@ -29,7 +29,7 @@ Parent skill: **electronics-sites-skillpack** (the `electronics-sites` root skil - curl (92) HTTP/2 INTERNAL_ERROR within 100 ms - HTTP 473 from newsroom.st.com to a fetcher - 60 s WebFetch timeout on any www.st.com URL-- Chrome native "Sign in — https://st.componentsearchengine.com" dialog after "Download CAD Models" (Basic-Auth not answered from the vault on the extension lane, #119)+- Chrome native "Sign in — https://st.componentsearchengine.com" dialog after "Download CAD Models": only on pup older than 2.0.645 (the extension lane answers the Basic-Auth from the vault since then, adom/pup-bridge#119). On a current pup that dialog means the vault has no `componentsearchengine.com` entry: the verb answers `no_credential` with the host.  ## Recipes @@ -49,7 +49,7 @@ Rows are STSW-* (software), X-CUBE-* (STM32Cube packs), STEVAL-* / X-NUCLEO-* (b  The **CAD Resources** tab holds NO direct links. It is a supplier widget: "Start your design with UltraLibrarian" / "Start your design with SamacSys" (`a.js-widget-click` inside `#cad-resources-panel`; activate the tab first, the panel elements are hidden until then). SamacSys loads an iframe `https://st.componentsearchengine.com/entry_u_newDesign.php?mna=STMicroelectronics&mpn=<MPN>&pna=st&vrq=multi&fmt=zip&...` showing the symbol, footprint, 3D and a "3D format: STEP (.stp)" + "Download CAD Models" button (`#mvDownloadButton`) — open that URL directly in its own tab, it works outside the widget. -- **SamacSys download = HTTP Basic-Auth** on `st.componentsearchengine.com` (the CSE family). It needs a free SamacSys/CSE account in pup's vault (`credential_list` host `componentsearchengine.com`, any subdomain). **pup 2.0.645+ answers the challenge from the vault on the extension lane** (adom/pup-bridge#119, fixed 2026-09-19): `pup_navigate` to `https://st.componentsearchengine.com/ga/model.php?fmt3d=stp&partID=<id>` (the partID is in the widget's `#mvDownloadButton` / page scripts) and Chrome downloads `LIB_<MPN>.zip` (KiCad + EAGLE + Altium + `3D/<MPN>.stp`) to the desktop's Downloads folder; bring it back with `pull_file`. Known regression in 2.0.645: `pup_fetch_url` returns the zip as `text` and ignores `saveTo`, so use the navigate-then-pull route. Older pup: Chrome's native "Sign in" dialog stays up and nothing downloads; upgrade pup or use the `nb` lane.+- **SamacSys download = HTTP Basic-Auth** on `st.componentsearchengine.com` (the CSE family). It needs a free SamacSys/CSE account in pup's vault (`credential_list` host `componentsearchengine.com`, any subdomain). **pup 2.0.645+ answers the challenge from the vault on the extension lane** (adom/pup-bridge#119, fixed 2026-09-19): `pup_navigate` to `https://st.componentsearchengine.com/ga/model.php?fmt3d=stp&partID=<id>` (the partID is in the widget's `#mvDownloadButton` / page scripts) and Chrome downloads `LIB_<MPN>.zip` (KiCad + EAGLE + Altium + `3D/<MPN>.stp`) to the desktop's Downloads folder; bring it back with `pull_file`. Since pup 2.0.648 (adom/pup-bridge#104) `pup_fetch_url {url, saveTo:<container path>}` from a tab on the CSE origin returns the zip binary-safe (`application/x-zip`, `bytes`, `sha256`) and the CLI writes it straight to the container path (`savedToFilesystem:"container"`); measured 2026-09-19, 1,918,852 bytes, `PK` header, Altium/KiCad/STEP inside. The navigate-then-pull route still works but is no longer needed. Fetch from a tab that is ON `st.componentsearchengine.com` (the part page), not from the birth page or another origin, or the in-page fetch fails cross-origin. Older pup: Chrome's native "Sign in" dialog stays up and nothing downloads; upgrade pup or use the `nb` lane. - **UltraLibrarian route:** same part on `app.ultralibrarian.com` (search `?queryText=<MPN>`); see the ultralibrarian skill — its download is behind a reCAPTCHA (adom/pup-bridge#120) which the AI drives itself. - **myST** (`my.st.com/cas/login`) is a plain form: `pup_login {submit:true, submitReason}` fills + submits from the vault (`vault:my.st.com`). A "does not match our records" reply is a STALE credential, not a pup fault — try the other identity in the vault or `pup_import_browser_logins {hostFilter:["st.com"]}` first. - **No myST login yet? Register one for the Adom user — do not ask them to (measured 2026-09-19, ~2 min, no captcha).**
skills/ultralibrarian/SKILL.md+5−2
@@ -1,7 +1,7 @@ --- name: electronics-site-ultralibrarian description: >--  Ultra Librarian (www.ultralibrarian.com, app.ultralibrarian.com): how the site treats AI clients on each access lane (WebFetch, curl, pup, nb, API), the bot defense it runs, the exact failure signatures, and the task recipes. Verified 2026-09-14. Read BEFORE fetching anything from this domain, or when a fetch to it times out, 403s, or shows a challenge page. Trigger words: app.ultralibrarian.com, ultra librarian, ultralibrarian.com, ultralibrarian blocked, ultralibrarian datasheet, ultralibrarian product page, ultralibrarian timeout, ultralibrarian access denied.+  Ultra Librarian (www.ultralibrarian.com, app.ultralibrarian.com): how the site treats AI clients on each access lane (WebFetch, curl, pup, nb, API), the bot defense it runs, the exact failure signatures, and the task recipes. Verified 2026-09-19. Read BEFORE fetching anything from this domain, or when a fetch to it times out, 403s, or shows a challenge page. Trigger words: app.ultralibrarian.com, ultra librarian, ultralibrarian.com, ultralibrarian blocked, ultralibrarian datasheet, ultralibrarian product page, ultralibrarian timeout, ultralibrarian access denied. ---  Parent skill: **electronics-sites-skillpack** (the `electronics-sites` root skill has the lane ladder and the symptom table).@@ -49,7 +49,10 @@ None public. ## Gotchas  - Verified loading 2026-09-14 under: CfT 152 + extension lane + PACED single visit + that domain's cookies cleared. Change any one of those (stale CfT, a burst of tabs, a stale reject cookie) and the failure signatures below come back. The signatures are kept for recognition, not because the site is currently blocking pup.-- **The AI DRIVES the captcha itself** (John, 2026-09-19): never toast/flash the user for it and never switch to the CDP lane. Use pup's trusted input / fake cursor on the extension lane (adom/pup-bridge#120 tracks the verbs: trusted click on "I'm not a robot", image-grid screenshot → AI vision picks tiles → trusted tile clicks → Verify → token → submit). Until #120 ships the extension lane has no trusted click (`pup_input_dispatch` → `lane_needs_cdp`); say so plainly and fall back to the SamacSys/CSE route or modelling the 3D body from the datasheet.+- **The AI DRIVES the captcha itself** (John, 2026-09-19): never toast/flash the user for it and never switch to the CDP lane (the CDP lane is off by default since pup 2.0.652, `cdp_lane_disabled`). Since pup 2.0.648 (adom/pup-bridge#120) `pup_input_dispatch {type:"click", x, y}` is TRUSTED input on the extension lane (it goes through the DevTools driver, so it lands inside the cross-origin reCAPTCHA frames). Measured 2026-09-19: a trusted click on "I'm not a robot" opened the image grid, trusted tile clicks selected tiles (blue checkmarks), and one full round ("select all images with bridges") PASSED and advanced to the next challenge.+- **Two facts that decide whether the grid can be finished, learned the hard way (2026-09-19):**+  1. **Click by VISUAL coordinates, never by the challenge iframe's rect.** `iframe[src*=bframe]` reports `getBoundingClientRect().top` around -10000 on purpose; clicks computed from it go nowhere and the challenge expires unread. Take `pup_screenshot`, read the grid, and map screenshot pixels to viewport pixels with `window.innerWidth / screenshot width` (1707/1568 = 1.089 on the laptop); the anchor checkbox is at about screenshot (665,435).+  2. **The solve is latency-bound from the cloud.** Each screenshot → pull → read → click → verify cycle costs many seconds, and reCAPTCHA expires a challenge ("Verification challenge expired. Check the checkbox again.") faster than a multi-round grid completes over the relay. Selecting tiles works; finishing a 2-3 round grid from a cloud thread did not in three attempts. Do the rounds in the tightest loop you can (one screenshot per round, all tile clicks and Verify in one command), try the audio challenge (the headphones icon) when the image rounds keep escalating, and if it still expires say so plainly and take the SamacSys/CSE route: the library for a SamacSys-sourced part is the same file (see the componentsearchengine skill, whose download needs no captcha). - Signed-in UL Pro (`?uid=` in the details URL) STILL shows a reCAPTCHA before "Download Now" (measured 2026-09-19); the chip-fetcher playbook's "no captcha for UL Pro" is out of date. - UL's symbol for VL53L5CXV0GC/1 carries the VL53L8CX pin names (A1 SPI_I2C_N, A2 NCS, C5 MISO…): take UL's STEP, never its symbol without checking the datasheet pin table.