← Commit history
CHANGELOG.md+10
@@ -1,5 +1,15 @@ # Changelog +## 2.1.11 (2026-12-04)++A part request is answered in the thread that asked, not by email (the wiki thread's handoff; John's report that an AI's request was answered by email to the person).++- `request` says where the answer goes: "No email: this thread follows it with `request-status <id> --wait`, due by <time>". `--email` asks for the email instead, and `--deadline <minutes>` (1 to 1440, default 20) sets when it is due.+- `request-status` reads the wiki's own `deadline_at` and `deadline_passed`, so the CLI, AI Flow and the wiki agree on one clock. The late Hint (build it with the build-a-component-page skill) now follows `deadline_passed`. An older wiki without these fields gets the estimate from 2.1.9.+- `request-status --wait` follows a request: the wiki holds each answer until something changes, and one line is printed per change until the part is built, goes to review or passes its deadline. Against a wiki that cannot hold answers it says so and stops instead of polling.+- The app's Request button follows the request in the page (queued, building, built, or late), and an "Email me when it's ready" box sends the email instead for someone who will close the app.+- The request code moved out of `cli.rs` into `request.rs` and `deadline.rs`.+ ## 2.1.10 (2026-11-30)  Every request to the wiki says where Parts Search runs (the CLI thread, PR #7), so the wiki can tell Hydrogen traffic from cloud containers and bare machines and keep scheduled runs out of its people stats.
SKILL.md+7−2
@@ -183,8 +183,10 @@ adom-parts-search settings restore ```bash adom-parts-search serve --print-url      # start in the background (idempotent, version-aware), print http://127.0.0.1:8893/ adom-parts-search health                 # OK: v2.1.0 ok (the Adom wiki is reachable and you are signed in) [Wiki=ok Requests=ok Mouser=... ]-adom-parts-search request TPS62840DLCR   # no wiki page: have Adom's factory build it; prints the status link and position-adom-parts-search request-status <id|link>   # state, when it is due, and once late a Hint: build it with the build-a-component-page skill, never duplicating or overwriting a page+adom-parts-search request TPS62840DLCR   # no wiki page: have Adom's factory build it; says where the answer goes (this thread, no email) and when it is due+adom-parts-search request TPS62840DLCR --email --deadline 60   # email the person instead (they will close the thread); due in 60 min (1 to 1440, default 20)+adom-parts-search request-status <id|link>          # state, when it is due (the wiki's clock), and once late a Hint: build it with the build-a-component-page skill, never duplicating or overwriting a page+adom-parts-search request-status <id|link> --wait   # follow it: one line per change until built, review or late. Use this, never a loop of request-status adom-parts-search status                 # full /api/status JSON: per-vendor LEDs with _hint, rollup state, settings, timing adom-parts-search ui search "LM358"      # run a search through the page (paints an indeterminate taskbar bar) adom-parts-search ui toast "Loading your BOM" --kind info@@ -244,6 +246,9 @@ Mouser is Adom's preferred vendor (fastest, lowest-cost fulfillment for Adom ord - `POST https://wiki.adom.inc/api/parts-search`: each vendor's full search answer, from Component Ocean's cache or fetched live when stale. The result's `parts_search.live_calls` says how many distributor calls CO made for this search (0 when every answer was cached). - `GET /api/search`, `/api/pages/<ref>/files/page.json`, `/verification`, `/stock`: the wiki block (pages, CAD, Verified, Adom stock). - `GET /api/part-request/candidates`, `POST /api/part-request`, `GET /api/part-request/status/<id>`: the same request flow as the wiki's "Request this part" box.+- A signed-in request is answered **in the thread that asked**: no email, an inbox item, and a deadline (20 minutes unless `deadline_minutes`, 1 to 1440, says otherwise). `POST /api/part-request` takes `notify: "thread" | "email"` (`--email`) and `deadline_minutes` (`--deadline`), and answers `notify`, `deadline_at` and `status_api`.+- `GET <status_api>?wait=<s>[&since=<state>]` (at most 55 s) holds the answer until the state changes, the deadline passes or the wait runs out; `request-status --wait` uses it. The status carries `deadline_at`, `deadline_passed` and, once late with the part unbuilt, a `PART_REQUEST_DEADLINE_PASSED` hint. Older wikis send none of these: the CLI then works the deadline out itself and `--wait` says it cannot follow.+- The page's Request button follows the request in the page (queued, building, built) through the app's `GET /api/request-status?id=<id>&wait=50&since=<state>`. Its "Email me when it's ready" box sends `notify: "email"` for someone who will close the app. - `ADOM_PARTS_SEARCH_NETLOG=1` prints every outbound request, to check that a search touches the wiki only. - Every wiki request sends `X-Adom-Host` (where it runs: `ADOM_HOST`, else `~/.adom/host`, else `cloud` or the OS). A scheduled or hook run sets `ADOM_RUN=background`, which adds `X-Adom-Run: background` so the wiki does not count it as a person. - The `--mouser-api` / `--digikey-api` / `--jlcpcb-api` flags are ignored now (kept so old scripts still run).
bin/adom-parts-search
⋯ 1 unchanged line ⋯
install.sh

  
package.json+41−2
@@ -1,6 +1,6 @@ {   "slug": "adom-parts-search",-  "version": "2.1.10",+  "version": "2.1.11",   "type": "app",   "description": "One search box across Mouser, DigiKey and JLCPCB. Parallel queries, side-by-side product photos, and a Mouser-preferred recommendation that reasons around stock and lead time. Dock Bar ready: serve, health, settings, Say it.",   "dependencies": {},@@ -34,5 +34,44 @@     "SKILL.md",     "BUILD-SKILL.md",     "CHANGELOG.md"+  ],+  "changelog": "A part request is answered in the thread that asked, not by email (the wiki thread's handoff; John's report that an AI's request was answered by email to the person).",+  "discovery_triggers": [+    "parts search",+    "find part",+    "source component",+    "source part",+    "compare distributors",+    "compare vendors",+    "Mouser or DigiKey",+    "BOM sourcing",+    "price this part",+    "where can I get",+    "check stock",+    "parts availability",+    "fastest delivery",+    "cheapest part",+    "component search",+    "part lookup",+    "price breaks"+  ],+  "discovery_pitch": "Search Mouser, DigiKey and JLCPCB in parallel with product photos; Mouser-preferred best-source pick. Say 'with parts search' to your AI.",+  "sample_prompts": [+    {+      "label": "source an STM32F103RBT6",+      "prompt": "source an STM32F103RBT6"+    },+    {+      "label": "where can I get an ESP32-S3-WROOM cheape",+      "prompt": "where can I get an ESP32-S3-WROOM cheapest and fastest"+    },+    {+      "label": "compare Mouser, DigiKey and JLCPCB for a",+      "prompt": "compare Mouser, DigiKey and JLCPCB for an LM555"+    },+    {+      "label": "price this BOM across distributors",+      "prompt": "price this BOM across distributors"+    }   ]-}+}\ No newline at end of file
page.json+45−8
@@ -4,7 +4,7 @@   "slug": "adom-parts-search",   "title": "Parts Search",   "brief": "One search box across Mouser, DigiKey and JLCPCB: parallel queries, side-by-side product photos, and a Mouser-preferred recommendation that reasons around stock and lead time.",-  "version": "2.1.10",+  "version": "2.1.11",   "install": {     "binary_name": "adom-parts-search",     "install_dir": "",@@ -36,10 +36,22 @@     "path": "docs/hero.png"   },   "sample_prompts": [-    "source an STM32F103RBT6",-    "where can I get an ESP32-S3-WROOM cheapest and fastest",-    "compare Mouser, DigiKey and JLCPCB for an LM555",-    "price this BOM across distributors"+    {+      "label": "source an STM32F103RBT6",+      "prompt": "source an STM32F103RBT6"+    },+    {+      "label": "where can I get an ESP32-S3-WROOM cheape",+      "prompt": "where can I get an ESP32-S3-WROOM cheapest and fastest"+    },+    {+      "label": "compare Mouser, DigiKey and JLCPCB for a",+      "prompt": "compare Mouser, DigiKey and JLCPCB for an LM555"+    },+    {+      "label": "price this BOM across distributors",+      "prompt": "price this BOM across distributors"+    }   ],   "discovery_triggers": [     "parts search",@@ -54,12 +66,37 @@     "where can I get",     "check stock",     "parts availability",-    "fastest delivery"+    "fastest delivery",+    "cheapest part",+    "component search",+    "part lookup",+    "price breaks"   ],-  "discovery_pitch": "Search Mouser + DigiKey + JLCPCB in parallel from one interface, with product photos and a Mouser-preferred best-source pick.",+  "discovery_pitch": "Search Mouser, DigiKey and JLCPCB in parallel with product photos; Mouser-preferred best-source pick. Say 'with parts search' to your AI.",   "metadata": {     "platform": "linux"   },   "category": "tools",-  "org": "adom"+  "org": "adom",+  "description": "One search box across Mouser, DigiKey and JLCPCB. Parallel queries, side-by-side product photos, and a Mouser-preferred recommendation that reasons around stock and lead time. Dock Bar ready: serve, health, settings, Say it.",+  "dependencies": {},+  "needs_sudo": false,+  "scripts": {+    "install": "./install.sh",+    "uninstall": "./uninstall.sh"+  },+  "files": [+    "bin/**",+    "skills/**",+    "docs/icon.svg",+    "dockbar.json",+    "install.sh",+    "uninstall.sh",+    "package.json",+    "README.md",+    "SKILL.md",+    "BUILD-SKILL.md",+    "CHANGELOG.md"+  ],+  "changelog": "A part request is answered in the thread that asked, not by email (the wiki thread's handoff; John's report that an AI's request was answered by email to the person)." }\ No newline at end of file
skills/adom-parts-search/SKILL.md+7−2
@@ -183,8 +183,10 @@ adom-parts-search settings restore ```bash adom-parts-search serve --print-url      # start in the background (idempotent, version-aware), print http://127.0.0.1:8893/ adom-parts-search health                 # OK: v2.1.0 ok (the Adom wiki is reachable and you are signed in) [Wiki=ok Requests=ok Mouser=... ]-adom-parts-search request TPS62840DLCR   # no wiki page: have Adom's factory build it; prints the status link and position-adom-parts-search request-status <id|link>   # state, when it is due, and once late a Hint: build it with the build-a-component-page skill, never duplicating or overwriting a page+adom-parts-search request TPS62840DLCR   # no wiki page: have Adom's factory build it; says where the answer goes (this thread, no email) and when it is due+adom-parts-search request TPS62840DLCR --email --deadline 60   # email the person instead (they will close the thread); due in 60 min (1 to 1440, default 20)+adom-parts-search request-status <id|link>          # state, when it is due (the wiki's clock), and once late a Hint: build it with the build-a-component-page skill, never duplicating or overwriting a page+adom-parts-search request-status <id|link> --wait   # follow it: one line per change until built, review or late. Use this, never a loop of request-status adom-parts-search status                 # full /api/status JSON: per-vendor LEDs with _hint, rollup state, settings, timing adom-parts-search ui search "LM358"      # run a search through the page (paints an indeterminate taskbar bar) adom-parts-search ui toast "Loading your BOM" --kind info@@ -244,6 +246,9 @@ Mouser is Adom's preferred vendor (fastest, lowest-cost fulfillment for Adom ord - `POST https://wiki.adom.inc/api/parts-search`: each vendor's full search answer, from Component Ocean's cache or fetched live when stale. The result's `parts_search.live_calls` says how many distributor calls CO made for this search (0 when every answer was cached). - `GET /api/search`, `/api/pages/<ref>/files/page.json`, `/verification`, `/stock`: the wiki block (pages, CAD, Verified, Adom stock). - `GET /api/part-request/candidates`, `POST /api/part-request`, `GET /api/part-request/status/<id>`: the same request flow as the wiki's "Request this part" box.+- A signed-in request is answered **in the thread that asked**: no email, an inbox item, and a deadline (20 minutes unless `deadline_minutes`, 1 to 1440, says otherwise). `POST /api/part-request` takes `notify: "thread" | "email"` (`--email`) and `deadline_minutes` (`--deadline`), and answers `notify`, `deadline_at` and `status_api`.+- `GET <status_api>?wait=<s>[&since=<state>]` (at most 55 s) holds the answer until the state changes, the deadline passes or the wait runs out; `request-status --wait` uses it. The status carries `deadline_at`, `deadline_passed` and, once late with the part unbuilt, a `PART_REQUEST_DEADLINE_PASSED` hint. Older wikis send none of these: the CLI then works the deadline out itself and `--wait` says it cannot follow.+- The page's Request button follows the request in the page (queued, building, built) through the app's `GET /api/request-status?id=<id>&wait=50&since=<state>`. Its "Email me when it's ready" box sends `notify: "email"` for someone who will close the app. - `ADOM_PARTS_SEARCH_NETLOG=1` prints every outbound request, to check that a search touches the wiki only. - Every wiki request sends `X-Adom-Host` (where it runs: `ADOM_HOST`, else `~/.adom/host`, else `cloud` or the OS). A scheduled or hook run sets `ADOM_RUN=background`, which adds `X-Adom-Run: background` so the wiki does not count it as a person. - The `--mouser-api` / `--digikey-api` / `--jlcpcb-api` flags are ignored now (kept so old scripts still run).
uninstall.sh