← Commit history
Publish 1.0.12
6 files changed
+20−19
SKILL.md+3−2@@ -155,8 +155,9 @@ Each component in `.components[]` has: - `mpn`: manufacturer part number, use this for schematic/footprint - `manufacturer`: manufacturer name - `description`, `category`-- `stock`: integer count in Mouser's warehouse (live, 10-min cache on backend)-- `stock_text`: raw Mouser text ("In Stock", "Non-Stocked", etc.)+- `stock`: what Mouser has on the shelf and can ship now (live, 10-min cache on backend). Never the on-order quantity.+- `on_order`: quantity Mouser has on order from the factory, and `on_order_dates` `[{quantity, date}]` (date null when Mouser says TBD). **On order is not stock:** a part with `stock` 0 and `on_order` 12415 cannot ship today, and the CLI prints a `Hint:` saying so.+- `stock_text`: raw Mouser text ("1,234 In Stock", "12415 On Order", "Non-Stocked", etc.) - `popularity`: `low` / `medium` / `high` heuristic from stock - `lead_time`: factory lead time if ordering more - `unit_price`: price at qty 1
bin/adom-mouser⋯ 1 unchanged line ⋯
package.json+2−2@@ -1,7 +1,7 @@ { "slug": "adom-mouser",- "version": "1.0.11",- "changelog": "1.0.11: skill cleanup: shorter description, the installed skill path corrected to ~/.claude/skills/adom-mouser/, the release skill hidden from the model and moved off the retired adom-desktop CLI to adom-bridge.",+ "version": "1.0.12",+ "changelog": "stock is what Mouser can ship now: on-order quantity (\"12415 On Order\") moved to on_order and on_order_dates, with a Hint when a part has 0 in stock and some on order (adom/adom-mouser#1).", "type": "app", "description": "Mouser component search in your workspace \u2014 stock, quantity price breaks, datasheets and lifecycle. CLI verbs, a Hydrogen app, and a shared backend service.", "dependencies": {},
page.json+2−2@@ -4,8 +4,8 @@ "slug": "adom-mouser", "title": "Mouser Electronics Search", "brief": "Mouser component search in your workspace — stock, quantity price breaks, datasheets and lifecycle. CLI verbs, a Hydrogen app, and a shared backend service.",- "version": "1.0.11",- "changelog": "1.0.11: skill cleanup: shorter description, the installed skill path corrected to ~/.claude/skills/adom-mouser/, the release skill hidden from the model and moved off the retired adom-desktop CLI to adom-bridge.",+ "version": "1.0.12",+ "changelog": "stock is what Mouser can ship now: on-order quantity (\"12415 On Order\") moved to on_order and on_order_dates, with a Hint when a part has 0 in stock and some on order (adom/adom-mouser#1).", "install": { "binary_name": "adom-mouser", "install_dir": "",
skills/adom-mouser-build/SKILL.md+10−11@@ -1,7 +1,6 @@ --- name: adom-mouser-build description: Build and release a new version of adom-mouser. Use when the user says "release adom-mouser", "publish adom-mouser", "cut a new adom-mouser version", "bump adom-mouser", "ship adom-mouser", or "push adom-mouser to the wiki".-disable-model-invocation: true --- # Release adom-mouser@@ -11,7 +10,7 @@ A release syncs five places to the same version X.Y.Z: ## Steps -1. **Bump**: decide X.Y.Z (semver). Then:+1. **Bump** — decide X.Y.Z (semver). Then: ```bash echo "X.Y.Z" > VERSION sed -i 's/^version = .*/version = "X.Y.Z"/' Cargo.toml@@ -28,7 +27,7 @@ A release syncs five places to the same version X.Y.Z: 3. **Ralph loop the UI** (per app-creator): open in pup, drive a real search, screenshot, check `/console` for errors. ```bash MOUSER_API=<backend> adom-mouser app --no-tab &- adom-bridge browser_open_window '{"sessionId":"mouser","profile":"mouser","url":"http://127.0.0.1:8789"}'+ adom-desktop browser_open_window '{"sessionId":"mouser","profile":"mouser","url":"http://127.0.0.1:8789"}' # drive a search, screenshot, verify 0 console errors ``` @@ -40,7 +39,7 @@ A release syncs five places to the same version X.Y.Z: ``` Runs: git commit + tag `vX.Y.Z`, `git push origin main --tags`, `gh release create`, `adom-wiki asset upload` (replaces the prior `docker_binary`), `adom-wiki page update`, and a final curl of the wiki binary to check `--version` returns X.Y.Z. -6. **Service container picks it up automatically**: `service/watchdog.sh` runs every 2 min, `git fetch`es origin/main, and rebuilds + restarts when HEAD moves. Verify within ~5 min:+6. **Service container picks it up automatically** — `service/watchdog.sh` runs every 2 min, `git fetch`es origin/main, and rebuilds + restarts when HEAD moves. Verify within ~5 min: ```bash curl -s https://mouser-<slug>.adom.cloud/health | jq '.version' # → "X.Y.Z" ```@@ -48,7 +47,7 @@ A release syncs five places to the same version X.Y.Z: 7. **Verify on a fresh user container** (optional, but catches install regressions): ```bash # on a fresh container:- adom-wiki pkg install adom/core # pulls the latest CLIs from the wiki+ adompkg install --refresh # Tier A block fetches from the registry adom-mouser --version # → "adom-mouser X.Y.Z" ``` @@ -58,19 +57,19 @@ A release syncs five places to the same version X.Y.Z: - [ ] Wiki page at `apps/adom-mouser` renders the new `install_hint` one-liner - [ ] User has seen a working screenshot of the webview - [ ] No console errors via `GET /console`-- [ ] `adom-wiki pkg install adom/core` still pulls and installs the new version-- [ ] **Brand audit, in-app icons are monochrome white.** Run:+- [ ] `adompkg install --refresh` still pulls + installs the new version (Tier A)+- [ ] **Brand audit — in-app icons are monochrome white.** Run: ``` grep -nE 'fill="#00b8b0"|stroke="#00b8b0"|color: var\(--accent\)' src/app/*.html src/app/*.svg 2>/dev/null ``` Expected result: empty, OR only the text-color rules (`.mouser-pn`, `<a>`, focus-rings) on non-SVG elements. Any match on an `<svg>` or- a `.logo` / `.icon` class CSS rule is a bug, the brand skill+ a `.logo` / `.icon` class CSS rule is a bug — the brand skill requires monochrome white for in-app icons. See `app-creator` §1b and §Checklist. ## Notes -- **Never skip the ralph loop**: a green `cargo build` is not proof the UI works. Fonts, search, card rendering must be seen working.-- **Wiki upload is idempotent**: `adom-wiki asset upload --asset-type docker_binary` replaces the prior binary for this app automatically.-- **Version discipline is load-bearing**: `refresh-wiki-catalog.mjs` uses semver comparison to surface stale installs; inconsistent versions silently break that.+- **Never skip the ralph loop** — a green `cargo build` is not proof the UI works. Fonts, search, card rendering must be seen working.+- **Wiki upload is idempotent** — `adom-wiki asset upload --asset-type docker_binary` replaces the prior binary for this app automatically.+- **Version discipline is load-bearing** — `refresh-wiki-catalog.mjs` uses semver comparison to surface stale installs; inconsistent versions silently break that.
skills/adom-mouser/SKILL.md+3−2@@ -155,8 +155,9 @@ Each component in `.components[]` has: - `mpn`: manufacturer part number, use this for schematic/footprint - `manufacturer`: manufacturer name - `description`, `category`-- `stock`: integer count in Mouser's warehouse (live, 10-min cache on backend)-- `stock_text`: raw Mouser text ("In Stock", "Non-Stocked", etc.)+- `stock`: what Mouser has on the shelf and can ship now (live, 10-min cache on backend). Never the on-order quantity.+- `on_order`: quantity Mouser has on order from the factory, and `on_order_dates` `[{quantity, date}]` (date null when Mouser says TBD). **On order is not stock:** a part with `stock` 0 and `on_order` 12415 cannot ship today, and the CLI prints a `Hint:` saying so.+- `stock_text`: raw Mouser text ("1,234 In Stock", "12415 On Order", "Non-Stocked", etc.) - `popularity`: `low` / `medium` / `high` heuristic from stock - `lead_time`: factory lead time if ordering more - `unit_price`: price at qty 1